HighDots Forums  

Tables not at page edge

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Tables not at page edge in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ken Fine
 
Posts: n/a

Default Tables not at page edge - 07-03-2004 , 11:44 PM






This is making me crazy. Every page I create with Dreamweaver 4.0 won't allow
the pages to go to the top or left edge. There is always a 20 px space from
the top and the left side. How do I fix this?


Reply With Quote
  #2  
Old   
John Gaver
 
Posts: n/a

Default Re: Tables not at page edge - 07-03-2004 , 11:59 PM






On 7/3/04 10:44 PM, in article cc7ue9$922$1 (AT) forums (DOT) macromedia.com, "Ken
Fine" <webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
This is making me crazy. Every page I create with Dreamweaver 4.0 won't allow
the pages to go to the top or left edge. There is always a 20 px space from
the top and the left side. How do I fix this?

<body leftmargin="0" topmargin="0">

John Gaver
Action America
(forget everything to contact me direct)

Microsoft: (n) Job security for IT consultants.



Reply With Quote
  #3  
Old   
Ken Fine
 
Posts: n/a

Default Re: Tables not at page edge - 07-04-2004 , 02:03 AM



Thanks John... I just figured it out...

Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Tables not at page edge - 07-04-2004 , 08:31 AM



Actually, the best way to do it is not as John recommended.

Link to an external stylesheet (using DW's CSS editor), or embed a
stylesheet in your code (between <head> and </head>) with the following
style in it (embedded shown for cut-n-paste convenience) (assuming you want
zero margins) -

<style type="text/css">
<!--
body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left:
0px; padding:0px; }
-->
</style>

you could also try

body { margin : 0px 0px 0px 0px; padding:0px; }

or

body { margin : 0px; padding:0px; }

as a shorthand method.

This will take care of the margins in IE4+ and NN6. To take care of NN4x,
you will need to use MODIFY | Page Properties... and set the two right hand
margin fields (marginwidth and marginheight) to 0 (DMX and below).

Since you are still using inline margin specs in the body tag, this method
won't validate (and is not easy to do in DMX2004). To get completely valid
code that works for all
browsers in any version of DW, change your stylesheet as shown below -

body {
padding: 0;
margin: -10px 0 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Ken Fine" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks John... I just figured it out...



Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Tables not at page edge - 07-04-2004 , 10:20 AM



.oO(John Gaver)

Quote:
body leftmargin="0" topmargin="0"
You know that CSS exists and these attributes don't?

Micha


Reply With Quote
  #6  
Old   
Ken Fine
 
Posts: n/a

Default Re: Tables not at page edge - 07-04-2004 , 10:54 AM



Thanks Murry...

I ended up using:

<STYLE TYPE='text/css'>
body {margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
</style>

Which seems to work. Should I replace it with:

body { padding: 0; margin: -10px 0 0 -10px; /*/*/margin: 0 0 0 0; /* */ }



Ken



Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Tables not at page edge - 07-04-2004 , 10:58 AM



Ken:

It should be -

body { padding: 0; margin: 0 -10px 0 -10px; /*/*/margin: 0 0 0 0; /* */ }

and, yes, you could use that.


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Ken Fine" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks Murry...

I ended up using:

STYLE TYPE='text/css'
body {margin-left: 0px; margin-top: 0px; margin-right: 0px;
margin-bottom: 0px;
/style

Which seems to work. Should I replace it with:

body { padding: 0; margin: -10px 0 0 -10px; /*/*/margin: 0 0 0 0; /* */ }



Ken





Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.