.parent-div {
position: relative;
width: 100px;
height: 100px;
background: #ffffff;
border: 1px solid #000000;
}
.div:after {
content: "";
width: 20px;
height: 20px;
background: blue;
position: absolute;
top: 45%;
left: 45%;
}
span[data-descr] {
position: relative;
text-decoration: underline;
color: #00F;
cursor: help;
}
span[data-descr]:hover::after,
span[data-descr]:focus::after {
content: attr(data-descr);
position: absolute;
left: 0;
top: 24px;
min-width: 200px;
border: 1px #aaaaaa solid;
border-radius: 10px;
background-color: #ffffcc;
padding: 12px;
color: #000000;
font-size: 14px;
z-index: 1;
}
a::after {
content: "whatever content you want to display";
/*css declaration*/
}
Code Example |
---|
Css :: #f2f2f2 in rgba |
Css :: child css |
Css :: css linear gradient 25% of page |
Css :: cool hover effects css |
Css :: css gradient 3 color |
Css :: responsive text css |
Css :: css set background opacity |
Css :: change input placeholder text css |
Css :: border 1px thick |
Css :: text-shadow css |
Css :: css background image follow scroll |
Css :: how to add hover effect in emotion |
Css :: input type password css |
Css :: bootstrap media query |
Css :: arrow left css |
Css :: change default arrow icon for accordion in bootstrap |
Css :: css for paragraph beautiful |
Css :: how to write css in html |
Css :: prefers color scheme |
Css :: Correct border property to add ROUNDED borders to the elements |
Css :: css table th width |
Css :: jquery replace css class |
Css :: media min height css |
Css :: css font family |
Css :: add drop shadow css |
Css :: set visibility css |
Css :: How do I make my background color darker in CSS |
Css :: change bg color on hover |
Css :: darken scss |
Css :: css fontface |