![]() |
Click here to advertise with us
|
|
|||||||
| Design / CSS Web Page Design, Cascading Style Sheets, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
I'm using VS2008 and I've been trying to find a way to use height in a table = 100%, but it only seems to work in pxls. HTML Code:
<style type="text/css"> .style1 { width: 100%; height: 750px; } </style> Regards BH |
|
||||
|
When I run your sample (box) I do get a full page table both in IE and FF. Could there be something else interfering? Still I think I saw something similar to what you describe many years ago in an old browser, there I think I had to set the size of the Body to 100% for the body contents to fill the full page.
HTML Code:
<style type="text/css"> .style1 { width: 100%; height: 100%; } td {background-color:blue} </style> <body> <table class="style1"> <tr><td>cell</td></tr> </table> </body>
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
|
||||
|
As I said, something is probably interfering, when I tried this VWD I also got a single line, but when I removed the Doctype instruction at top of page the result was full-page height as expected.
__________________
Some useful links: Learning videoes, Code Samples, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ
How to format posts with code blocks etc - present the problem/post properly ![]() |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|