[SOLVED] 1 solved problem causes another

This is a discussion on "[SOLVED] 1 solved problem causes another" within the Web Page Design section. This forum, and the thread "[SOLVED] 1 solved problem causes another are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Dec 19th, 2007, 20:05
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] 1 solved problem causes another

I had a problem with the background of one of my sites. That problom got solved in this thread.
Great, but the solution brought another problem in IE6: it cuts off my menu-items. I attached an image to show what I mean..

how do I solve this one without bringing back the old problem? Is it the way I think; pushing the menu more inward so it doesn't exceed the container on the left? (I hope not )

Thnx in advance again~!

(URL to the preview: http://www.poppen.ca/showcase/commun-art )


Last edited by delusion; Dec 19th, 2007 at 20:10.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 19th, 2007, 20:34
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

In your css, try adding

overflow: visible

to your #container element.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 19th, 2007, 21:03
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Quote:
Originally Posted by Rakuli View Post
In your css, try adding

overflow: visible

to your #container element.
too bad.. it doesn't seem to work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 19th, 2007, 21:11
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Um ok,

Try removing the negative margin from your menu and making it

position: relative;
left: -25px;

You say this is only IE6 right? I'm trying to remember my old workaround..
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 19th, 2007, 21:17
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Quote:
Originally Posted by Rakuli View Post
Um ok,

Try removing the negative margin from your menu and making it

position: relative;
left: -25px;

You say this is only IE6 right? I'm trying to remember my old workaround..
Seems like you just remembered. It works!
Thnx mate (Is that really austrailian? )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 19th, 2007, 21:27
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Hang on. You should not be floating and positioning an element. These properties are mutually exclusive; I believe the positioning will override the floating.

So you may as well remove your { float: left }. It's not doing anything now that you've added {position: relative }.

Note that { position: relative } will leave a space where your element was before. Depending on the rest of your layout, you may be better using { position: absolute } to completely remove the menu from the visual formatting flow, and overlay it in its own positioning context.

This is a little tricky to get your head around. You'd actually need to put the absolutely-positioned menu inside a relatively positioned container.

Of course, if the extra gap doesn't bother you, then there's no need to change anything.

Last edited by MikeHopley; Dec 19th, 2007 at 21:31.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 19th, 2007, 21:46
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Quote:
Originally Posted by MikeHopley View Post
Hang on. You should not be floating and positioning an element. These properties are mutually exclusive; I believe the positioning will override the floating.

So you may as well remove your { float: left }. It's not doing anything now that you've added {position: relative }.

Note that { position: relative } will leave a space where your element was before. Depending on the rest of your layout, you may be better using { position: absolute } to completely remove the menu from the visual formatting flow, and overlay it in its own positioning context.

This is a little tricky to get your head around. You'd actually need to put the absolutely-positioned menu inside a relatively positioned container.

Of course, if the extra gap doesn't bother you, then there's no need to change anything.


Hmm.. looks you're not exactly right.. With the float: left the layout looks fine, but when I remove it it centers the menu in the content-position for some reason.. I'll just leave it there if you don't mind
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Dec 19th, 2007, 22:20
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

How very interesting.

You are in fact correct. More careful reading of the CSS spec. informs me that {position: absolute} and {position: fixed} will force {float: none}, but that {position: relative}
is compatible with floating.

Cool.

By the way, the reason for the unexpected centring is that the floating suppresses normal margins: instead, float margins become "padding" for any inline content that flows around the float. So your auto margin had no effect when float was applied.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Dec 20th, 2007, 05:46
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Quote:
Seems like you just remembered. It works!
Thnx mate (Is that really austrailian? )
It certainly is - LOL, I say it at least once a day
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Dec 21st, 2007, 08:12
Reputable Member
Join Date: Jun 2007
Location: Bellevue, SK, Canada
Age: 29
Posts: 222
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 1 solved problem causes another

Weird.. I thought the problem was solved, and it is.. in FireFox that is.. IE shows my menu above my content.
Which conditional can I use for IE to fix this?
Open the following link in IE: http://www.commun-art.nl/commun-art/

[edit] Nevermind.. forgot to put "px" behind the width of the #menu *blush*

Last edited by delusion; Dec 21st, 2007 at 09:41.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Javascript problem Popje JavaScript Forum 2 Jan 24th, 2008 02:51
[SOLVED] FF problem nashultz07 Web Page Design 3 Nov 28th, 2007 03:49
[SOLVED] div positioning problem danny322 Web Page Design 5 Nov 28th, 2007 01:05
[SOLVED] Posting problem Stormraven Webforumz Cafe 2 Oct 5th, 2007 20:04
[SOLVED] CSS/Html problem Rienk0r Web Page Design 12 Oct 4th, 2007 09:24


All times are GMT. The time now is 19:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42