Forum Moderators: open

Message Too Old, No Replies

Liquid layout vs Fixed layout

What do you prefer - and why?

         

Nick_W

7:39 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone,

I'm a big beleiver in the concept of liquid design but, I know many of you prefer to code to fixed width/font criteria.

I prefer the liquid approach because I think it allows your pages to adapt to whatever the user is using. That may be a 1024x768 high rez monitor on a PC or it maybe 800x600 with a whole bunch of toolbars further diminishing screen real estate.

Whatever the case, a liquid layout will adapt to it.

I'm sure some of you disagree, let's here your thoughts...

Nick

stuntdubl

4:44 pm on Oct 10, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm havin' a helluva time here Nick....
This has been an ongoing quandry of mine,
which I broke down and put in tables.....
I am really struggling because of the design i did,
but I know what I am looking for must be possible.....

I have a flash banner on top.....
which must line up EXACTLY with the side nav bar......
I would like the top 'frame' height to be static, but the
width to be variable....

I would like the side nav bar width to be static, and the
height to be variable

and finally....the main conent 'frame' to be variable relative to the other two 'frames' and subject to browser size

I use 'frames' though I really mean divs...

Am I explaining this okay?
Can anyone provide a little insight?

I get the top two 'frames' done okay, but then
there is no way to do the final 'frame' that I am aware of, other than by doing absolute positioning from left and top, then doing height width as a %....but this doesn't quite cut it....

Still boggled here.....

Nick_W

4:55 pm on Oct 10, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay, I'm not entirely lost but, I'm lost enough not to write a looooong reply only to find I've missunderstood you ;)

Why not post what you have, in very simplified context and we'll all have a look?

Better off making a new thread by the way as this is going off on a bit of a tangent now ;)

Nick

jpalmer

4:58 am on Oct 15, 2002 (gmt 0)

10+ Year Member



OMG! I've never even *HEARD* of "liquid layout" ... but then ...
I am in the woops woops way beyond the black stump out the back
of whykickamoocow ... and this is my first visit back to WW in a
couple of months!

Got a couple of sites I can go visit with my ancient NS 4.79, on a
turtle rural connection @ 40,000 bps to see what all the fuss is
about? :-}

Hooroo
JP

wingslevel

1:03 pm on Oct 15, 2002 (gmt 0)

10+ Year Member



Late joining....

How about dynamic pages and liquid layout? I have stayed with fixed width because my pages are all dynamically generated. I get some funky looking pages in liquid mode.

Anybody doing dynamically generated liquid pages?

Nick_W

1:07 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep. No problem, just a matter of allowing for extremes...

Nick

Eric_Jarvis

1:19 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



the thing is, wingslevel, whilst you are getting predictable results with fixed sizes and funky results with something more liquid...that is because you know your system and settings...it is almost certain that other people on different systems will be getting stranger results with the fixed sizes

knighty

2:35 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>it is almost certain that other people on different systems will be getting stranger results with the fixed sizes

I seriously doubt it

wingslevel

2:46 pm on Oct 15, 2002 (gmt 0)

10+ Year Member



We have tested our fixed sites on the 4+ browsers and various operating systems - they seem to render generally pretty well.

I would think that the liquid sites would be more volatile as they are rendered from different operating systems/browsers.....

This thread has inspired me to go back to the liquid drawing board!

Nick_W

2:57 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Great ;)

Here are some points you might like to consider:

  • If you're going 'liquid' but need user input to be fairly uniform why not have that 'section' fixed?
  • Also, if we're talking user input then why not wrap their text? In PHP I think you'd use wordwrap()
  • Remember: People with ultra high rez are fully aware that some pages look quirky unless they size their browser window down ;)

Nick

dingman

