Different Browser Difficulties

Ms Apathy's picture

They have: 5 posts

Joined: Sep 2007

First post - so trying not to make a hash of it..........

Have checked out my site in various browsers - ok in most but having problems with IE 6 and earlier editions.
Two of my images have moved - this is the coding I used to position them

display: block;

margin-left: auto;

margin-right: auto;

It doesn't look too bad,but I want it how I want it! Is that possible?

(Css and XHTML does validate)

Thanks.
Lizzie

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Could you provide a URL so we can see exactly what's happening?

Ms Apathy's picture

They have: 5 posts

Joined: Sep 2007

Ok here it is -

http://www.careachievers.com/

The small star logo below the writing should be in the centre and the
Baddogwagdog logo should be in the centre too.Well they are -apart from IE 5 and 6.
In IE 5/6 the small star logo goes to the left and the BDWD logo goes to the right (actually think I might prefer it there..........)

My coding could be a bit messy.This is my first website so I hope that excuses me a bit.

Is it possible to make a site look the same in all browsers or am I just a tad naive?Smiling

Regards
Lizzie

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

This is a bug in Internet Explorer, don't worry about your coding being messy. It's valid and semantic, which is good! Smiling

You'll need to set:

#footer {
  text-align: center;
}
'
and
#main {
  text-align: center;
}
'
You'll notice that the text alignment of all the text is centred in #main now, very annoying, so you could fix this with:
#main p {
  text-align: left;
}
'
Wait until you run into the other problems that browser causes, you'll learn to hate Internet Explorer. Hope this helps Smiling

a Padded Cell our articles site!

Ms Apathy's picture

They have: 5 posts

Joined: Sep 2007

Thankyou JeevesBond.

Yes I do already hate IE and no I don't use it myself.Laughing out loud

That solved the problem with the BDWD logo -which now looks good in all the browsers (although haven't checked it in the Mac or Linus browsers.Does it ever end?Sad )

Now all I need is to centre the small star image.............
The coding I have for that is -

img.stars

{

display: block;

margin-left: auto;

margin-right: auto;

}

Looks ok in IE 7 just problems in 5 and 6.Where it goes to the left.

Why can't everyone just use Firefox? Smiling Who said choice was a good thing!

Regards

Lizzie

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Lizzie wrote: Now all I need is to centre the small star image.............

Didn't that code I posted above fix the small star image? It's the one inside #main? You'll have to set the text-align for #main to centre, then set the text-align for #main p to left (see the code above).

Lizzie wrote: Why can't everyone just use Firefox? Who said choice was a good thing!

Well I use Opera, Firefox and Konqueror and it renders the page pretty-much the same across all of them. Choice is a good thing, as long as standards are adhered to. Smiling

I believe most Linux people use Firefox, the other popular choice being Konqueror and it works fine in that too. You might want to check in Safari, sometimes that has the odd weird bug, nothing like Microsoft's efforts though.

a Padded Cell our articles site!

Ms Apathy's picture

They have: 5 posts

Joined: Sep 2007

JeevesBond;226254 wrote: Didn't that code I posted above fix the small star image? It's the one inside #main? You'll have to set the text-align for #main to centre, then set the text-align for #main p to left (see the code above).

Well if I had of followed your instructions to the letter - to which I have no excuse although the words Haste and Foolishness spring to mind.....Shocked

Now done what you instructed.Works great in IE6 (Hurrah) and Safari.Same prob still in all versions of IE 5.

Would it be ok to leave it or is that bad practice (and laziness)Smiling ?

Thankyou for taking the time reply to me - very much appreciated.

Regards

Lizzie

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I wouldn't worry about IE 5 - very few people use that browser anymore...

Ms Apathy's picture

They have: 5 posts

Joined: Sep 2007

Thanks Megan.
If there is small stuff to fret about - I certainly will Laughing out loud

I will now move on...........

Regards
Lizzie

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.