Log In · Register

 
 
Closed TopicStart new topic
DIV text box?
unicorndestroyer
post Aug 12 2009, 10:42 AM
Post #1


Member
**

Group: Member
Posts: 12
Joined: Apr 2009
Member No: 725,335



Does anyone have a good code for a DIV text box? I made an image to cover the left side of the layout, with a box designated for text, and I want to place a text box with those dimensions over the image. All the codes i've tried so far place the box behind the image, is there a way to put one in front of the image?

Thanks!
 
Mickey
post Aug 12 2009, 10:47 AM
Post #2


Treasure Pleasure
********

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



Try this code:

CODE
<div style="position:absolute; top:#px; left:50%; margin-left:#px; height:#px; width:#px; z-index:9;">
Insert your content here.
</div>

Replace the pound symbols on the top and margin-left properties with values according to where you want it positioned. Do the same to the pound symbols on the height and width properties according to the size you want it to be. See if that works for you.
 
unicorndestroyer
post Aug 13 2009, 08:24 AM
Post #3


Member
**

Group: Member
Posts: 12
Joined: Apr 2009
Member No: 725,335



Thanks Mike, exactly what I needed!
 
Mickey
post Aug 13 2009, 08:26 AM
Post #4


Treasure Pleasure
********

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



Topic closed & moved.
 

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