Page 1 of 1

top center vs center top

Posted: Wed Apr 30, 2008 8:22 am
by roedygr
body { background: url("banner.jpeg") center top }

Beta will flag that as an error. That does not make sense. Sometimes it wants the x word first, sometimes second.

Posted: Wed Apr 30, 2008 8:51 am
by roedygr
W3C uses this order background-position: top left
in other words Y then X for words, but X then Y for percentages.

This is goofy, but from experiment that is how it seems to work.

see http://mindprod.com/jgloss/css.html#POSITION

Re: top center vs center top

Posted: Wed Apr 30, 2008 3:41 pm
by Albert Wiersch
roedygr wrote:body { background: url("banner.jpeg") center top }

Beta will flag that as an error. That does not make sense. Sometimes it wants the x word first, sometimes second.
Can you send me a sample document that reproduces this problem? CSE HTML Validator v9.0 BETA 1 did not generate any errors for me with the following CSS document so I'm not sure what is happening:

Code: Select all

body { background: url("banner.jpeg") center top  }