Real problem centreing images in Firefox/Safari...

This is a discussion on "Real problem centreing images in Firefox/Safari..." within the Web Page Design section. This forum, and the thread "Real problem centreing images in Firefox/Safari... are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 10th, 2008, 13:55
New Member
Join Date: Jun 2007
Location: Stevenage, Herts
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Real problem centreing images in Firefox/Safari...

Hi guys,

I'm making a website and I'm using CSS for the layout etc. I've used this code to centre an image horizontally to the middle of the page...

Code: Select all
#header img{
display: block;
text-align:center; /* aligns the header image to the center of the page (the SSM logo) */
}
It works fine in Internet Explorer, but when I view my site in Mozilla Firefox, the image is aligned to the left instead of the centre! Please could you help me, what code should I be using?

Many thanks, I am so grateful if anyone can help me

Last edited by Aso; Apr 10th, 2008 at 15:22.
Reply With Quote

  #2 (permalink)  
Old Apr 10th, 2008, 15:12
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 825
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Real problem centreing images in Firefox/Safari...

Could you post your code or give us a link to the site please
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
Reply With Quote
  #3 (permalink)  
Old Apr 10th, 2008, 15:14
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,604
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Real problem centreing images in Firefox/Safari...

Code: Select all
#header {
text-align:center;
}
HTML: Select all
<div id="header"><img src="" width="" height="" alt="" /></div>
Since it doesn't seem you are using background images that should work.
__________________
I've got <style> and .class

Last edited by Aso; Apr 10th, 2008 at 15:22.
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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Safari(WebKit) vs Firefox and Camino(Gecko) Ducky Web Page Design 0 May 26th, 2008 13:29
CSS not ok with Firefox / Safari floydus Web Page Design 1 May 14th, 2008 09:17
site is great in safari & firefox, but not IE7... algoodbody Starting Out 19 Jul 12th, 2007 12:48
Images in safari joshcxa Webforumz Cafe 2 May 3rd, 2007 06:28
Safari or Firefox? I want both! impulse29 Web Page Design 3 Aug 7th, 2006 13:20


All times are GMT. The time now is 04:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43