Jump to content
MakeWebGames

Divs Stretching According to other


Blade Maker

Recommended Posts

First I do not know where to post this so forgive me if its not in the correct place.

Okay well this is a noob question but hey we all have problems.

Mine is:

I have 3 divs, left, center, right, now the left and right would be my links and stats when the center is the content (what else is new)

I would like to know, how can I make it so the left and right divs would stretch according to the content?

Also say I wanted the content div to be set a certain height unless the text goes beyond that height, is any of this possible.

Sorry if this did not make sense but its in the middle of the night and I need to sleep, so good night and looking forward to reading the answers in the morning.

Link to comment
Share on other sites

Honestly I would go for a table design in such cases. People saying tables should really check out what they are saying. DIV cannot do all what tables can + it is not given it's easier to read or to code nor it produce smaller HTML.

The only real advantage of a table less design is that you could change your CSS to change the placement of the things without changing your HTML, however this is voided as most of the time when you really want to change the look of your site you will have to change the HTML.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...