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
    Regular Coder
    Join Date
    Apr 2011
    Posts
    107
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Why my css background image wont show?

    For some reason my background image does not show, i cant figure out why? any help is appreciated.

    CSS CODE
    Code:
    body 
    {
    background-image:url('./Images/Homepage/background.jpg');
    }
    
    #wrapper {
    
    	width:1020px;
    	margin:auto;
    
    }

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Hey there shakoor6,

    try:
    Code:
    background-image:url('.../Images/Homepage/background.jpg');
    If that doesn't work, try posting the full html/css or better yet, a sure fix is by posting your website link. Also tell us about file locations, where is the .html/.php file where the background isn't showing up?


  •  

    Posting Permissions

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