2 replies [Last post]
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 4 years 45 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

::-moz-selection {
background : #333;
color : #fff;
 
++++++++++++++++++++++++++++++++++++++++
 
.group:after {
display : block;
height : 0;
font-size : 0;
content : ".";
clear : both;
visibility : hidden;
}
 

What are these two above selectors styling or selecting(can provide additional code / info if needed).

helldog2004
helldog2004's picture
Offline
Enthusiast
Netherlands
Last seen: 4 years 51 weeks ago
Netherlands
Timezone: GMT+2
Joined: 2014-03-02
Posts: 205
Points: 239

try to hatch something in

try to hatch something in your website with this code, it will change background color and font color.
You can try it out here: http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_selection

Just hatch the text, it has been done with the -moz-selection tool.

And your second code will force the element to self-clear its children.
That should explain both your codes Wink

Check Maximum Webdesign for your online solutions

gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 4 years 45 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

Thanks

Thank u Smile