Using an untiled image as a background

  • Author
    Posts
  • #1256525

    ihurerblog
    Member

    Hi there

    Is it possible – within the Suburbia theme – to use an image as a background and ensure it fills a viewer’s screen/window without tiling the image? Currently on larger screens the image being used on this blog seems to run out as you scroll down, leaving a dark coloured background peeking out.

    Please note that I’m a CSS novice, so the simpler the explanation the better!

    The blog I need help with is ihurerblog.org.

    #1256698

    positdesign
    Member

    Yes you can!

    The magic css statement is background:no-repeat; —as in:

    body
    {
    background-image:url('img_name.jpg');
    background-repeat:no-repeat;
    }

    #1256699

    positdesign
    Member

    Apologies for formatting!

    It should look like:

    body {
    background-image:url(‘img_tree.png’);
    background-repeat:no-repeat;
    }

The topic ‘Using an untiled image as a background’ is closed to new replies.