| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Professional Idiot
Join Date: Aug 2006
Location: Uk
Posts: 59
|
<p tag problem
I've added <p> tags for text on a site but the page has gone all screwy now. I have two big gaps on the page before and after the tags. I've got no idea why it's doing this but it's damn annoying. I even put it through the W3 validator, came back with 0 errors. Any help much appreciated. image: http://img49.imageshack.us/my.php?image=ptagzp1.jpg Code: Code:
|
|
|
|
|
|
#5 (permalink) |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
A handy trick I use at the beginning of all my stylesheets is the "global whitespace reset": * { padding: 0; margin: 0; } That'll reset the padding and margins on all elements to zero in all browsers. Of course, you then have to assign padding and margins to all elements that need them, but it gives you greater control and you can avoid problems like the one you were having. |
|
|
|
#6 (permalink) | |
|
Registered User
Join Date: Aug 2006
Posts: 34
|
Quote:
Your rule, if I was a kitten I would lick you. This answered the question I had yet to ask, but was driving me INSANE. |
|
|
|
|
#13 (permalink) |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,456
|
I don't do this because i'm simple and easily confused. Anything I can do to avoid this situation I will happily do. This is my only rationale for using unique id names. screw the validator. |
|
![]() |