This is a discussion on "Fluid layout - IE6 clichés the layout when resizing" within the Web Page Design section. This forum, and the thread "Fluid layout - IE6 clichés the layout when resizing are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Fluid layout - IE6 clichés the layout when resizing
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Hi I am working on a table-less fluid layout that is fairly simple but I noticed when you resize the window in IE6 by dragging the edge of the window it sometimes displays the layout of the divs wrong. This does not happen in FF. Any help, yes please!
|
|
|
|
|||
|
Re: Fluid layout - IE6 clichés the layout when resizing
I wonder if it's because you are using % for the widths. It might be worth trying em's or pixels.
|
|
|||
|
Re: Fluid layout - IE6 clichés the layout when resizing
Just found this http://css-discuss.incutio.com/?page=UsingPercent
Quote:
|
|
||||
|
Re: Fluid layout - IE6 clichés the layout when resizing
Yeah, you're right, Vanessa: em and pixel are set widths (em isn't exact all of the time), but you need percentages for a fluid layout. You're also right, Linda. Whether it's a rounding error or something else, IE doesn't always display things correctly when it's not exact.
In my experience, if you tell a browser to split something 50/50 when the width 3 pixels, there will be an extra pixel of space in there. It depends on the circumstances, but this is just one of those things that you need figure out a per-case incident. |
|
|||
|
Re: Fluid layout - IE6 clichés the layout when resizing
[quote=Lchad;193940]Just found this
Thanks Lchad that seems to work. I changed the middlecontainer to 29.8% (didnt work at 29.9%).The only problem is that its not totally symmetrical now but at least it is cliche free. FF is so much better! VanessaJW - a totally fluid layout can not be in pixels. You have to use % or ems. I am cheating and using pixel heights but % widths which makes life a little easier. For instance I have noticed that if you float divs within a parent div the parent div does not inherit the height of the child in FF but it does in IE6. Its all a bit tricky really especially if you want to validate to AA. Last edited by cyberseed; Jun 15th, 2007 at 13:38. Reason: typo |
|
|||
|
Re: Fluid layout - IE6 clichés the layout when resizing
Quote:
When you set a design in px, then it can't be adjusted. Technically, it's a relative unit -- but it's relative to the viewing device, which isn't that helpful (most people won't change their screen resolution just to resize your website). When you set a design in %, then it resizes depending on the window size. When you set a design in em, then it resizes with the font (my favourite: you control the proportions and line length, but the user can resize the whole page). Exception: setting font-sizes in em or % is the same: 1em = 100%. But make sure you set your base font size (in *, html, or body) using % and not em, because IE has a freaky text-resizing bug if you use em. You can combine these with max-width for some added flexibility in low resolutions (content compresses when squeezed, rather than getting a horizontal scrollbar). Last edited by MikeHopley; Jun 16th, 2007 at 01:28. |
|
||||
|
Re: Fluid layout - IE6 clichés the layout when resizing
Thanks for the explanation Mike. I didn't realise you could actually set the font size in %, I thought you would always set the font in px or em, and it would just be your various widths that would be in %. I think I feel a bit more in control of things if I forget about fluid and just use px for everything; the display seems more certain that way. I can see the advantages though of % and em - I'll have to have a bit of a play with doing fluid layouts when I have time.
Last edited by VanessaJW; Jun 16th, 2007 at 05:15. Reason: Forgot to end quote |
![]() |
| Tags |
| fluid layout, ie6 clichs |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2 layout problems FF + IE when resizing browserwindow | tilto | Web Page Design | 0 | Mar 17th, 2008 08:55 |
| where can I find a fluid 3 column layout | Gerry | Web Page Design | 7 | Nov 2nd, 2007 22:48 |
| New to CSS Layout | tapster | Web Page Design | 15 | Oct 15th, 2007 10:18 |
| new layout | welshstew | Webforumz Cafe | 31 | Oct 1st, 2007 16:56 |
| What makes a layout a good layout? | Miles Lombardi | Graphics and 3D | 4 | Jul 26th, 2005 03:22 |