Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2005, 10:36 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default BGDM 2004 Gap at the top of the screen

Not strictly in Bgn Dm 2004 but I am developing a site in Parallel to the book and I have now created a page and for some reason it is not starting at the top of the page. There must be a setting I have altered but For love nor money can I find what I have done.

 
Old June 7th, 2005, 12:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Sounds like a margin issue on the <body> tag to me.

Add the following to your external style sheet or to a <style> tag in the head section of your page:

body
{
  margin: 0;
}

That resets the default margin of the body tag....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 7th, 2005, 12:28 PM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks I was just opening up my e-mail to say I had located the issue when I saw your reply.

Clicking the page properties button which is nearly always on the property inspector ( I say nearly as it is always there for me) brings up the overall site page properties. Looking at appearance I noticed that the margin were blank As with the cell sizes I deduced that the page should also be set to 0 margins and not left blank. Set to 0 all OK.

Again thanks for your help


 
Old June 7th, 2005, 02:59 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Just make sure that Dreamweaver generates Css for this (using margin etc) and doesn't add html attributes on the <body> tag as older versions used to do.

Also, the way DW does it is a bit verbose. It adds an attribute for each of the four directions, while you could get away with simply adding margin: 0 instead of margin-left: 0, margin-top: 0 etc etc

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: all my hate by KoRn (Track 12 from the album: Undefined) What's This?
 
Old June 7th, 2005, 03:13 PM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am going to have to give this some thought as I have done it the easy way (for me). Having used CSS at your directions does not necessarily mean that the concepts and a deep understanding have penetrated my slow brain.

I have simply entered the zeros which might be a bulky to do it. At least with what I have so far my colleagues will keep at their side and I will continue studying the code stuff.

Jacky


 
Old June 7th, 2005, 05:04 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, sure. As long as it works... Just wanted to mention it, so you are aware of what Dreamweaver puts where when you change something.

Where did the settings end up? If you have a lot of pages in your site, you're probably better off moving this to a separate style sheet so you don't have to repeat this on every page you create....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a PDF as top screen JeffGirard Access VBA 1 January 30th, 2007 08:28 PM
hyperlink - top/bottom of screen kritimehrotra Excel VBA 3 December 1st, 2006 11:12 AM
Small (yet annoying) gap gkirk CSS Cascading Style Sheets 2 June 1st, 2005 04:43 PM
gap in table harpua CSS Cascading Style Sheets 0 April 27th, 2005 09:07 PM
top row on the screen aspadda Excel VBA 1 December 19th, 2003 03:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.