Results 1 to 3 of 3

Thread: problem with image in css

  1. #1
    Junior Member
    Join Date
    Oct 2012

    Question problem with image in css

    Hello Friends,

    Hello Friends looking for help, I am having problem with css specialy with these code

    body {background: url(./images/bg-body.gif) repeat center;
    color: #80662b;
    font-family: 'AndikaRegular';
    font-size: 14px;
    margin: 0;
    min-width: 950px;
    padding: 0;
    When i put these code separate with my php file, but it it not working. I have used all images, except background images all images are working.
    Can any one explain why it's happened?


  2. #2
    Senior Member Jordan's Avatar
    Join Date
    Dec 2010
    Australia m8

    Re: problem with image in css

    I'm not sure about 'repeat center', but CSS isn't my thing.

    My first thought is perhaps if you're using ./ wrap the file location in quotes.

    background: url('./images/bg-body.gif') repeat center;
    Main PC: i7 860 Quad Core 2.8GHz. 16GB DDR3 @ 1666mhz. 760 GTX 2GB, RX570 8GB, 128GB SSD, 1 TB SSHD, 2 x 1TB Samsung HD103SJ. Win 10 x64. Thermaltake Element V.

    Server: Ryzen 3 3GHz Quad Core, 4 GB DDR4, Not important, 256GB Intel 545 SSD, 5 x 4TB Somthings

  3. #3
    Administrator Specific's Avatar
    Join Date
    Dec 2010

    Re: problem with image in css

    Maybe we could help more if you provided the web address where we can see what is happening? It could be that you haven't wrapped the code in style tags or inside a stylesheet. I would also recommend using URLs relative to the root (e.g. /images/bg-body.gif). I would help you further if you provide more information.

Posting Permissions

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