Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Div height to MATCH the size of a table cell.
Old 03-04-2010, 09:46 AM Div height to MATCH the size of a table cell.
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Hi Guys,

I have a table and inside one of the table cells is a div that has a 100% width.

Now, when i fill this div too much it will make the table auto resize to fit it.

I dont want this.

I want the table to stay how it is and the div to scroll instead ( Ok i know how to do this )

The part im having trouble with is making the div height 100% IE: the same size of the table cell.

Is there any Javascript or some css than can keep the div the same height and width as the table cell that it sits in?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
 
Register now for full access!
Old 03-04-2010, 02:24 PM Re: Div height to MATCH the size of a table cell.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
when i fill this div too much it will make the table auto resize to fit it.
That is the default behavior of tables, they stretch to contain their contents.

Why are you putting this in a table anyway?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Div height to MATCH the size of a table cell.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20165 seconds with 12 queries