I am interested to find out if it is possible to create a particular layout using CSS:
3 Columns: a Fixed center with Fluid left and right columns
Everybody can seem to create the opposite layout with ease, but I cannot find anywhere that does this layout! (:
i.e. people can make a CSS layout that is 3 Columns: Fixed left/right columns, with a Fluid center column.
But I would like a three column layout, with the left being fluid, and the center being a fixed width, and the right being fluid.
So you would end up with something like this: http://www.bluerobot.com/web/css/center1.html BUT if you can imagine that instead of white/blank/empty/unusable space on either side of the content box, there would actually be fluid left/right columns …
This is what I am hoping to find a solution for. . .
Surely it has to be possible somehow? no?
If anyone has any suggestions or expertise that surpasses mine , your help would be greatly appreciated …
“I don’t mean to offend krazykaj at all, I just feel a little of Paul’s pain…”
No offence at all
I tried, but couldn’t get it to work right … I then figured there was no harm in asking others who had a lot more experience than me … and i’m glad i did
(BTW, i didn’t even know they had internet 5 years ago )
Thanks for the help,
I’ll have a play around with what you gave, and if i’ve any more questions, i’ll be sure to ask.
Something else that I have found with the layout is that you can use ‘sliding faux columns’ google it and you should find something on simplebits about it.
This is where you can acheive the same effect of 100% high columns as standard ‘faux columns’ but use an attractive background image that is fluid also.
Conditional comments are the best way of not troubling other browsers with IE differences. Anyone who says they aren’t using a hack is probably mistaken because any one of the properties that force “haslayout” is in fact a hack although it may not look like it when you view the code.
Using a dimension to force layout when none is needed is indeed a hack. Using inner html nestings to avoid the box model hack is hackier than any css hack
I would say though that you should only use a hack when there is no other alternative and you can’t (or don’t want to) change the design.
Of course we can all avoid hacks by just using plain text but where’s the fun in that
the only hack i use on a consistent basis is “clearfix”. I will have to implement something soon though, as I am running into this issue - I probably will use a faux background image on two parents to simulate height.
I’m of the opinion that you shouldn’t force a browser to do what it doesn’t want to do.
I’m of the opinion that you shouldn’t force a browser to do what it doesn’t want to do.
I’m not sure what that means lol
IE doesn’t want to do anything properly so you would be a bit stuck there
As I already mentioned that if you don’t force layout on any parent elements that hold more than simple content then you will suffer from a myriad of bugs. There are still many sites out there suffering from this bug/behaviour and although they have valid code they don’t have unbroken sites.
CSS makes no assumptions about anything and its your job to construct the pieces into the layout of your choice. You are only limited by your own imagination and the shortcomings of some bad browsers implementations of css.
The beauty of CSS is that it can be made to do many things and isn’t tied to one way of accomplishing something either. There are of course the obvious things it can’t do such as equalising columns and you may be right that its perhaps better to design around these rather than use a number of hacks. Or perhaps use a simple table structure fully styled with css.
However, I see nothing wrong with “pushing the envelope” and advanced examples always produce a better understanding of the way things work. Originally it was stated that you couldn’t use negative margins but they have proved to be invaluable in all types of layout and are now commonly used by all.
I never make assumptions about what is achievable with css because every day someone says “this is impossible with css” only to be proved wrong. As proved with the original question in this thread as the answer was simplicity itself and in fact contained no hacks at all and took me all of 5 minutes to do.
The amount of hacks you use can be substanially diminished by using correct semantic markup and a logical structure of your markup.
But, Paul’s absolutely right - They’re a neccessary evil of todays web design. To make it work in IE is where %95 of your hacks will be needed.
Originally Posted by mark
This is where you can acheive the same effect of 100% high columns as standard ‘faux columns’ but use an attractive background image that is fluid also.
[QUOTE]Solved that ages ago and without using images.
[/QUOTE]
They’re not the same Paul, background images can be much more pretty then a plain color