This is a discussion on "Css code problem in firefox and safari" within the Web Page Design section. This forum, and the thread "Css code problem in firefox and safari are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Css code problem in firefox and safari
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Css code problem in firefox and safari
Hi I have a problem with my website:
www.longcroft.eriding.net the banner at the top is not displaying correctly in firefox and safari, the css code is below, does anybody have any ideas its aligning to the left not the centre. It works fine in ie Thanks #banner { background-color: white; text-align: center; padding: 0px; margin: 0px; } #banner img {padding:0px 0px;} |
|
#2
|
|||
|
|||
|
Re: Css code problem in firefox and safari
try this
#banner { background-color: white; text-align: center; padding: 0px; margin: 0px; } #banner img {padding:0px 0px; width: (enter the width of the banner - important ) margin:auto; } this should center the image. |
![]() |
| Tags |
| css, html, image alignment |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS not ok with Firefox / Safari | floydus | Web Page Design | 1 | May 14th, 2008 10:17 |
| Real problem centreing images in Firefox/Safari... | JamesHatter | Web Page Design | 2 | Apr 10th, 2008 16:14 |
| Problem with code in Firefox | psycho wolvesbane | JavaScript Forum | 2 | Apr 6th, 2008 10:41 |
| This code has problem in Firefox | abalfazl | Web Page Design | 8 | Feb 23rd, 2007 16:00 |
| Safari or Firefox? I want both! | impulse29 | Web Page Design | 3 | Aug 7th, 2006 14:20 |