Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2009, 11:54 PM   #1
New Member
 
Join Date: Oct 2009
Posts: 2
Default Header and Nav Divs Separated

Does anyone know why the "header" and "nav" divs are separated on this page? After playing around with it for a while, I coded it the way I had earlier, when there was no gap. Now, somehow, there is. Not sure what I'm missing.

The page: DamonPlatisLaw.com

The css: damonplatislaw.com/style.css

I appreciate your time.
klweb is offline   Reply With Quote


Old 10-23-2009, 04:13 AM   #2
New Member
 
Join Date: Oct 2009
Posts: 2
Default

Well, it looks like I've solved it. For anyone else who might be running into this little issue, try adding this simple bit of code to your css file:

* { margin: 0}

Worked for me!
klweb is offline   Reply With Quote
Old 10-23-2009, 01:44 PM   #3
Bronze Member
 
Join Date: Jul 2008
Location: Illinois
Posts: 85
Default

Just keep in mind that will set a margin 0 for everything including your paragraphs unless you specify one per item.
__________________
Darren Fox
Small Business Web Design
darrenfox is offline   Reply With Quote
Old 10-23-2009, 03:18 PM   #4
Super Moderator
 
Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,053
Default

Did that fix the problem? The divs don't look separated in FF3 and IE8. FYI, a global reset is a good idea but I dont use the asterisk (*) symbol. I usually add all the most common items I use when building a site. Then if they need to be different than the global just create a style for them. Like so:

Code:
html, body, div, a, span, ul, li, p {
   margin:0;
   padding:0;
}
p.specific {
   margin:10px 0 5px;
   padding:8px;
}
__________________
John Darling
Graphic / Web Designer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
PixelPusher is offline   Reply With Quote
Reply

Tags
code, css, header, html, nav

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:40 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.