Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Feb 2007
    Location
    West Texas
    Posts
    128
    Plugin Contributions
    1

    help question How do I center the header?

    this is what I currently have on my stylesheet:

    Code:
    #logoWrapper{
        text-align:center;width: 100%;
        background-image: url(../images/newHeader.jpg);    
        background-repeat: no-repeat;
         background-color: #fdfbee;
        height:169px;
        }
    I would like the header to be centered...........

    http://www.craft-patterns-online.com

    many thanks!

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: How do I center the header?


  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I center the header?

    Quote Originally Posted by tolefairy View Post
    this is what I currently have on my stylesheet:

    Code:
    #logoWrapper{
        text-align:center;width: 100%;
        background-image: url(../images/newHeader.jpg);    
        background-repeat: no-repeat;
         background-color: #fdfbee;
        height:169px;
        }
    I would like the header to be centered...........

    http://www.craft-patterns-online.com

    many thanks!
    add this to the above declaration:

    background-position: 50% 50%;

  4. #4
    Join Date
    Feb 2007
    Location
    West Texas
    Posts
    128
    Plugin Contributions
    1

    Default Re: How do I center the header?

    thanks much, but doesn't mine already say text-align:center?

  5. #5
    Join Date
    Feb 2007
    Location
    West Texas
    Posts
    128
    Plugin Contributions
    1

    Default Re: How do I center the header?

    thanks Clyde.........I'll give it a try!

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I center the header?

    Quote Originally Posted by tolefairy View Post
    thanks much, but doesn't mine already say text-align:center?
    Yeah but that won't center align a background image, it would only center align a separate logo if you had one.

  7. #7
    Join Date
    Feb 2007
    Location
    West Texas
    Posts
    128
    Plugin Contributions
    1

    Default Re: How do I center the header?

    thank you, Clyde! That did it!

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: How do I center the header?

    Glad to help.

  9. #9
    Join Date
    Mar 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: How do I center the header?

    I seem to have the same trouble as the original poster of this thread. I can not get my image to center on the page.

    I can manipulate the image using the properties contained in #logoWrapper in my stylesheet so I know that the properties listed below actually do work with the image displayed on my page. I have used the float property and moved the image from left to right. But I want it centered. So, I inserted the "background-position:50% 50%" property as described earlier in this thread and nothing changed. I thought perhaps the image was too wide and reduced its displayed size but that didn't help either. Any other ideas would be greatly appreciated.

    from my stylesheet:

    #logoWrapper {
    width:656px;
    height:199px;
    background-image:url(../images/header_bg.jpg);
    background-repeat:no-repeat;
    background-position:50% 50%;
    }

    Website is www.charlestonislandscreations.com/catalog.

  10. #10
    Join Date
    Mar 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: How do I center the header?

    Firefox displays site w/image centered correctly. Explorer does not. Is Explorer not compatible with the background-position property in CSS?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Center the Header Logo on V1.3.7
    By mike1969 in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 28 Jan 2011, 07:48 PM
  2. How to center a logo in the header..
    By wmorris in forum General Questions
    Replies: 9
    Last Post: 13 Jun 2008, 07:27 PM
  3. How do I get the home/login etc buttons to center and the attributes box to center?
    By eye will in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Nov 2007, 09:11 AM
  4. How to center header image?
    By e-hol.co.uk in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 8 Aug 2006, 01:32 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR