By robertb9527 on
In style.css I define:
p{
margin-bottom:200px;
}
that increase the paragraph's space, can.
p{
margin-bottom:5px;
}
that decrease the paragraph's space, cant.
But I want to decrease the paragraph's space? how to do that? thanks!
Comments
What do you mean by space?
What do you mean by space? The space above the paragraph? below a pragraph? between paragraphs? the space between the lines of a paragraph? all around a paragraph? the space on the left and right sides of a paragraph? the space between the words of a paragraph?
Please be more specific and if you can, give us a link so that we can see what you're talkinga about. It will be much easier for us to help you.
: z
Between two paragraphs.
Between two paragraphs. thank you.
----------
----------
Welcome to my blog:
http://www.b9527.net
cascading rules
margin-bottom : xxx
should work
BUT if you have e.g.
p {
....
}
and later
p.class {
...
}
then the last one will change all above values, if set
same to a single .class used for a p
...
for real help you should post a link to your site or .css
...sorry saw the link to your site right now, if you can pls tell us which p in your html-code you mean, after that it should be possible to track the .css rules from bluemarine.css and drupal.css
-micha
work in progress with Drupal 4.6: langmi.de
Specificity and Cascade
the order of
p {}
and
p.class
will make no difference as the class will always carry more weight then the element.
all things being equal
p{}
will be over written by a later
p{}
but
p.class {}
will not be over written by by a later
p{}
tag is less then a class which is less then a id which is less then an inline style unless any of the above is declaried !important. I think.
Margins don't add to each other, Two paragraphs with margin:20px 0; will not have 40px between them it will stay at 20px.
Eric Meyer explains it really well but I get confused.
I have resolved it.
I have resolved it.
------
Welcome to my blog:
http://www.b9527.net
need define the margin-top
P have a default margin. So, you need define the margin-top as well.