Adding image to background, How? v. Autofocus (5 posts)

  1. s34s0ns
    Posted 6 years ago #

    Hey guys,

    I believe that the background of Autofocus is just set to white, not sure if it's considered an image etc. but how do I add my own? I don't just want to change the color, which i believe you can do in the stylesheet, but how would I add an image?

    website is williambordonaro.com

    Looking to replace the white background with an image. Additionally, how can I figure out what size to make the background image in order for it to look like it fits correctly?

  2. s34s0ns
    Posted 6 years ago #

    still looking to figure this out.

  3. s34s0ns
    Posted 6 years ago #

    Any advice on how to do this?

  4. buddhapax
    Posted 6 years ago #

    Open the file style.css you'll find in /wp-content/themes/autofocusplus/ and look for

    /*	Global
    -------------------------------------------------------------- */
    html {margin:0;padding:0}
    body {color:#999999;background-color:#FFFFFF;font-size:12px;line-height:22px;font-family: helvetica, arial, sans-serif;}

    in body {}

    add background-image: url('http://www.WHERE_YOUR_IMAGE_IS/image.EXT');

    So you'll have something like:

    body {color:#999999;background-color:#FFFFFF;font-size:12px;line-height:22px;font-family: helvetica, arial, sans-serif;background-image: url('http://www.mysite.com/hello.jpg');}

    For background-image properties (like position, repetition, etc...) have a look of: http://www.w3schools.com/css/css_background.asp

  5. nicnelly
    Posted 6 years ago #

    I can't figure out why this isn't working for me. this is what I posted:

    background-image:url('http://nielsen10973.c3.cmdwebsites.com/blog/wp-content/uploads/2010/06/blog-background-blue.jpg');color:#444;font:1.4em/1.6 "Hoefler Text", "Georgia", Georgia, serif, sans-serif;margin:0;padding:0}

    and the background is still white. Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic