HighDots Forums  

Re: Centering a layer to the current screen

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Centering a layer to the current screen in the Macromedia Dreamweaver forum.



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

Default Re: Centering a layer to the current screen - 06-28-2008 , 07:10 AM






Yes you are right Walt, I am new to css! I noticed that it works with either
setting position to auto or just deleting all together so I guess as it doesn't
recognise the command it just ignores it!

The 'margin:0px auto 0px auto;' command does the job.


Reply With Quote
  #2  
Old   
Walt F. Schaefer
 
Posts: n/a

Default Re: Centering a layer to the current screen - 06-28-2008 , 09:29 AM






Here's an excellent online CSS reference:
http://reference.sitepoint.com/css

Quote:
I noticed that it works with either
setting position to auto or just deleting all together so I guess as it
doesn't
recognise the command it just ignores it!
You're right. Since position:auto is invalid code the browser just ignores
it. However, there's no guarantee that every browser will correctly ignore
invalid code when the browser is in quirks mode. So one should be vigilant
to make sure all code is valid to avoid surprises. The official CSS
validator is your friend:
http://jigsaw.w3.org/css-validator/

Good luck. Don't hesitate to ask any questions you might have. We have all
been where you are and like the Beatles said decades ago, "We get by with a
little help from our friends". :-)

--

Walt


"Quentin Mayberry" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Yes you are right Walt, I am new to css! I noticed that it works with
either
setting position to auto or just deleting all together so I guess as it
doesn't
recognise the command it just ignores it!

The 'margin:0px auto 0px auto;' command does the job.




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 - 2008, Jelsoft Enterprises Ltd.