Welcome Guest!

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.

 
Reply to this topicStart new topic
> Content Shifts Below Other Content In Ie6
velo
post 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
Go to the top of the page
 
+Quote Post
MikeHopley
post 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.
Go to the top of the page
 
+Quote Post
velo
post 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. smile.gif Therefor, i agree that something is wrong with the code, but i hoped someone would have a "eureka" moment, and point me to it. biggrin.gif

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
Go to the top of the page
 
+Quote Post
MikeHopley
post 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. biggrin.gif I just validate my code first. But I think it's very likely that IE is to blame here, and not your code.

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! smile.gif
Go to the top of the page
 
+Quote Post
velo
post Jun 2 2008, 02:10 PM
Post #5


Rapid Squeezer
****

Group: Members
Posts: 173
Joined: 19-February 08
From: Netherlands
Member No.: 172



QUOTE (MikeHopley @ Jun 2 2008, 09:06 PM) *
Oh don't worry, I condemn IE all the time. It's what IE deserves. biggrin.gif I just validate my code first. But I think it's very likely that IE is to blame here, and not your code.

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! smile.gif

Haha, well, yeah, i condemn IE too all the time wink.gif But this time, i agree on the structure problem you mentioned as well. It's not all very obvious which makes it hard to debug it. I tried some overflow settings, but it doesn't work. I think i tried it before too. I'll go try to validate it some more now, but my hopes are low. I'm not going to validate the flash object issues btw. smile.gif

Yeah, it looks great doesn't it? I wish i had designed it myself. wink.gif


--------------------

fresh-style.nl - small webdesign & development projects
Go to the top of the page
 
+Quote Post
velo
post 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. wink.gif

I'll rewrite it. Keep you posted.


--------------------

fresh-style.nl - small webdesign & development projects
Go to the top of the page
 
+Quote Post
velo
post 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
Go to the top of the page
 
+Quote Post
MikeHopley
post Jun 2 2008, 07:13 PM
Post #8


Rapid Squeezer
****

Group: Mentor
Posts: 496
Joined: 15-February 08
From: UK
Member No.: 143



QUOTE (velo @ Jun 2 2008, 10:37 PM) *
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. smile.gif

This post has been edited by MikeHopley: Jun 2 2008, 07:19 PM
Go to the top of the page
 
+Quote Post
Linda
post 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.


--------------------
Go to the top of the page
 
+Quote Post
velo
post Jun 3 2008, 05:08 PM
Post #10


Rapid Squeezer
****

Group: Members
Posts: 173
Joined: 19-February 08
From: Netherlands
Member No.: 172



QUOTE (Linda @ Jun 3 2008, 03:21 AM) *
Sorry I missed this post today velo. I would have loved to try and help. Glad you got it resolved.

Thanks anyway. kiss3.gif
But who would have thought the form element was to blame! *sigh* smile.gif

The site 'll go live tomorrow i think.


--------------------

fresh-style.nl - small webdesign & development projects
Go to the top of the page
 
+Quote Post
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!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: