Will REP for CSS help

Discussion in 'HTML & Website Design' started by jquindlen, Aug 11, 2007.

  1. #1
    Hey there. Thanks for looking at my topic. I'm working on a template for OS Commerce that matches the rest of my site (I've already made a Wordpress theme, a phpBB 3, and an XHTML/CSS version that matches the site)

    The only issue I have now is getting the header to stay centered when you resize a window in Internet Explorer 7 (haven't checked 6 yet)

    Here's the site: http://store.agaresmedia.com/

    Anyway, I need to get this done before Monday, and I've already spent 4 hours trying to fix it. Any help would rock. :D
     
    jquindlen, Aug 11, 2007 IP
  2. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #2
    There's a small CSS trick that doesn't even require you to use the <center> tags.

    /* WIDTH OF YOUR LAYOUT */

    #wrapper {
    width: 800px;
    height: 100%;
    margin: 0 auto;}

    /* BACKGROUND IMAGE */

    #bg {
    float: left;
    width: 800px;
    height: 100%;
    background: url(images/storeback.gif) repeat-y;}

    Then use:
    
    <div id="wrapper">
    <div id="background">
    
    LAYOUT HERE
    
    </div>
    </div>
    HTML:
     
    Katy, Aug 11, 2007 IP