CSS Align Issue in Mozilla

R

Roy Danon

Hi,

The following page :
www.droyd.net/CuttWork
Works just perfectly in IE6,
For some reason when running the same page on Mozilla the background shifts
to the left.
The body stays centered.


Why is this happening?


Roy.
 
R

Roy Schestowitz

Roy said:
Hi,

The following page :
www.droyd.net/CuttWork
Works just perfectly in IE6,
For some reason when running the same page on Mozilla the background
shifts to the left.
The body stays centered.


Why is this happening?


Roy.

You don't seem to direct the background image to lie in the center. Try
adding the appropriate attributes.

Roy
 
S

Sentient Fluid

Roy said:
Hi,

The following page :
www.droyd.net/CuttWork
Works just perfectly in IE6,
For some reason when running the same page on Mozilla the background shifts
to the left.
The body stays centered.


Why is this happening?


Roy.

<div style="text-align:center; width:100%; height:100%;
background-image:url('Back2.gif'); BACKGROUND-REPEAT:no-repeat;
BACKGROUND-POSITION: center middle;">

Shouldn't that be BACKGROUND-POSITION: center; ?

http://www.w3schools.com/css/pr_background-position.asp

~Senti
 
R

Roy Danon

Actually I am.

<div
style="text-align:center;width:100%;height:100%;background-image:url('Back2.
gif'); BACKGROUND-REPEAT: no-repeat;BACKGROUND-POSITION: center middle;">

"background-position...".


Any other solutions?


Roy.
 
R

Roy Schestowitz

Roy said:
Actually I am.

<div
style="text-align:center;width:100%;height:100%;background-image:url('Back2.
gif'); BACKGROUND-REPEAT: no-repeat;BACKGROUND-POSITION: center middle;">

"background-position...".


Any other solutions?


Roy.

I was looking at the definition at the top and did not expect in-line. I
guess you are right, but there's a reason why the statements are not
obeyed. Have you checked the syntax? have you used a validator yet?

Roy
 

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top