How to draw this chart in html and CSS? [closed] - css

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 7 years ago.
Improve this question
Please how to do this chart in HTML and CSS ??
Where the circles are buttons ..

Use the following:
Your basic circle:
.circle {
width: 100px;
height: 100px;
border-radius: 50px; /*Make it a circle (border-radius = 1/2*width & height)*/
background-color: hotPink;
border: none;
}
<button class="circle">Motion Detection</button>
<!-- Using a button to generate the circle -->
Then use position: absolute; with the left and right properties to position the circles.
Have a `Live positioned in the middle of your page with:
<style>
#text {
font-family: MyFont, sans-serif;
color: white;
}
<style>
For the lines I would use divs, and give them a height of 2px and a width of what ever (350px for example.) For the positioning, again use the position property (learn how to use it here: w3schools.com/css/css_positioning.asp) – joe_young just now edit
Use the above to help you create what you want, but as has already been said,
This is not a code generating service, try yourself and ask questions about the code you're having trouble with.
In other words, have a go, come back to us when you have tried and have a specific problem.
Good luck

Related

Creating halo outside the borders of an element in css [closed]

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 last year.
Improve this question
I am wondering how to do this in css :
enter image description here
Basically, I can do everything out of it. But I dont manage to recreate the halo surroundering the borders. Could you please advise ? :)
EDIT :
I am quite stuck at making the border with the fading
This effect can be achieved with box-shadows like so:
.box {
margin: 20px;
padding: 20px;
background: lightgreen;
width: 200px;
}
.halo {
-webkit-box-shadow: 0px 0px 7px 11px rgba(255,165,28,0.59);
box-shadow: 0px 0px 7px 11px rgba(255,165,28,0.59);
}
<div class="box halo">Hello There, I am a box, play with my colours to get different results, use the last two pixel values to play with the size and blur.</div>
In order to learn more about box shadows in CSS, you can find its documentation here: https://www.w3schools.com/cssref/css3_pr_box-shadow.asp

Adding circles with :before [closed]

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
I want to add 3 green circles with the :before pseudo-element in order to show the in-stock-status of my products similar to below:
http://www.chililips.com/LACOSTE-Lounge-Pant-Schlafhose-lang-gruen
I only know how to apply ONE circle, but how can I add three or more? I also thought of using HTML characters, but there are no green circles...
Box shadows...no pseudo-elements required. Unless you want to.
.blob {
width: 50px;
height: 50px;
background: lime;
border-radius: 50%;
margin: 3em 15em;
box-shadow: 5em 0em 0 lime, 10em 0em 0 lime;
}
<div class="blob"></div>
If you are using font icons you can simply add like single one instead of three same content
.fa-circle:before {
content: "\f111" "\f111" "\f111";
}
This is an example of fontawosome icon,you can manage space between icons by letter-spacing
OR
If you are using image for icon, then just take image with three icons or use multiple background images like background: background1, background 2, ..., backgroundN;
Read more about multiple background images

Image is not displaying over header using z-index? [closed]

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 7 years ago.
Improve this question
Okay so i have this website: lendenapp.com, and the theme is using triangle images to give a slant to each section, if you take a look you will understand.
The Issue is that the Top 2 Triangle images are not displaying over the section, the others lower though are.
I am not sure what i am missing, perhaps its a very simple css issue?
Here is the code:
.triangleTop {
position: absolute;
top: 0px;
width: 100%;
height: 80px;
display: block;
z-index: 99;
border: 1px solid black;
}
<img class="triangleTop" src="http://lendenapp.com/wp-content/themes/delicious/img/tri-white-top.png" alt="">
If you seen more code you can please ask and i can provide it.
Thanks
Alex
It's the overflow-x: hidden; on the #contentWrapper that causes the problem. If you remove it it works as intended, and it doesn't seem to be needed anyway?

Place image on border [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I am trying to have my image appear on top of a 300px border, as if the border is a background color for the image. This is my code:
.containerpagecontent { border-left: 300px solid #fff; } img { float:left; }
But it is still not working. What am I doing wrong?
NOTE: I cannot simply use background-color for the image, because the end of the image has to extend off the color.
There is no such thing as:
margin-left: 300px solid #fff;
you probably meant:
border-left: 300px solid #fff;
Also, see if something like this might work for you: http://jsfiddle.net/Lb6Rz/. It's using the padding and background properties on a single element to create a border.

How does css apply its style properties [closed]

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 8 years ago.
Improve this question
Shouldn't the css style be changed permanently once it gets applied?
see below:
<style>
div{width:100px;height:100px;background-color:red}
div:hover{background-color:black}
</style>
<body>
<div></div>
</body>
I mean to say that when hover occurs on the element the background color of the element gets changed, and once changed it should be changed permanently because the hover state has changed the property of the element.
i also have seen the cases which have permanently changed the property
No, hover means that this style is being applied only when the mouse hovers over the element. As soon as the mouse stops hovering over the element, the style reverts back to what it was before.
If you're looking to make permanent changes like this, you're likely going to need JavaScript.
ezuk's answer is great (accept that one), but I was bored and thought of a very silly solution using just CSS.
HTML
<div>
<span>hello</span>
</div>​
CSS
body, html {
width: 100%;
height: 100%;
}
div {
display: inline-block;
background-color: #eee;
}
div:hover {
width: 100%;
height: 100%;
}
div:hover > span {
background-color: #555;
}
View on JSFiddle
It works until you mouse out of the browser (or iFrame or whatever)
:)

Resources