Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
having trouble with the P tag in firefox?
Old 02-26-2009, 07:39 PM having trouble with the P tag in firefox?
sammy_p's Avatar
Experienced Talker

Posts: 46
Trades: 0
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
sammy_p is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-26-2009, 07:59 PM Re: having trouble with the P tag in firefox?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
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!

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 02-27-2009, 11:34 AM Re: having trouble with the P tag in firefox?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 01:06 PM Re: having trouble with the P tag in firefox?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
Originally Posted by LadynRed View Post
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?

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 02:11 PM Re: having trouble with the P tag in firefox?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 04:14 PM Re: having trouble with the P tag in firefox?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
You must spread some Talkupation around before giving it to LadynRed again.
Darn.

- Steve
stevej is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to having trouble with the P tag in firefox?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.53255 seconds with 12 queries