![]() |
CSS woes
Inspired by another thread and Jayeff's comments I've decided to give a tableless CSS design a shot for a project I'm working on, but I'm running into problems right off the bat.
I've got a 3-column design that looks good for what I need...but only in IE. In FF and Opera the right column expands. If there's a Guru out there who could take a look I'd be very grateful. |
Sent ya a pm...|thumb
|
Quick answer, you're fucked. :)
What you're seeing is a result of the PHP Code:
PHP Code:
Honest opinion from a guy who's spent way to much time building complicated css only pages, use a simple table for the three columns, than you can float things within the table cells and you won't have any problems. |
Quote:
|
Quote:
Quote:
Seriously, this CSS stuff (once you go beyond simple text formatting) is awfully complicated and confusing for something that's supposed to make life simpler. |
Quote:
|
Quote:
|
I think I just fixed it! I removed the max-width and it looks good. The only reason it was there was to prevent very long lines (hard to read), but it looks OK on 19" monitor @ 1280 x 1024. So there shouldn't be any downsides, right?
|
This is the problem I was talking about, and you may not care because not everyone will have a screen this wide:
PHP Code:
This all stems from the fact that floated objects fall out of the document flow which means in essence that they are no longer contained by their container (which I think sucks ass). :D |
You fix one thing and another pops up. |huh What's your screen res? It looks like you're using a wide-screen plasma TV!
If it's the floating objects that are causing the breakup, the solution may at least be something I can understand. |
Of course I don't mind.. It's a default layout straight out of dreamweaver .... :D
Quote:
|
Quote:
PHP Code:
Yeah, I know that res was a rediculous example, but if you were to have a post/entry in that middle section with just a few words or a picture any larger than it is now, it will start breaking sooner than that width I believe. Ain't css fun? :D |
Quote:
Here's what I've decided to go with (until someone shows me what a bad idea it is): I've removed the max-width from the content div and set the main container to a fixed 900 px. I've also ditched the floating pics in the content. This (I hope) should make the page reasonably stable for most browser/screen configurations. Thanks for the help! |thumb |
Lemmy,
Did you see that last pm? |
Quote:
|
All times are GMT -4. The time now is 05:22 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc