WordPress.org

Ready to get started?Download WordPress

Forums

Background image issue (7 posts)

  1. joeyjoejoe
    Member
    Posted 7 years ago #

    My site's at http://www.xihuaonline.com/xihua
    I'm using a modified version of ism theme from hso.

    I'm trying to add a background image (xihuaonline.com/xihua/wp-content/themes/ism/images/star.jpg)to the div #content, but for some reason it never shows up when I add the code in. It doesn't show up on either sidebar when I add the code to the sidebar, too. Can anyone take a look and diagnose my problem? Thanks!

  2. joeyjoejoe
    Member
    Posted 7 years ago #

    I want it to be aligned top left, and yes I know the code for it. Sorry, just a clarification. Thanks

  3. PozHonks
    Member
    Posted 7 years ago #

    What if url(/xihua/wp-content/themes/ism/images/star.jpg) instead?

  4. joeyjoejoe
    Member
    Posted 7 years ago #

    Nah, I've got the url right and in the code it's url(images/star.jpg), but it never shows up for some reason.

  5. joeyjoejoe
    Member
    Posted 7 years ago #

    I still can't get it up and I'm certain I've got the right code in. Anyone else with this problem?

  6. joeyjoejoe
    Member
    Posted 7 years ago #

    can i get a bump

  7. whooami
    Member
    Posted 7 years ago #

    youve broken your CSS

    #content {
    
    	width:50%;
            padding:0px 16px 0 16px;
    	float:left;
    	font-size:1.2em;
    	border-left:1px dashed #000000;
    	border-right:1px dashed #000000;
    	border-bottom:20px solid #fff
    	background-image: url(http://www.xihuaonline.com/xihua/wp-content/themes/ism/images/star.jpg);
    	background-repeat: no-repeat;
    	background-position: top left;
    }

    you are missing the closing ; after this:

    border-bottom:20px solid #fff

    3 weeks and you couldnt figure that out? Please bookmark this site:

    http://jigsaw.w3.org/css-validator/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags