This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > March 2005 > No white space between site and 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 |
No white space between site and browser
|
|
| steveo23 2005-03-10, 6:35 pm |
| How is it possible to get rid of the white space between the site it self,
which is in a table, and the browser? I know a few sites for example apple.com
has no white space on top of there menu, I'm looking for no space between the
top and left side. Thanks for any help!
| |
| twocans 2005-03-10, 6:35 pm |
| with out seing your page it is hard to tell, if your using html only try
your body tag and margins
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
"steveo23" <webforumsuser@macromedia.com> wrote in message
news:d0qe28$667$1@forums.macromedia.com...
> How is it possible to get rid of the white space between the site it self,
> which is in a table, and the browser? I know a few sites for example
> apple.com
> has no white space on top of there menu, I'm looking for no space between
> the
> top and left side. Thanks for any help!
>
| |
| steveo23 2005-03-10, 11:15 pm |
| thanks, that's all I need to know :-) I knew it was something simple, never had to use it till now for a new client. Thanks again!
| |
| Murray *TMM* 2005-03-10, 11:18 pm |
| But there's a better way, that will validate, too -
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: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;
padding:0; }
-->
</style>
(when the value is zero, units are not required)
you could also try
body { margin : 0 0 0 0; padding:0; }
or
body { margin : 0; padding:0; }
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: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================
"steveo23" <webforumsuser@macromedia.com> wrote in message
news:d0qgni$a5f$1@forums.macromedia.com...
> thanks, that's all I need to know :-) I knew it was something simple,
> never had to use it till now for a new client. Thanks again!
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|