Liquid layout with DIVs

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I'm currently redesigning a site that I previously made a while a go from tables (nested tables) to layers.

The layout works like this:

Heading

Navigation
Content
Sub Navigation

Footer

Sorry, I've done it in HTML but I found no other way to display it.
The heading div does what it's suppose to,
but the other divs just float and go everywhere,
the files are currently on my computer but if needed I can upload to it to my webserver if it helps Laughing out loud

ANY help on this BIG problem would be of great help,
I have tried looking in alistapart.com but found nothing there,

I need help! Confused

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Could you please upload the files? If you are lucky I might check them this year Wink

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

http://chengeu.krayup.com/e-one/index.php
http://chengeu.krayup.com/e-one/css.css

The borders are to show the divs

I guess I should say which colours are which,
Yellow = Heading;
Green = Main Navigation;
White = Body Content;
Light Blue = Sub Navigation;
Black = Footer;

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Sorry if I don't really get the problem:
First: what's the problem with that layout? Why don't you use a to get the layout that you want. Are you forced to use 's?

Second: after reading your and clicking the links... I don't see any yellow, green etc. This is what I see on IE5.

me no comprendre Confused

cheers,

Shakespeare: onclick || !(onclick)

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

I can look later, but *please* don't refer to DIVs as layers. I get all confused and think you're actually trying to use layers.

dk01's picture

He has: 516 posts

Joined: Mar 2002

On alistapart they explain how to do this kind of layout perfectly:
http://www.alistapart.com/stories/flexiblelayouts/
Unfortunatly you have mixed up div's, tables, span's, and paragraphs all together. You need to either use all tables or all div's. Mixing the two will cause major complications. Its good you are trying to switch over but I would check out alistapart again. Here are some other good links for css layouts:
http://www.webmasterbase.com/article/379
http://glish.com/css/7.asp
http://glish.com/css/

Good luck. I know how frustrating it is at first. I have spent the last week on css designs.
-dk

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Ok Thanx Laughing out loud Everything is should look perfect now, (well it does on my screen anyways) does anything seem 'out of place'? Abhishek helped me get everything right Laughing out loud

Suzanne, what's the difference between layers and divs?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

layers are a proprietary Netscape concept, div is the standard usage. DIV + CSS v. LAYERS + JSS

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Oh ok, So will DIVs work in NS? Or do you have to use LAYERs?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

DIVs work in NS. For NS4 you have to be a little careful, but there is no good reason to make things identical for NS4.x.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Oh I See Laughing out loud

Well the site looks all fine and dandy now Laughing out loud Thank You for everyone's help Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.