Log In · Register

 
Need Help Again on Div
ShizukaHio
post Apr 24 2009, 02:02 AM
Post #1


Member
**

Group: Member
Posts: 28
Joined: Jan 2009
Member No: 708,903




First how do you put a background on a div? I've tried doing that and the code I'm using for the div is this:


CODE
<div class="content" style="position: absolute; left:000px; top:000px; width:000px; height:000px; overflow: auto;"><center>
CONTENT FOR DIV.
</div>
 
 
Start new topic
Replies
Mickey
post Apr 24 2009, 05:16 AM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Add background properties so it looks like this:

CODE
<div class="content" style="position: absolute; left:000px; top:000px; width:000px; height:000px; overflow: auto; background-color:000000; background-image: url(URL); background-position:center; background-repeat:repeat; background-attachment:fixed;"><center>
CONTENT FOR DIV.
</div>

Just play around with them to suit your liking.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: