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
P extending out of top of div
Old 09-16-2009, 03:10 PM P extending out of top of div
fog
fog's Avatar
Experienced Talker

Posts: 47
Location: Florida
Trades: 0
I am pretty new at CSS but have been doing OK after this group pointed me in the right direction. I have a problem today that I just can not figure out.

Started a new site here and the paragraph in the header is sticking out of the top of the div. At least that what it appears to be doing when I look at it with Firebug. If I change the top margin on the <p> it causes the whole header div to move down.

The p looks fine in IE7 not in FF. Any suggestions.
fog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-16-2009, 04:01 PM Re: P extending out of top of div
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
If I change the top margin on the <p> it causes the whole header div to move down.
It's called margin collapse and it's not a bug. Add 1px top padding to your #headertext div and that will stop it.
__________________
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 09-16-2009, 04:13 PM Re: P extending out of top of div
fog
fog's Avatar
Experienced Talker

Posts: 47
Location: Florida
Trades: 0
Thank you, I have been down that road before and thought that was the problem. But, I added the padding to the wrong div.

I appreciate the help.
__________________
Every artist was first an amateur.
Ralph Waldo Emerson
fog is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to P extending out of top of div
 

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.26525 seconds with 12 queries