HighDots Forums  

Blank area on top of a page and left of a page

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Blank area on top of a page and left of a page in the Macromedia Dreamweaver forum.



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

Default Blank area on top of a page and left of a page - 07-08-2004 , 09:45 AM






Dear All,

When I create a page in dreamweaver the page always starts 10 pixels from left
and 15 pixels from top.
It never starts from zero.
Therefore the webpage display blank on the explorer from the top and left site.
EXAMPLE: http://www.balmorehouse.co.uk/ -----
http://www.cityzen.co.uk
Question:
How can I get rid of this problem?


Thank you for your help in advance.

Nihat


Dear All,

When I create a page in dreamweaver the page always starts 10 pixels from left
and 15 pixels from top.
It never starts from zero.
Therefore the webpage display blank on the explorer from the top and left site.
EXAMPLE: http://www.balmorehouse.co.uk/ -----
http://www.cityzen.co.uk
Question:
How can I get rid of this problem?


Thank you for your help in advance.

Nihat


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

Default Re: Blank area on top of a page and left of a page - 07-08-2004 , 09:52 AM






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: 0 -10px 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
==================

"Kardere" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Dear All,

When I create a page in dreamweaver the page always starts 10 pixels from
left
and 15 pixels from top.
It never starts from zero.
Therefore the webpage display blank on the explorer from the top and left
site.
EXAMPLE: http://www.balmorehouse.co.uk/ -----
http://www.cityzen.co.uk
Question:
How can I get rid of this problem?


Thank you for your help in advance.

Nihat


Dear All,

When I create a page in dreamweaver the page always starts 10 pixels from
left
and 15 pixels from top.
It never starts from zero.
Therefore the webpage display blank on the explorer from the top and left
site.
EXAMPLE: http://www.balmorehouse.co.uk/ -----
http://www.cityzen.co.uk
Question:
How can I get rid of this problem?


Thank you for your help in advance.

Nihat




Reply With Quote
  #3  
Old   
Kardere
 
Posts: n/a

Default Re: Blank area on top of a page and left of a page - 07-08-2004 , 10:11 AM



Dear Murray,

Thank you very much for your quick answer.
It was sham of me do not check the page properties' left and top margins.

Thanks again

Nihat

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

Default Re: Blank area on top of a page and left of a page - 07-08-2004 , 10:20 AM



But that's not how I recommended you do it. Using CSS to control this is
the right way.

Anyhow, you're welcome!

--
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
==================

"Kardere" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Dear Murray,

Thank you very much for your quick answer.
It was sham of me do not check the page properties' left and top
margins.

Thanks again

Nihat



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.