top center vs center top

For topics about current BETA or future releases, including feature requests.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

top center vs center top

Post by roedygr » Wed Apr 30, 2008 8:22 am

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.

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Post by roedygr » Wed Apr 30, 2008 8:51 am

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

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3397
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: top center vs center top

Post by Albert Wiersch » Wed Apr 30, 2008 3:41 pm

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  }
Image
Albert Wiersch

Post Reply