3:28 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Let me second Nick on the fact that you can make good looking dynamically generated pages with liquid layout. I hardly write static pages anymore. (I have one, but it's a placeholder page on a domain I registered for some software I'm not done writing. (I know placeholders are bad and evil, but I've had domains I intended to register registered by someone else first a few times.)) I think the issue of what you're used to doing layour-wise really is key here. I never used fixed layout even when I was first learning HTML, so I've never had any trouble making my dynamic pages lay out the way I wanted them too with fluid layout. If I were used to fixed layout, I'd probably be able to say the same about fixed.

<added> to clarify, I've never had layout trouble that seemed to have anything to do with the dynamic generation aspect of things. I'm weaning myself off layout tables, and that still sometimes confuses me, though once things are right it makes things come out looking better. Thanks to all the folks on here who have helped me with those questions.</added>

stuntdubl

5:45 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have been trying to convert my pages to fluid layouts, and running into some problems. I know it will become a little easier when I start laying the sites out FROM SCRATCH as liquid, but I'd really like to get my old pages converted so that I can get a lot of the code 'off page' (haven't started this yet either), and improve my text:code ratio....
Anyhow....problems I having......

Firstly.....one site I almost have converted.....When I do the layout (using nick's handy dandy simplified 3 col layout).....initially the template looks very good. When I apply the template to all my pages the 'content div' does not space (padding?) to the left....i.e. it overlaps the left column nav bar. I can't quite understand this, and I have too many pages to not do this with a template.....any help here?

Secondly....On my other site I am trying to set up the divs with an 'overflow:auto' so that only the content div scrolls in a somewhat 'frames-esque' fashion, and I can't get the right and bottom 'content frame' scrollbars to line up flush.

Lastly....On my pages I would like to find a good way to keep my 'footers' that I have on every page....how do you do this effectively with css? SSI? I've never done them before, but from what I've read this seems like probably the best way. Any help here would be appreciated as well.

If I work these out, I'll be sure to send or post the code, or the site links for those interested.

Purple Martin

11:49 pm on Oct 15, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



G'day jpalmer,

Here's a couple of popular sites that talk about liquid layout:

[glish.com ]
[alistapart.com ]

But to be honest, you'll do very well if you just use Nick_W's code from msg #53 above!

jpalmer

6:13 am on Oct 16, 2002 (gmt 0)

10+ Year Member



Gidday Purple Martin,

Thanks for the links ... look good.

"liquid layout" = CSS to homogenise browser/screen
resolution? Sigh ... :#-}

Once I've updated all my sites to basic CSS, I'll be
looking at my stats carefully to see which I can start
mucking around on with "liquid layout" based on browser
type.

Hooroo
JP

knighty

8:04 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>Let me second Nick on the fact that you can make good looking dynamically generated pages with liquid layout.

I'm still looking for some nice looking fluid layouts - many have been suggested but none of them look great visually.

They all look VERY similar, very plain and very plain text chucked in a couple columns.

Mark_A

8:26 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



knighty that is the key issue .. text can be made fluid easily, graphics images etc do not resize so making a site with lots of images liquid and good is harder ..

There has imho to be an optimal width for the site, other widths will then look different, perhaps less than optimal... depends..

knighty

8:57 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



And herin lies the problem.

I design sites aiming just below the 800 x 600 mark, this way users with small rez screens get a "full screen" users with high rez get some space which looks fine till you get really high screen rez.

Even if I used fluid design I would still get the same problem up to say 1024 it would look fine - once you get above that it all goes a bit woozy.

So whats the point?

Personally I never browse with my window greater than about 1024 because its easier to read text that way, I don't want to feel like I'm at Wimbledon!

Also, if you use wordwrap then that is'nt fluid - its fixed.

Nick_W

9:11 am on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, if you use wordwrap then that is'nt fluid - its fixed

No, the text still is resizeable. The best 'fluid layouts' are a mixture of fixed and fluid elements.

Going 100% fluid is kind of like doing without layout all together. Although it is quite acheivable...

Nick

stuntdubl

3:31 pm on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nick....can you point us at some sample code of good examples of mixed liquid & fixed layout?

I am determined to get my sites swapped over to style sheets, but still havin' some issues.

I know for me the code

padding-left: 125px;

helped a lot, as I never realized that you don't HAVE to set a fixed height and width nor top & left positioning....can you tell me how a div defaults if those properties aren't assigned?

Also....I think in my case....(as I mentioned)...and probably many others....that a frames type of layout would be most useful and beneficial......does anyone know any code similiar to this that could be used as a starting point?

RossWal

5:09 pm on Oct 16, 2002 (gmt 0)

10+ Year Member



I think what you normally see is a 2 column layout with one side fixed and the other liquid, or 3 columns with the inside liquid and the outsides fixed. Blue Robot has some nice examples to build upon.

[bluerobot.com...]

Nick_W

5:12 pm on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, and that code I posted back in msg #53 (i think) is exactly that. 2 fixed - One fluid.

Frames like: Can't be done. Support is way to low.

Nick

Trisha

5:31 pm on Oct 16, 2002 (gmt 0)

10+ Year Member



Nick,
How well does the code in msg #53 work in NN4.x? I'm in the process of setting up my first site with 3 columns in CSS and decided to use the basic idea that Rhys (sp?) suggested recently. The one with all 3 columns liquid that also works in NN4.x:

#left {position: absolute; left: 0%; width: 20%; }

#content {
position: relative;
left: 20%;
width: 60%;
}
#right {
position: absolute;
left: 80%;
top: 122px;
width: auto;
}

I tweaked a few things, so that is not exactly how his was, but the basic idea, the way I understand it, is that "left" and "right" are position: absolute, while "content" is set to: position: relative.

Nick_W

5:56 pm on Oct 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How well does the code in msg #53 work in NN4.x?

It doesn't ;) You've gotta be prepared to drop NN4 if you wanna run that layout.

Saying that, I find the clean code, nice look and very small filesize is worth the 1% of my users that get an un-styled page.

Might not do it for a client site but for me I'm all : "sod 'em!"

Nick

stuntdubl

5:43 pm on Oct 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for all your help Nick....

I just got the code to work and applied it to all
150+ pages on the site.....

It works beautifully, and I externally linked the .js and .css that was formally in the <head> of my pages.....

It bumped the 'meat' of my pages up quite a bit, and I think it should improve the download time quite a bit.

Anyhow....many thank you's

Nick_W

5:56 pm on Oct 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're welcome ;)

Nick

This 84 message thread spans 3 pages: 84