WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Background Image Won't Show Up (9 posts)

  1. ayyhwang
    Member
    Posted 2 years ago #

    I used the html selector to call my background image like so:

    html {
    background-image: url('http://ayyhwang.com/blog/wp-content/uploads/2011/12/cda2.png');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    }

    It's a valid image link, so I don't know what the problem is. On Chrome I can see it briefly in the bottom right corner where it's supposed to be, but then it looks like it disappears or something covers it up.

    Thank you!

  2. premiumtheme
    Member
    Posted 2 years ago #

    .body {
    background-image: url('http://ayyhwang.com/blog/wp-content/uploads/2011/12/cda2.png');
    background-position: right bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    }

  3. ayyhwang
    Member
    Posted 2 years ago #

    Hi premiumtheme,

    That doesn't seem to work -- still no background image.

    Any other ideas?

  4. premiumtheme
    Member
    Posted 2 years ago #

    this should work

    .ribbon {
    width:69px;
    height:164px;
    position:fixed;
    bottom:0px;
    right:0px;
    border:none;
    }

    then add the image to your page with the class ribbon

    eg: <img src="http://ayyhwang.com/blog/wp-content/uploads/2011/12/cda2.png" class="ribbon" />

  5. premiumtheme
    Member
    Posted 2 years ago #

    ...forgot to wrap the code

    <a href="http://www.cssdesignawards.com"><img src="http://ayyhwang.com/blog/wp-content/uploads/2011/12/cda2.png" class="ribbon" /></a>

  6. ayyhwang
    Member
    Posted 2 years ago #

    That worked, thanks so much!

  7. premiumtheme
    Member
    Posted 2 years ago #

    your welcome

  8. bg
    Member
    Posted 2 years ago #

    Help!!! I use Twenty Ten for my blog, but I can't find the way to customize the blog so it views like a desktop on a mobile as well, which includes background images and everything on the page?

  9. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    @sobuddy

    please start your own topic

Topic Closed

This topic has been closed to new replies.

About this Topic