SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Center image replacement header

    i am making a css web layout here : www.mitchellpage.com/temp/eck/

    Trying to get the image replacement header (banner) centred. It works fine in IE but in FF its on the left.

    Any CSS tips are appreciated - perhaps i am not using the right structure?

  2. #2
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    text-align: center doesn't work for block elements like headings and divs even if they have a specified width like in your example, except of course in IE. You need to use margin: 0 auto.
    Dan G
    Marketing Strategist & Consultant

  3. #3
    SitePoint Addict
    Join Date
    Oct 2005
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks heaps.. Problem solved.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •