Results 1 to 2 of 2
Thread: tables in dreamweaver mx
Jun 10, 2003, 22:57 #1
tables in dreamweaver mx
so i've created these tables, and i didn't notice until i had a background image, but the tables don't go all the way to the edges of the page when i preview it in IE. i made them borderless, but they still don't go all the way to the top or sides of the page (width is set at 100%). how can i fix this? thanks in advance for any help. -Reuben
Jun 10, 2003, 23:22 #2
- Join Date
- Apr 2000
- 4 Post(s)
- 0 Thread(s)
There are default margins set in browsers (varies from browser to browser but it's usually 8-10pxs) that need to be overridden if you want to go all the way to the window edge.
The traditional way of doing this was to add margin settings to your <body> tag , something like ;
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
Seems like a lot of code for something simple, but Netscape and IE used handle to it differently so you needed to code for both.
The only problem with doing things that way is it's not standards compliant. I remember someone referring to those tags as 'the four horsemen of non-compliance'.
The nicer way to do it is to apply a style to your body tag, either in the head of the document, or preferably in a separately linked CSS doc if your doning the same on multiple pages.
(margin works for most browsers, Opera treats it as padding, which actually makes more sense to me)
This method gives you a cleaner document keeping formatting stuff separate from your information stuff.