Tables cannot span a full page???

message from howtheheck? on 22 Jul 2004
Can someone explain why DW doesn't permit me to create a table that spans the
full width of a page? For example, if I try to draw a table from one end of the
workspace to the other or specify a table width of 100% and then preview the
table in the browser, it displays inside of the browser page--it won't go from
the left edge to the right edge. This is easy to illustrate if you select a
background color for the table. If you make the table background gray, it will
be surrounded by white within the browser window. This is frustrating and
prohibits some creative possibilities. I'd like to be able to see a complete
gray area in the browser when I do this.

Please help.
 
Joaquim Lopes replied to howtheheck? on 22 Jul 2004
Just add
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">[/] to the
body or include something like this if you are using CSS

body {
font-family: Helvetica, Arial, Verdana, sans-serif; // or whatever
font-size: 12px; // change to whatever
margin: 0px;
line-height: 15px; // use what you want
background-color: #FFFFFF; // I like it white...
}
Hope this helps.
 
Osgood replied to howtheheck? on 22 Jul 2004
You have to zero the body margins and padding. Cut and paste the
following to directly before the closing </head> tag of your pages code.

<style>
<!--
body {
margin: 0;
padding:0;
<--
</style>
 
:. Nadia .: replied to howtheheck? on 23 Jul 2004
<style type="text/css">
<!--
body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
background-color: White;
 
N Rohler replied to howtheheck? on 22 Jul 2004
You will need to place your table within an absolutely positioned div.

For example, use
<div style="position: absolute; width:100%; left: 0; top: 0">..table goes here...</div>
 
Murray *TMM* replied to N Rohler on 22 Jul 2004
That's a poor solution when a perfect one exists. In my opinion.
 

Archived message: Tables cannot span a full page??? (Macromedia Dreamweaver Web Design)