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
|
|
3 Column Fluid Layout Problems
This is a discussion on 3 Column Fluid Layout Problems, within the CSS section. This forum and the thread "3 Column Fluid Layout Problems" are both part of the Designing Your Website category.
![]() ![]() |
Jun 23 2008, 10:24 AM
Post
#1
|
|
![]() Co-Founder ![]() Posts: 3,103 Joined: 13-February 08 From: my little igloo up north |
This is a good ol' "works in FF but not in IE" thang
http://quebec4x4.com/new-index.html It look like crap in IE6 and "off" in IE7 and I've tried countless things but I still can't get this to work. Both sidebars' width should stay at 204px while the content stretches. If anyone can give me a hand with this and help me figure this out?!
Reason for edit: a link would help :p
-------------------- a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: twitter | virb | facebook | stumbleupon |
|
|
Jun 23 2008, 07:34 PM
Post
#2
|
|
![]() Squeeze Machine ![]() ![]() ![]() ![]() ![]() Posts: 731 Joined: 13-February 08 From: Borneo |
I have encountered this problem before...
That's what you get when you play margin with a negative value -------------------- |
|
|
Jun 24 2008, 04:38 AM
Post
#3
|
|
|
Squeeze Machine ![]() Posts: 677 Joined: 15-February 08 From: UK |
Unfortunately, your site crashes my ieTester in ie6.
Before you do anything else, I suggest you validate your XHTML. You have a bucketload of errors; it's hubristic to blame IE before you've fixed them. ...although we both know that, after validating, you'll almost certainly be left with some IE bugs. Still, this is the logical way to approach your bug-hunting. |
|
|
Jun 24 2008, 09:43 AM
Post
#4
|
|
![]() Co-Founder ![]() Posts: 3,103 Joined: 13-February 08 From: my little igloo up north |
I brought the errors down... 99% were about &, img not />, alt="" missing, etc.... a few </span> that shouldn't have been there but nothing major.
So... does anyone have any idea on how to fix this? -------------------- a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: twitter | virb | facebook | stumbleupon |
|
|
Jun 24 2008, 09:56 AM
Post
#5
|
|
|
Squeezing ![]() ![]() ![]() Posts: 72 Joined: 16-February 08 |
Most of us forget to utilize Google when we are faced with Web authoring problems. There are excellent resources available via:
http://www.google.com/search?q=three+colum...lient=firefox-a I think it is very important to thoroughly understand the "Box Model" before embarking on mutii-column fluid/flexible layout designs -- particulalry the infamous "IE Box Model bug" (don't you just love IE?): http://www.google.com/search?q=box+model&a...lient=firefox-a One general rule -- set the total horizontal box width at less than 100% (say, 99 or 98%) in order to accommodate the IE Box Model margin "quirk" -- if you use 100% the right column will often drop below the center box as is evidentally happening to you at present. My Portal page (sig block) utilizes a three column, floated left, layout. James -------------------- Interoperable Web Pages - Always with validated HTML/XHTML/XHTML+RDFa, CSS, RDF, XML, RSS
Elegant Italic Handwriting - Roman Coins of the London Mint - WW2 Air Raids, V1s & Aircraft crashes |
|
|
Jun 24 2008, 10:15 AM
Post
#6
|
|
![]() Co-Founder ![]() Posts: 3,103 Joined: 13-February 08 From: my little igloo up north |
hmmm .... yes... if you look at the code you'll notice that my #content has a width of 90% .... hardly breaking the box-model there.
So... anyone else can have a look at the code and gimme a hand with this? -------------------- a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: twitter | virb | facebook | stumbleupon |
|
|
Jun 24 2008, 10:17 AM
Post
#7
|
|
|
Squeezing ![]() ![]() ![]() Posts: 72 Joined: 16-February 08 |
I brought the errors down... 99% were about &, img not />, alt="" missing, etc.... a few </span> that shouldn't have been there but nothing major. So... does anyone have any idea on how to fix this? You are using several deprecated Attributes such as "name", "target", etc. (and incorrect ones) with an XHTML 1.0 (strict) Doctype -- as usual, initial corrections may cascade and eliminate succeeding errors. James -------------------- Interoperable Web Pages - Always with validated HTML/XHTML/XHTML+RDFa, CSS, RDF, XML, RSS
Elegant Italic Handwriting - Roman Coins of the London Mint - WW2 Air Raids, V1s & Aircraft crashes |
|
|
Jun 24 2008, 10:43 AM
Post
#8
|
|
![]() Co-Founder ![]() Posts: 3,089 Joined: 13-February 08 From: Pink House in USA |
I'll take a look...
-------------------- |
|
|
Jun 24 2008, 11:13 AM
Post
#9
|
|
|
Squeezing ![]() ![]() ![]() Posts: 72 Joined: 16-February 08 |
hmmm .... yes... if you look at the code you'll notice that my #content has a width of 90% .... hardly breaking the box-model there ........... Sorry, I neglected to check your CSS code -- let me wade through the negative value constructs. James -------------------- Interoperable Web Pages - Always with validated HTML/XHTML/XHTML+RDFa, CSS, RDF, XML, RSS
Elegant Italic Handwriting - Roman Coins of the London Mint - WW2 Air Raids, V1s & Aircraft crashes |
|
|
Jun 24 2008, 11:14 AM
Post
#10
|
|
![]() Co-Founder ![]() Posts: 3,089 Joined: 13-February 08 From: Pink House in USA |
Question...
you have a left div, outer div and right div. In the outer div sits the content div. Could you float the left div left... relative position the content div at 204 px from the left and follow that with right div floated left? Change the width of the content div to 90% and eliminate the outer div all together? I think it would be easier to "hack" for ie6 that way. -------------------- |
|
|
Jun 24 2008, 11:50 AM
Post
#11
|
|
|
Squeeze Machine ![]() Posts: 677 Joined: 15-February 08 From: UK |
I brought the errors down... 99% were about &, img not />, alt="" missing, etc.... a few </span> that shouldn't have been there but nothing major. So... does anyone have any idea on how to fix this? Much better: now you've reduced the errors, my IEtester no longer crashes. Okay, the main IE6 error I can see is that the site is waaaaaaaaaay too wide. This normally happens to me with IE6, and I just fix it by applying a fixed width to the site, or to main container elements (all inside IE6-only conditional comments, of course). You could waste your time trying to hack this "properly", but why not just butcher the layout a little for IE6? Fluid --> fixed (~ 950px width). Simple. Your non-IE6 visitors will still get the fluid layout. |
|
|
Jun 24 2008, 12:20 PM
Post
#12
|
|
|
Squeezing ![]() ![]() ![]() Posts: 72 Joined: 16-February 08 |
Here is the excellent W3C CSS Three Column Layout Tutorial: http://www.w3.org/2002/03/csslayout-howto
I use a three column float-left CSS layout which has the advantage of flexible/fluid full screen display in all graphical Browsers including IE6. James -------------------- Interoperable Web Pages - Always with validated HTML/XHTML/XHTML+RDFa, CSS, RDF, XML, RSS
Elegant Italic Handwriting - Roman Coins of the London Mint - WW2 Air Raids, V1s & Aircraft crashes |
|
|
Jun 24 2008, 06:26 PM
Post
#13
|
|
![]() Co-Founder ![]() Posts: 3,103 Joined: 13-February 08 From: my little igloo up north |
Okay, the main IE6 error I can see is that the site is waaaaaaaaaay too wide. This normally happens to me with IE6, and I just fix it by applying a fixed width to the site, or to main container elements (all inside IE6-only conditional comments, of course). You could waste your time trying to hack this "properly", but why not just butcher the layout a little for IE6? Fluid --> fixed (~ 950px width). Simple. Your non-IE6 visitors will still get the fluid layout. Don't you get the horizontal scrollbar in IE7? I get it on my hubby's computer (since I'm on a mac now I would say that 95% of this clients' visitors are IE so ... it needs to work -------------------- a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: twitter | virb | facebook | stumbleupon |
|
|
Jun 24 2008, 07:15 PM
Post
#14
|
|
|
Squeeze Machine ![]() Posts: 677 Joined: 15-February 08 From: UK |
Don't you get the horizontal scrollbar in IE7? I get it on my hubby's computer (since I'm on a mac now Yes, I do. Not sure how I missed that... QUOTE I would say that 95% of this clients' visitors are IE so ... it needs to work Sure, but does it need to work perfectly? Is it important for the layout to be fluid in IE6? |
|
|
Jun 24 2008, 07:17 PM
Post
#15
|
|
![]() Co-Founder ![]() Posts: 3,103 Joined: 13-February 08 From: my little igloo up north |
Probably not... Ugh! It's just that it works on my other sites .... what am I doing wrong with this one?!
-------------------- a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: twitter | virb | facebook | stumbleupon |
|
|
Jun 25 2008, 05:07 AM
Post
#16
|
|
|
Squeeze Machine ![]() Posts: 677 Joined: 15-February 08 From: UK |
Probably not... Ugh! It's just that it works on my other sites .... what am I doing wrong with this one?! I wish I could find the bug for you, but I'm not going to attempt a full-blown IE bug-hunt. Here are some general ideas, which you may already have thought of:
...or you could just live with a fixed layout. |
|
|
Jun 25 2008, 09:27 AM
Post
#17
|
|
![]() Co-Founder ![]() Posts: 3,103 Joined: 13-February 08 From: my little igloo up north |
I wish I could find the bug for you, but I'm not going to attempt a full-blown IE bug-hunt. HAHAHA!!! I don't blame you! Some are just a pain in the --- and take too much time I'll give your suggestions a go -------------------- a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: twitter | virb | facebook | stumbleupon |
|
|
Jun 25 2008, 10:13 AM
Post
#18
|
|
|
Squeeze Machine ![]() Posts: 677 Joined: 15-February 08 From: UK |
HAHAHA!!! I don't blame you! Some are just a pain in the --- and take too much time ...and with IE bugs, you never really know how long they'll take to fix. IE6 in particular defies logic. QUOTE I'll give your suggestions a go Good luck! I'll be there in spirit, hitting IE with a big hammer. |
|
|
Jun 27 2008, 06:52 AM
Post
#19
|
|
![]() Co-Founder ![]() Posts: 3,089 Joined: 13-February 08 From: Pink House in USA |
How are you making out with this Karinne?
I saw this tutorial online today and thought it might be helpful! http://matthewjamestaylor.com/blog/perfect-3-column.htm -------------------- |
|
|






Jun 23 2008, 10:24 AM








