Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / September 2005



Tip: Looking for answers? Try searching our database.

100% height of a div inside a TD

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lamberti Fabrizio - 28 Aug 2005 10:45 GMT

I've got the problem described in the table above.

I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see.

I've defined the following styles:

div.test { background-color:red; height:100%; width: 100%; }
table.test { border: 1px solid #CCCCCC; background-color:yellow; }
td.test { border: 1px solid #CCCCCC; }

does anyone know a solution ?

Please help me.

Regards to all

 2
     2b 1
     4 5
     7 8
Parx Shearer - 28 Sep 2005 18:45 GMT
Just by trial and error, I discovered that setting the height attribute of the td tag to 100% achieves the effect you desire.

   td.test { border: 1px solid #CCCCCC; height: 100%; }

Good luck,

Parx Shearer
parx@theshearers.com

   
  I've got the problem described in the table above.

 I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see.

 I've defined the following styles:

 div.test { background-color:red; height:100%; width: 100%; }
 table.test { border: 1px solid #CCCCCC; background-color:yellow; }
 td.test { border: 1px solid #CCCCCC; }

 does anyone know a solution ?

 Please help me.

 Regards to all

   2
       2b 1
       4 5
       7 8
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.