www.webdeveloper.com
Results 1 to 4 of 4

Thread: DIV Background Watermark

  1. #1
    Join Date
    May 2006
    Posts
    20

    DIV Background Watermark

    Is there a way to create a background image watermark effect on a div section opposed to the body? I tried and it didn't work...

    Code:
    div#details{
    	background-image:url(Images/back.gif);
    	background-position: center 50px;
    	background-repeat:no-repeat;
    	background-attachment:fixed;	
    	background-color:#790000;
    	border:2px solid #000000;
    	margin: 0px 0px 10px 175px;
    	padding: 10px 15px 10px 15px;
    	width:510px;
    }

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Works for me as long as my div is > 50px in height....
    54 68 65 42 65 61 72 4D 61 79

  3. #3
    Join Date
    Mar 2006
    Posts
    227
    Looks like it should work just fine.

    Just make sure you have the correct filepath and name for your background image.

    --Natalie

  4. #4
    Join Date
    May 2006
    Posts
    20
    I think its an IE problem now because it seems to work in firefox....

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