For example, before you would have to type out all this:
h1
{
color:green;
}
h2
{
color:green;
}
p
{
color:green;
}
But when you group selectors it becomes this:
h1,h2,p
{
color:green;
}
As you can see this is far more efficent and easier to read.
It is also possible to apply a style for a selector within a selector.
In the following example, One style is specified for all p elements, a second style is specified for all elements with class="marked", and a third is specified for p elements with class="marked":
p
{
color:blue;
text-align:center;
}
.marked
{
background-color:red;
}
.marked p
{
color:white;
}
I love this!
ReplyDeletebest part is he does most of the coding for me, i just have to edit it slightly and i never have to worry about fixing any of the lines
ReplyDeleteHaha ^ true dat
ReplyDeleteNice on, another neat tutorial, which is great and easy to follow :D
ReplyDeleteAwesome, saves time, and makes it simpler.
ReplyDeletemmm now I get it, I used to get a bunch of troubles coding this stuff
ReplyDeleteCoding is a pain. Thanks for the help.
ReplyDeletecheers murder, learning a bit at a time is ace :D
ReplyDeleteI use this when modifying userstyles to suit my taste.
ReplyDeleteI'm checking in again to see if you've updated
ReplyDelete