• Hi all,
    I have this code for my image on the header. I would like to center it. i have searched this place for help, tried loads of codes but without succession.

    This is the code i use atm:

    #header {
    background: #FFFFFF url(images/logo.gif) no-repeat;
    height: 113px;
    margin: 0; class: center;
    padding: 0;

    }

    Could anyone give me some code to centre the image please??

    Thank you very much,
    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would try changing these two lines:

    background: #FFFFFF url(images/logo.gif) no-repeat center;

    margin-left: auto;
    margin-right: auto;

    …or just “margin:0 auto;”

    there’s not such thing as “class” *within* CSS stuff. You can apply classes to things, but it’s not an actual call within CSS. That “class:center” needs to go.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PLease Help; need to center image…’ is closed to new replies.