Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS Align Issue in Mozilla

Reply
Thread Tools

CSS Align Issue in Mozilla

 
 
Roy Danon
Guest
Posts: n/a
 
      04-24-2005
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.


 
Reply With Quote
 
 
 
 
Roy Schestowitz
Guest
Posts: n/a
 
      04-24-2005
Roy Danon wrote:

> 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

--
Roy S. Schestowitz
http://Schestowitz.com
 
Reply With Quote
 
 
 
 
Sentient Fluid
Guest
Posts: n/a
 
      04-24-2005
Roy Danon wrote:
> 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
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      04-24-2005
Sentient Fluid wrote:
<snip>
> <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; ?


No that should be 'background-position: center center;' or
'background-position: 50% 50%;' not 'middle'.


*Colors and backgrounds*
http://www.w3.org/TR/CSS21/colors.ht...round-position

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Roy Danon
Guest
Posts: n/a
 
      04-24-2005
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.

"Roy Schestowitz" <(E-Mail Removed)> wrote in message
news:d4g7vj$84t$(E-Mail Removed)...
> Roy Danon wrote:
>
> > 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
>
> --
> Roy S. Schestowitz
> http://Schestowitz.com



 
Reply With Quote
 
Roy Schestowitz
Guest
Posts: n/a
 
      04-25-2005
Roy Danon wrote:

> 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.
>
> "Roy Schestowitz" <(E-Mail Removed)> wrote in message
> news:d4g7vj$84t$(E-Mail Removed)...
>> Roy Danon wrote:
>>
>> > 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.


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

--
Roy S. Schestowitz
http://Schestowitz.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<div align=center> also affects align of dynamic dropdown item text Steve Richter ASP .Net 1 06-24-2007 07:11 PM
left align within centre align Paul Lautman HTML 3 03-03-2006 02:45 PM
text-align vs align tshad HTML 1 06-23-2005 10:29 PM
CSS Mozilla: Make Mozilla not ignore height style of an inline element Henri HTML 9 02-22-2005 06:08 PM
how to Align text left & vertical align middle Kay ASP .Net 2 07-25-2003 08:32 AM



Advertisments