Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS background repeat help

    So I've been reading, watching, and listening to tutorials all day, but I've come to a place that I got stumped. I finished the HTML file and started the CSS file.

    So, I cut a jpeg from photoshop to repeat the background on the x axis.

    I have

    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />

    in the HTML to refer to the css file style.css

    Here is my CSS code


    body { font-family: Arial, Helvetica, sans-serif; }

    .container {
    width: 800px;
    margin: 0 auto;
    }

    '
    body, div, h1, h2, h3, h4, h5, h6, p, ul, img {margin:0px; padding:0px; }

    url (images/background.jpg)

    #main {
    background-image:url(images/background.jpg) repeat-x;
    }

    The Image/Background is not showing up.

    The image background.jpg in desktop->webdesignfolder->imagesfolder

    The index.html and style.css files are in the desktop->webdesignfolder

    Can someone help me out?
    Last edited by Egungon; 02-09-2012 at 07:45 AM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Can someone help me out?
    have you validated your CSS?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •