This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > March 2004 > Re: Space on right side of browser
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Space on right side of browser
|
|
| jamiebongbong 2004-03-31, 6:28 am |
| Hey champ,
this has frustrated me for a long time ! Finally went searching for a
fix, and presto (i love the internet! hehe) ... simply add in
rightmargin="0" and bottommargin="0" into your body tag. For some
reason dreamweaver doesn't include these! weird!?!
sssoooo your body tag should look something like this ...
<body leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0"
marginwidth="0" marginheight="0">
anyway, all the best dude.
james.
Matthew Stronge wrote:
> *Hello,
>
> Im wondering why theres always a small space on the right side of my
> page. I
> have my tables width set to 100% but they are never over the page
> 100
> percent, it seems that there is some sort of padding... I just cant
> seem to
> get rid of it...
>
> Anyone know what I can do?
>
> Thanks
> Matthew Stronge *
--
jamiebongbong
------------------------------------------------------------------------
posted via www.WebFrustration.com
| |
| Murray *TMM* 2004-03-31, 7:28 am |
| Dreamweaver doesn't include them because it's the wrong thing to do. If you
want to do it correctly then read this -
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 : 0; padding:0; }
as a shorthand method (you don't need units on a zero value).
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
==================
"jamiebongbong" <jamiebongbong.13z5li@webfrustration.com> wrote in message
news:133be30789c45e10d9ef7874f73abf71@news.teranews.com...
> Hey champ,
>
> this has frustrated me for a long time ! Finally went searching for a
> fix, and presto (i love the internet! hehe) ... simply add in
> rightmargin="0" and bottommargin="0" into your body tag. For some
> reason dreamweaver doesn't include these! weird!?!
>
> sssoooo your body tag should look something like this ...
>
> <body leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0"
> marginwidth="0" marginheight="0">
>
> anyway, all the best dude.
> james.
>
>
>
> Matthew Stronge wrote:
> --
> jamiebongbong
> ------------------------------------------------------------------------
> posted via www.WebFrustration.com
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|