Forum Moderators: open
I'm struggling with a design on my site. I'm using an open source content management system.
On some of the pages it generates HTML that has a relative size table (100%) inside a static size layout table.
Whenever one of these pages is displayed the relative table seems to push the cell it's in so it is bigger than it should be which squashed the other cells causing the design to break.
Does anyone know why this would happen.
Thanks very much.
Chris
So the way out for any browser's internal code is that if the content needs to push the static table beyond its stated dimensions, then it's allowed to.
You probably need to re-think the template - or perhaps place stricter controls on what content can be placed inside your inner, relatively sized table.
The problem is that even when there is no content in the 100% nested table, it still stretches the static table. I really don't understand why this should happen.
I could see that if I had a graphic that was larger than static width should allow it would stretch but not if there wasn't anything in there.
I think I must have made a mistake somewhere but I can't see it.
Chris
Also make sure you don't have any margins or padding on that 100% table.