• flemingxrt

    (@flemingxrt)


    Hey I am currently trying to get my backround images to work. This is my current css code */

    body {
    	text-align: center;
    	background-image: url('/images/background2.png')  repeat-x top;
    	color: #999;
    	font-family: 'Lucida Grande', Helvetica, Arial, sans-serif;
    	font-size: 11px;
    	line-height: 24px;
    }

    I have no idea why it isnt working ive tryed changing where it picks the backround up from and changed the image and put it into another folder still nothing. here is my site http://www.flemingsdesigns.net Please somone help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter flemingxrt

    (@flemingxrt)

    also im trying to get rid of the no comments text that appear i erased the coding in the single.php and nothing happend.

    Michael

    (@alchymyth)

    if you have your background image with the other images in the /images folder of your theme (yes you have, just cheked this), then the slash / before inmages in your code should not be there –
    also if you use ‘background-image, then the location and repeat is not allowed in the same daclaration.
    try this:

    background: url('images/background2.png')  repeat-x top;

    http://www.w3schools.com/css/css_background.asp

    for the comment text problem, you may need to paste a copy of single.php into a pastebin and post the linkt to it here for someone to have a look at it.

    Thread Starter flemingxrt

    (@flemingxrt)

    Yeah still not workin 🙁 here my single.php code `<?php get_header(); ?>

    <div id=”content” class=”widecolumn”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php include(‘folio-format.php’); ?>

    <?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>

    </div>

    <?php get_footer(); ?>`

    Michael

    (@alchymyth)

    try the absolute path to the background image:

    body {
    	text-align: center;
    	background: url('http://flemingsdesigns.net/wp-content/themes/Sharpfolio2/images/background2.png')  repeat-x top;
    	color: #999;
    	font-family: 'Lucida Grande', Helvetica, Arial, sans-serif;
    	font-size: 11px;
    	line-height: 24px;
    }
    Thread Starter flemingxrt

    (@flemingxrt)

    wait it is working thanks man i just need the comments fixed now lol

    Thread Starter flemingxrt

    (@flemingxrt)

    the only problem on bigger monitors it tiles it is there any way to make it like stretch or fit in?

    Michael

    (@alchymyth)

    no

    Thread Starter flemingxrt

    (@flemingxrt)

    damn alright well thanks for your help man.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Background image wont work’ is closed to new replies.