Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-24-2004, 11:03 AM   PM User | #1
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
Menu below content area.

Yet another problem from my latest site DiGi Cheese. This time, the menu has jumped below the content area, but it was fine before I added the CSS look-a-like iFrame.
chilipie is offline   Reply With Quote
Old 10-24-2004, 11:41 AM   PM User | #2
Span
Regular Coder

 
Join Date: May 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Span is an unknown quantity at this point
Changing the order of the block and menu divs in your code should do it.

Instead of this:
div block
div menu

Try this:
div menu
div block
Span is offline   Reply With Quote
Old 10-24-2004, 11:43 AM   PM User | #3
KeZZeR
Regular Coder

 
Join Date: Oct 2004
Location: England
Posts: 282
Thanks: 0
Thanked 0 Times in 0 Posts
KeZZeR is an unknown quantity at this point
If you're using divs to put that content there then it's going to cause a line break (just like divs do!). Usually you can fix it by either using the <span> tag or you can simply put display:inline; in the CSS attribute which controls the menu/content
KeZZeR is offline   Reply With Quote
Old 10-24-2004, 12:25 PM   PM User | #4
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
Quote:
Originally Posted by Span
Changing the order of the block and menu divs in your code should do it.
Yep it works in Mozilla but not damn IE.
chilipie is offline   Reply With Quote
Old 10-24-2004, 04:20 PM   PM User | #5
Span
Regular Coder

 
Join Date: May 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Span is an unknown quantity at this point
Okay,

#block is 550px wide, #menu is 140px wide.
They should fit in your 700px container and because of the right floating menu there should be a 10px space between them, right?

So maybe the scrollbar in div.overflow is doing something to make it not work in IE. Adding an invisible width? I'm on a Mac so I can't see it. What if you take out the width from div.overflow? And don't forget to put the menu div ahead of the #block div in your code. Since that div is right-floated it has to come first.
Span is offline   Reply With Quote
Old 10-24-2004, 04:44 PM   PM User | #6
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
I took the .overflow width out but it looked exactly the same, and the #menu div was in front of the #block div before anyway.
chilipie is offline   Reply With Quote
Old 10-25-2004, 05:27 PM   PM User | #7
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
Unhappy No such luck...

Tried everything I can think of (and all the stuff above) but it's still not working. It looks fine in Mozilla apart from the footer being pushed down slightly, but it totally craps up in IE. Weird *cough*.

<offtopic>I'd just finished a new layout for him today, haven given up on the one I am on about, but apparently he's "fallen in love" with the old one. Damn.</offtopic>

Last edited by chilipie; 10-27-2004 at 09:24 AM..
chilipie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:08 PM.


Advertisement
Log in to turn off these ads.