Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - CSS: problem with background attachment

 
Thread Tools Search this Thread
Old 02-24-2004, 12:22 PM   #1
Default CSS: problem with background attachment


By standard, background attachment goes in this order: horisontal position,
vertical position. Unfortunantly, Opera does it the other way. So when i
put:
background: url(title.jpg) no-repeat center 32px;

IE puts it on top of the page, and Opera puts it on the left side of the
page.

Any suggestions?




Dimorph
  Reply With Quote
Old 02-24-2004, 12:34 PM   #2
GD
 
Posts: n/a
Default Re: CSS: problem with background attachment

Dimorph <> wrote:
> By standard, background attachment goes in this order: horisontal position,
> vertical position. Unfortunantly, Opera does it the other way.


No it doesn't.

> background: url(title.jpg) no-repeat center 32px;


This is invalid CSS at the moment. The CSS spec says you cannot mix
numeric values and keywords so change it to '50% 32px'

As far as I know, this will be changed in the future at which point you
can expect Opera's behaviour to follow, but the CSS1 and CSS2 specs do
not allow it.

  Reply With Quote
Old 02-24-2004, 12:44 PM   #3
Steve Pugh
 
Posts: n/a
Default Re: CSS: problem with background attachment

"Dimorph" <> wrote:

>By standard, background attachment goes in this order: horisontal position,
>vertical position.


No it doesn't. Background-attachment takes a single value out of
scroll, fixed and inherit. You're thinking of background-position.

>Unfortunantly, Opera does it the other way.


Not true.

> So when i put:
>background: url(title.jpg) no-repeat center 32px;


My copy of Opera (7.23 on WinXp) completely ignores the whole of the
that background property, because of the syntax errors in the CSS.

http://www.w3.org/TR/CSS2/colors.htm...und-attachment

"Keywords cannot be combined with percentage values or length values."

You want 50% 32px

>IE puts it on top of the page, and Opera puts it on the left side of the
>page.


IE is more forgiving of bad syntax than Opera.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Forum Jump