Viewing 3 replies - 1 through 3 (of 3 total)
  • Since it looks like you are trying to go with a responsive site, try to stay away from absolute positioning and fixed margins.. things like that. Unless for a specialty element, like a ribbon or something.

    Try the following updates to your classes above. The margin-left and margin-right auto should make your image center itself within its containing div. If this doesn’t completely fix it, let me know after the updates are done and we can go from there!

    .art-shapes
    {
       z-index: 0;
    }
    
    .art-object0
    {
        margin-left: auto;
        margin-right: auto;
        width: 900px;
        height: 400px;
        background-image: url('images/logo.png');
        background-repeat: no-repeat;
        z-index: 1;
    }
    Thread Starter brackenfellgemeente

    (@brackenfellgemeente)

    Perfect, your suggestion did the job!

    Thanks Mizagorn!

    You’re very welcome. Best wishes on your site. 🙂

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

The topic ‘Header image jumps’ is closed to new replies.