Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > ASP.NET > Design / CSS

Design / CSS Web Page Design, Cascading Style Sheets, etc.

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2010, 4:04 AM
VB.NET Forum Enthusiast
.NET Framework: .NET 1.1 (VS 2003)
 
Join Date: Apr 2008
Posts: 32
Reputation: 26
Bill Humphrey is on a distinguished programming path ahead
Default Using Height Percentage in HTML Tables VS2008

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>
how can I get a <tr> or a table to have 100% height

Regards BH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-29-2010, 6:47 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

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>
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-29-2010, 7:41 AM
VB.NET Forum Enthusiast
.NET Framework: .NET 1.1 (VS 2003)
 
Join Date: Apr 2008
Posts: 32
Reputation: 26
Bill Humphrey is on a distinguished programming path ahead
Default

Well just looking at the form in design in VS2008 dosen't expand it to 100%
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-29-2010, 3:46 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

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.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 5:53 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.