Opera misbehaves?

S

Samuël van Laere

I have the following in my stylesheet:
background: #FFFFFF url(herfst/den.gif) no-repeat right 0px;

Under Opera 7.11 the image is moved to the left-side.
Its the 0px that Opera doesn't like:
http://samuel.phpindex.nl

Is there a fix? (other then removing the 0px..)
 
M

Michael Wilcox

Samuël van Laere said:
I have the following in my stylesheet:
background: #FFFFFF url(herfst/den.gif) no-repeat right 0px;

Under Opera 7.11 the image is moved to the left-side.
Its the 0px that Opera doesn't like:
http://samuel.phpindex.nl

Is there a fix? (other then removing the 0px..)

Having 'right' and '0px' is redundant, so I'd just stick with 'right'. What
happens when everything is defined longhand?

body
{
background-color: #fff;
background-image: url("herfst/den.gif");
background-repeat: no-repeat;
background-position: right;
}
 
T

Toby A Inkster

Samuël van Laere said:
I have the following in my stylesheet:
background: #FFFFFF url(herfst/den.gif) no-repeat right 0px;

Correct syntax is:
background: colour image repeat attachment x-pos y-pos;

So you should have:
background: #FFFFFF url(herfst/den.gif) no-repeat scroll 0px right;
 
S

Samuël van Laere

Toby A Inkster said:
Correct syntax is:
background: colour image repeat attachment x-pos y-pos;

So you should have:
background: #FFFFFF url(herfst/den.gif) no-repeat scroll 0px right;

Thanks a lot Toby,

I removed the graphic anyway, Mozilla wouldn't display it and Opera would
still display it to the left.
Mozilla simply doesn't like the 0px.
I rather work with browsers then against them, perhaps it was overkill
anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top