7 replies [Last post]
sinkingsun73
sinkingsun73's picture
User offline. Last seen 1 year 9 weeks ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-08-05
Posts: 9
Points: 12

there is extra space on the top of my div?
why is this happening? and how can i fix it?

thanks everyone!

link:
www.shawnbast.com/ad_new

Deuce
Deuce's picture
User offline. Last seen 3 days 9 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

Well, sense you are using

Well, sense you are using more than one div, I'm going to have to ask which one you're referring to.
Also: validate your HTML

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

sinkingsun73
sinkingsun73's picture
User offline. Last seen 1 year 9 weeks ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-08-05
Posts: 9
Points: 12

div

the div is called "body_wrapper"

ill validate my html once i figure this out.

thanks for your help.

S

Deuce
Deuce's picture
User offline. Last seen 3 days 9 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

Okay. Well let me know when

Okay. Well let me know when you figure it out and validate your code. Then I'll get around to helping you.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

Ed Seedhouse
Ed Seedhouse's picture
User offline. Last seen 3 weeks 1 day ago. Offline
rank Guru
Guru
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3544
Points: 643

sinkingsun73 wrote: ill

sinkingsun73 wrote:

ill validate my html once i figure this out.

You'll never get it right then. Always validate FIRST. As you code validate your HTML often. It's easy and free, and will save you endless difficulty. We give you this advice to help you and save you a ton of time. If you reject it why should we bother with you further?

Ed Seedhouse

Posting Guidelines

High on a hill, in Wrangellia.

sinkingsun73
sinkingsun73's picture
User offline. Last seen 1 year 9 weeks ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-08-05
Posts: 9
Points: 12

My HTML is now validated.

Hey guys,

I validated my html.

Like I mentioned earlier I am getting extra spacing in IE. The spacing is showing up under the nav and above the "body_wrapper" div.

www.shawnbast.com/ad_new

thanks for your help
S

Deuce
Deuce's picture
User offline. Last seen 3 days 9 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

It's because IE incorrectly

It's because IE incorrectly clears your floats.
Add overflow:hidden to #header and then your floats will be cleared. From there, you will have a better cross browser reference on what you need to alter to make this design work... such as moving the nav to the body content instead of the header to match up with your background.

all » http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

sinkingsun73
sinkingsun73's picture
User offline. Last seen 1 year 9 weeks ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-08-05
Posts: 9
Points: 12

still have extra padding on header

I moved my UL to the body div, but i am still seeing some extra padding on my header div.

any ideas?

thanks,
S