Welcome Guest!
Please login
If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:
- Receive Fast Advice
- Learn Programming Languages
- Get Professional Website Reviews
- Quick Troubleshooting Assistance
Content Shifts Below Other Content In Ie6
This is a discussion on Content Shifts Below Other Content In Ie6, within the HTML/XHTML section. This forum and the thread "Content Shifts Below Other Content In Ie6" are both part of the Designing Your Website category.
![]() ![]() |
Jun 2 2008, 12:21 PM
Post
#1
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 173 Joined: 19-February 08 From: Netherlands Member No.: 172 |
Hey,
I'm having a problem in IE6 for example on the following page: http://www.ladisfruteria.nl/shop/Olijfolie...zijn-c-250.html It happens on each category productlist page (categories are shown on left side). The last product is shown wrong. The image shifts below the content. In some other categories, there is also a description viewable when you click "toon meer productinfo". If you do that, that description is below the content, and the image is correct. Somehow, always the last div in the last product info shifts below the parent div (#mainContentTeksten). I was kinda hoping someone would notice a mistake. I've tried all kinds of things, f.e. removing floats, adding breaks with "clear:both", trying to put the entire thing in a 2 columned table, changing the width of the divs, the size of the short descriptions, but it doesn't fix it. Am i missing something? Hope you can help. Thanks! -------------------- fresh-style.nl - small webdesign & development projects |
|
|
Jun 2 2008, 01:41 PM
Post
#2
|
|
|
Rapid Squeezer ![]() ![]() ![]() ![]() Group: Mentor Posts: 496 Joined: 15-February 08 From: UK Member No.: 143 |
Your code is pretty twisted. As far as I can gather, this is your structure:
Each product consists of a <div>. Inside the <div> are two more <div>s: one for the text stuff, and one for the product picture. Inside the text <div> are two <table>s (!), one for the price & "add it" graphic, and one for the other stuff. I would be inclined to simplify your structure. I don't understand the advantage of this weird structure. I also suggest validating your code. Probably this won't fix the issue here, but it might. Malformed code often has really surprising consequences. Before you condemn IE, check that your own code is right. There are also a few "magic bullets" you could try. Set "overflow: auto" (or "hidden") on the container. Try giving elements hasLayout. These things might work. IE is known to have a particularly nasty selection of float bugs. You might like to go through this list. |
|
|
Jun 2 2008, 02:01 PM
Post
#3
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 173 Joined: 19-February 08 From: Netherlands Member No.: 172 |
Hey Mike, thanks for your comments.
Well, I'm actually not condemning IE, I am simply stating I'm having a problem. I know the structure can seem a bit overwhelming, but we have a standard shopping system, and someone else delivered a plain html template, which i built into the system. It wasn't really my job to rewrite the code i was given, but i think there's no other way. The system works with tables and the delivered design was by using divs. Anyway, i'll first try your suggestion on the overflow and try validating it some more. If that doesn't work, i'll try rewriting it. Thanks so far. -------------------- fresh-style.nl - small webdesign & development projects |
|
|
Jun 2 2008, 02:06 PM
Post
#4
|
|
|
Rapid Squeezer ![]() ![]() ![]() ![]() Group: Mentor Posts: 496 Joined: 15-February 08 From: UK Member No.: 143 |
Oh don't worry, I condemn IE all the time. It's what IE deserves.
When dealing with an IE bug, you don't necessarily need to understand it. Often it's better just to shrug your shoulders, and hack around it. Don't try to reason with IE; just bodge it. You can safely send IE6 all the CSS hacks you need with conditional comments. I forgot to mention: the site looks gorgeous! |
|
|
Jun 2 2008, 02:10 PM
Post
#5
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 173 Joined: 19-February 08 From: Netherlands Member No.: 172 |
Oh don't worry, I condemn IE all the time. It's what IE deserves. When dealing with an IE bug, you don't necessarily need to understand it. Often it's better just to shrug your shoulders, and hack around it. Don't try to reason with IE; just bodge it. You can safely send IE6 all the CSS hacks you need with conditional comments. I forgot to mention: the site looks gorgeous! Haha, well, yeah, i condemn IE too all the time Yeah, it looks great doesn't it? I wish i had designed it myself. -------------------- fresh-style.nl - small webdesign & development projects |
|
|
Jun 2 2008, 02:20 PM
Post
#6
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 173 Joined: 19-February 08 From: Netherlands Member No.: 172 |
Well.... after fixing some issues, and temporarily removing the flash objects..
QUOTE This Page Is Valid XHTML 1.0 Transitional! Who would have thought........ no difference. I'll rewrite it. Keep you posted. -------------------- fresh-style.nl - small webdesign & development projects |
|
|
Jun 2 2008, 04:37 PM
Post
#7
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 173 Joined: 19-February 08 From: Netherlands Member No.: 172 |
After almost being done rewriting, i found out what caused the problem. There was a <form></form> outside the content div, but inside that content wrapper, which caused the unwanted behaviour. :S
I went back to the original code, did some rewriting on the form tag placement, and all seems to be good. Damn, ridiculous error! -------------------- fresh-style.nl - small webdesign & development projects |
|
|
Jun 2 2008, 07:13 PM
Post
#8
|
|
|
Rapid Squeezer ![]() ![]() ![]() ![]() Group: Mentor Posts: 496 Joined: 15-February 08 From: UK Member No.: 143 |
After almost being done rewriting, i found out what caused the problem. There was a <form></form> outside the content div, but inside that content wrapper, which caused the unwanted behaviour. :S I went back to the original code, did some rewriting on the form tag placement, and all seems to be good. Damn, ridiculous error! How utterly bizarre. Oh well, IE6 is like that. And occasionally, so are other browsers. For example: I have an empty <div></div> in my site's footer. In theory, it should do absolutely nothing; in practice, it fixes a bizarre Firefox bug. I tried it out of desperation and a hunch, and it worked. Who am I to argue? **EDIT** That's interesting. My <div></div> appears no longer to be necessary. Perhaps they fixed that bug, whatever it was. Commenting your code is good. This post has been edited by MikeHopley: Jun 2 2008, 07:19 PM |
|
|
Jun 2 2008, 08:21 PM
Post
#9
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,455 Joined: 13-February 08 From: Pink House in USA Member No.: 3 |
Sorry I missed this post today velo. I would have loved to try and help. Glad you got it resolved.
-------------------- The Squeeze Shop is OPEN! I just ordered my awesome shirts! Did you?
Maine-ly Web Design | My Photography | Twitter ME Become a Fan on Facebook | Check out Stumbleupon |
|
|
Jun 3 2008, 05:08 PM
Post
#10
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 173 Joined: 19-February 08 From: Netherlands Member No.: 172 |
Sorry I missed this post today velo. I would have loved to try and help. Glad you got it resolved. Thanks anyway. But who would have thought the form element was to blame! *sigh* The site 'll go live tomorrow i think. -------------------- fresh-style.nl - small webdesign & development projects |
|
|
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
3 | jamesicus | 155 | 1st April 2008 - 10:42 AM Last post by: karinne |
|||
![]() |
7 | MikeHopley | 167 | 8th May 2008 - 08:13 AM Last post by: MikeHopley |
|||
![]() |
29 | MikeHopley | 388 | 16th June 2008 - 05:14 AM Last post by: Ryan |
|||
![]() |
2 | geyids | 159 | 11th June 2008 - 05:21 AM Last post by: geyids |
|||
![]() |
6 | mv08jml | 240 | 24th June 2008 - 05:45 PM Last post by: Justify |
|||






Jun 2 2008, 12:21 PM









