How Do I Make A Table Stretch Across The Entire Page? - SitePoint

How do I make a table stretch across the entire page? Get Started February 14, 2001, 1:35am 1

Is there a way to make a table stretch across the entire page, even if it is not necessary? IE, if you go to my main page, http://www.overclockedhardware.com , you can see that the top bar stretches across the entire page… now click on “Guides”… it only goes half way… anyone know of a solution?

February 14, 2001, 2:01am 2

You must specify the table on each page to have a width of 100%, so :

<table width=“100%” border=“0” etc. etc. etc>

On the Guides page you don’t have the width=100%, and on the index.html page (your front page) you don’t have it specified either, but all the text (the latest news) on your page automatically stretches the table to its full width.

That should solve it :slight_smile:

February 14, 2001, 2:07am 3

You have to add a table width tag.

<table width=“100%” table border=“0” cellpadding=“0” cellspacing=“0”>

That should fix it.

February 14, 2001, 2:07am 4

BC… you beat me while I was replying. You… :slight_smile:

February 14, 2001, 2:08am 5

duh. I shoulda known that. Thanks guys!!! …now, on to my redirection thread to answer my questions about .htaccess… :wink:

February 14, 2001, 3:10am 6

Originally posted by ifroggy BC… you beat me while I was replying. You… :slight_smile:

First in, best dressed :smiley: Sorry Froggy!

Topic Replies Views Activity
100% Header Width HTML & CSS 7 2027 October 8, 2014
Page element won't stretch { width:100% } HTML & CSS 6 20482 December 17, 2010
HTML Table Help! HTML & CSS 12 603 October 8, 2014
Basics: CSS tables HTML & CSS 4 677 October 8, 2014
Page scrolling and overflowing over the page to the right problem HTML & CSS 7 26448 September 13, 2010
Unfortunately, your browser is unsupported. Please switch to a supported browser to view rich content, log in and reply.

Từ khóa » Html Table Stretch