Techheadz Tips and Tutorials
Techheadz@Twitter
Enter Search Term
ID: 228 Category: CSS Date Posted: 24/04/2012 Page Impressions : 3,467
0
Print How to set  table to 100% screen height using CSS and HTML

How to set table to 100% screen height using CSS and HTML

To create a table that fills 100% of the screen height, copy and paste the code below and create a new .html file named table.html.

You can set the width of the table in pixels to whatever you like, by changing the width value in the CSS part of the code below.

You can also change the background color and the padding values.
<html>
<head>
<title>Table 100% screen height using CSS and HTML</title>
</head>

<style>
html, body, #wrapper {
height:100%;
margin: 0;
padding: 0;
border: none;
text-align: center;
}

#wrapper {
margin: 0 auto;
text-align: left;
vertical-align: middle;
width: 800px;
background-color:#CCCCCC;
}
</style>

<body>
<table id="wrapper">
<tr>
<td align="center"><img src="http://www.techheadz.co.uk/techeadz_logo.gif"><br><br><h1>Table 100% of screen height using CSS.</h1>
<h2><a href="http://www.techheadz.co.uk/228.html">Click here</a> to return to tutorial<br>
<a href="http://www.techheadz.co.uk">Click here</a> to return to techheadz homepage</h2></td>
</tr>
</table>
</body>
</html>


Related CSS Links

Live Demo - Table 100% screen height



 
Search Techheadz
Ubuntu Ubuntu - Install Adobe Reader in Ubuntu 12.04. sudo apt-get install acroread
Ubuntu Ubuntu - Install veetle in Ubuntu
Ubuntu Ubuntu - Install Putty in Ubuntu
Ubuntu Ubuntu - Install gparted in Ubuntu. sudo apt-get install gparted
Ubuntu Ubuntu - Install Sopcast in Ubuntu Unity 12.04
Ubuntu Ubuntu - Ubuntu 12.04. Make Unity Launcher Icons Smaller.
MySQL MySQL - Import - Export MySQL using the terminal in Ubuntu Linux
Ubuntu Ubuntu - Ubuntu swappiness. Improve ubuntu performance. vm.swappiness=10. sysctl.conf
Ubuntu Ubuntu - Convert .ogv file to .mp4, .webm, .avi in Ubuntu using ffmpeg
Kubuntu Kubuntu - Install Adobe Reader in Kubuntu 12.10, Ubuntu 12.10
Ubuntu Ubuntu - Install filezilla in Ubuntu
Ubuntu Ubuntu - Install Google Chrome in Ubuntu 12.04
Apache Apache - How to Start, Stop, Restart an Apache Web Server (Linux Ubuntu)
Ubuntu Ubuntu - Sendmail not found in Ubuntu. Send mail is slow.
Ubuntu Ubuntu - Install Sopcast Player in Ubuntu 12.10
MySQL MySQL - MySQL commands list. MySQL using the terminal.
Ubuntu Ubuntu - VirtualBox Failed to access the USB subsystem. sudo usermod -aG vboxusers {username}
Ubuntu Ubuntu - Could not update ICEauthority file
CSS CSS - Stretch table width and height to 100% of screen using css and html
Ubuntu Ubuntu - How do I install a firewall in Ubuntu 12.10, ufw UncomplicatedFirewall
CSS CSS - How to set table to 100% screen height using CSS and HTML
Ubuntu Ubuntu - Nautilus Image Converter. Batch resize images in Ubuntu.
Perl Perl - Install perl in Ubuntu
Ubuntu Ubuntu - Create a simple bash script in Ubuntu
PHP PHP - session.save_path. Change the PHP session path
Search Techheadz
mysql export
upgrade software
upgrade perl in Ubuntu
Install Adobe Flash in ubuntu 12.04
Install Adobe Flash in ubuntu 12.04
codecs for ubuntu 13.04
stop mail server in plesk
dreamweaver
linux radio streams
ffmpeg
The following packages have unmet dependencies. sopcast-player : Depends: sp-auth (>= 3.0.1) but it is not installable E: Unable to correct problems, you have held broken packages
dreamweaver
export mysql
settings kde
putty ubuntu
editor C++ in ubuntu
editor c++
php editor Ubuntu. Dreamweaver
ubuntu install total
ubuntu total

Binary Clock
http://www.binaryti.me/
Home | About | Links | Add Your Link | Most Popular | Last Accessed | Related Links | Twitter | Site Map
Apache | CSS | HTML | Javascript | Linux |MySQL | Perl | PHP | Linux News & Games | Retro Computing | Ubuntu | Mint | Kubuntu | Win