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.
|
|
|
|
|
![]() |
||
[SOLVED] 1 solved problem causes another
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[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. |
|
|
|
||||
|
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)
|
|
|||
|
Re: 1 solved problem causes another
Quote:
|
|
||||
|
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)
|
|
|||
|
Re: 1 solved problem causes another
Quote:
Thnx mate (Is that really austrailian? |
|
|||
|
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. |
|
|||
|
Re: 1 solved problem causes another
Quote:
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 |
|
|||
|
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. |
|
||||
|
Re: 1 solved problem causes another
Quote:
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
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. |
![]() |
| Thread Tools | |
|
|
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 |