WP Framework Forums

A blank WordPress Theme Framework

Register or log in - lost password?

WP Framework Forums » General Discussion

Adding a background image

(2 posts) (2 voices)
  • Started 2 months ago by tkpgirl
  • Latest reply from ailusia
  • Related Topics:
    1. How can I assign CSS background images in WPF?
    2. adding a ie-only stylesheet
    3. Image map
    4. 2 things in a header div
    5. How can I actually modifiy the sidebar's CSS?

Tags:

  • background
  • css
  • customization
  • images
  • styles
  • stylesheet
  1. tkpgirl
    Member

    Hi, I'm new and still learning how to use the basic framework. I'd like to drop in a background image but without changing the structure of the css stylesheet. Can someone tell me where in the following code I would place the path for the background? I've created an image file with my background in it, but every time I try to set a path it either doesn't work or it restructures my whole page.

    I've looked up other topics, but the code suggested doesn't work--and I don't know where to place it anyway. Any suggestion would be appreciated!

    Thanks in advance. :)

    */

    /* Reset Browser Defaults */
    @import url( 'library/media/css/reset.css' );

    /* Apply base theme styles and colors */
    @import url( 'library/media/css/base.css' );

    /* Basic 2 Column Layout */
    @import url( 'library/media/layouts/2col-r.css' );

    /* Stylistic CSS Styles */
    @import url( 'library/media/css/screen.css' );

    /* These empty css selectors are temporarily here for compatiability with the WordPress theme repository checklist. */
    .aligncenter {} .alignleft {} .alignright {} .wp-caption {} .wp-caption-text {}

    Posted 2 months ago #
  2. ailusia
    Member

    Hi, I have my bacground image in .body class:

    html, body { height: 100%; margin: 0; padding: 0; border: 0; background-color: #E2DEB1; background-image: url(http://your-image-url-here.jpg); background-position: top center; background-repeat: no-repeat; }

    The result:
    http://klikerlab.pl/

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.

WP Framework Forums is proudly powered by bbPress.