Jump to content

DIV vs table


jkkenzie

Recommended Posts

Hi!

I have tried to work with DIVs and UL for this site : http://bikramyoganairobi.com/pages/sample_catalugue.htm

but The left column with turquoise colour when you resize the page, you will notice its not seamless with the orange backgound. The menu uses UL but the First LI and Last LI is supposed to be the same width as the left and right column ( i have tried jquery on it and am able to change the width ) BUt when page is resized, the last LI menu width breaks away from being inline with the right column.

 

3 column DIV i have tried all possible, but what i have used works well with increasing content on one colum increasing the height of the other columns. Other forms were hiding content, require fixed height. I think DIVs dont work in this scenario at all.

 

Should i work with tables instead? and whay?

 

Thanks in advance.

Kip

Link to comment
Share on other sites

These are very good examples: i like them.

 

BUT unfortunately, IF i want to split the left column into two sections or two halfs ( top and bottom) each with different color background. it becomes a challenge with % or px widths. With % width they dont fit on the left and right edges when the whole browser is resized (i tried 100% width and removing any padding or margin)  AND px width cause the left column sections to overlap to middle column or Hide content if Visible=hidden.

The first LINK you gave, has 3 columns but i want to add sections on the first column to see if it can work seamlessly.

 

Menu section since its on its own DIV UL LIs outside the 3 column DIVs container Or even inside the 3 column DIv container, cant be able to ensure the Last child LI has a width the same as right Column width when page is resized.

 

The second Link you provided does not help with having any column height increase affecting the heights of other columns in the same container. None of those examples increased height of other columns when i used Firebug to duplicate content of One of the columns.

 

Still DIVs have some limits here.....

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.