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