www.webdeveloper.com
Results 1 to 4 of 4

Thread: png background

  1. #1
    Join Date
    Sep 2007
    Posts
    26

    png background

    Anyone know why I can't seem to get a png image to display as the background of a list?

    Code:
    #menu1, #menu2, #menu3, #menu4, #menu5, #menu6, #menu7  {
    				
    			width: 330px;
    			border: 0px solid #cecece;
    			background-color: #a5d277; 
    			position:absolute;
    			background-image:  url(menuback.png);
    			background-repeat: no-repeat;
    			top:226px;
    			left:521px;
    			z-index:100;
    		}

  2. #2
    Join Date
    Jan 2005
    Posts
    592
    have you checked that the menuback.png is in the right location?

  3. #3
    Join Date
    Sep 2007
    Posts
    26
    Got it working, cheers

    how can i move the text of the menu away from the top of the background thoughh?

  4. #4
    Join Date
    Jan 2005
    Posts
    592
    give it some
    Code:
    padding-top: 10px;
    just change the pixels to your need.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles