Sure - just make something like either .p1, .p2, etc. classes or #p1, #p2,
etc. id's and write your CSS for each class or id that you want to only
apply to that rule.
Then apply like:
p class=p1some text/p
pnormal paragraph with no special rules/p
p class=p2some text with different rules than
The following two links show the differences I'm trying to understand:
www.springfieldmogov.org/elections/details.html
www.springfieldmogov.org/elections/details_noh2.html
The first page looks the way I want, but I don't understand the WHY behind
my CSS. I figured it out by just playing with
Just curious about differences I've seen in some stylesheets I've downloaded
and studied.
Sometimes people just write their id's as:
#idName {}
Other times I see the div in front such as:
div#idName
Since id's are unique anyway what's the difference here? Does the one
without the div
I'm reading Eric Meyer's article on Tricking Browsers and Hiding Styles. I
understand what he's saying and that the extra characters in the rules get
parsed in different ways.
But for me to really understand what's happening, though, I sure could use
an explanation of exactly what is making
I'm no CSS expert by any stretch, but I think what you're wanting to do is
to use margins for these two elements rather than line-height to achieve
what you want.
Set margin-bottom for the h1 and margin-top for the h2 to something explicit
and play with the values until you get the desired