hey I spent the last 3 hours pulling my hair out trying to figure a work around for the stupid P tag spacing issues that happens in firefox and I FOUND A SOLUTION!
decided to post it here in case anyone else is having this problem.
The solution is super simple... create a css rule for tag <p> then set all margin and padding to 0. and BAM no more stupid p tag padding issues
Seriously I'm so happy now I'm even messaging people on MSN to tell them about this lol
True, that's a solution. But then, the <p> (paragraph) tag can no longer serve it's purpose for spacing text. If you're using it for layout, use divs instead!
True, that's a solution. But then, the <p> (paragraph) tag can no longer serve it's purpose for spacing text.
Not true. You can always reset the margins and/or padding for paragraphs to what YOU want, along with line-height. I ALWAYS reset <p>'s to zero so that I can get the spacing that *I* want for my content. A global reset is also a good practice.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Not true. You can always reset the margins and/or padding for paragraphs to what YOU want, along with line-height. I ALWAYS reset <p>'s to zero so that I can get the spacing that *I* want for my content. A global reset is also a good practice.
Oh, sorry about that LadynRed. Sometimes I forget that in HTML there are many different ways to solve problems. I rarely use the <p> tag; and if I do, it's for text-content only. I assume that you are using different classes for different <p> tags, am I right?
I rarely use the <p> tag; and if I do, it's for text-content only
Shame on you. Using proper paragraphs for text is semantically and structurally correct. Would you write a document in a word processor without paragraphs ? I think not
I don't need different classes for different paragraphs except in rare instances. My content text is set to a given font size and line height from the very beginning. If I need to vary text size, I do not generally do it with a rash of extraneous classes, I set the font size on the container the text is in.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!