Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to create a circle using only css. I've done this using the below:
border-radius: 50%;
background: #f5f5f5;
transition: all 0s ease-in-out;
box-shadow: 0 0 3px gray;
I've created a fiddle: https://jsfiddle.net/rg991koa/11/
I'm basically trying to onClick add an image but my background-image isn't displaying within the circle and I think this is due to me using background colour on my element.
Change background-image to background
.myNewClass {
background: url(http://static4.wikia.nocookie.net/__cb20131121214007/destinypedia/images/7/71/Information_Icon.svg) no-repeat;
background-size:100%;
}
https://jsfiddle.net/rg991koa/21/
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
If you are unable to understand, then please open the image. I want to draw a black vertical line at left border of a div
I apologise for my useless paint ability.
enter image description here
What must I do to make this in css?.
Thanks.
Your HTML Code
<div class="badge">
<p class="text">New</p>
</div>
CSS for background
.badge {
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 65%, 0 100%);
background-color : red;
height: 100px;
width:50px
}
.text {
text-align: center;
padding-top: 35px;
}
You can use bennettfeely for diffrent css shapes that will generate a clip-path of the shape
Please check out this link https://stackoverflow.com/a/24207393/10293708, has a similar question. But all in all, I would also suggest you to do try out doing something using css first and maybe you could add a jsfiddle link to what you have achieved so far, so that others can help better.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
trying to find a CSS or javascript script to automatically make images black or just blurred until hovered over or clicked on for discord.
Will this work? Just a simple css solution.
This is the snippet:
img {
filter: blur(5px) brightness(60%);
height: 100px;
width: 100px;
transition: 0.5s filter ease;
}
img:hover {
filter: none;
}
<img src="https://static.vecteezy.com/system/resources/previews/000/101/253/non_2x/vector-free-abstract-background-1.jpg" alt="abstract image" />
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to change to the blue color which is in the default input range.
<input type='range' id="input"/>
Is it possible to just change the blue color of the slider and thumb in the input range?
I have seen many answers but no one shows how to just change the blue color in of the slider and thumb the input range.
Please help me
Use below code in style
#input {
-webkit-appearance: none;
height: 5px;
background: #d3d3d3;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
#input::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 15px;
height: 15px;
background: #4CAF50;
border-radius:50px;
cursor: pointer;
}
You can see slider like below
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Hello people, i am trying to make the thumb's width thinner than the tack's width so that i can have a shadow effect on the thumb ( such as it will look like the thumb-bar is floating on top of the track-bar).
Does anyone have any idea or if it is possible in the first place?
Thanks in Advance,
George.
This should work!
body {
font-family: sans-serif;
height: 2000px;
}
::-webkit-scrollbar {
width: 16px;
}
::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 5px 5px white, inset 0 0 0 4px black;
}
::-webkit-scrollbar-button {
display: none;
}
Should look like this:
You can tinker around with it, but it goes a bit yuck if you add rounded corners!
Now it isn't so bad:
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Please help my task is: when you move the mouse cursor on the selected item, change the background and text colors
http://liveweave.com/rVjF5y
You can add below CSS code
.lw:hover { background-color: red; color: blue;}
You can do it in css using the :hover, example:
.element1 {
padding: 4px;
display: block;
background: #000;
color: #fff;
}
.element1:hover {
background: #d1d1d1;
color: #000;
}
<div class="element1">Mouse Over / Mouse Out</div>