Log In · Register

 
Customizing Div Overlay boxes.
pfefferminzkeks
post Dec 15 2008, 05:58 AM
Post #1


Newbie
*

Group: Member
Posts: 4
Joined: Dec 2008
Member No: 703,619



Hi! happy.gif How can I use this photo:



as a box to insert text into? I want to resize and reuse the same image for each box.
 
 
Start new topic
Replies
Mickey
post Dec 15 2008, 07:35 AM
Post #2


Treasure Pleasure
********

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



First, you'd have to position that image somewhere on your profile. Doing so will also give you the option to edit that image's height/width. Here's how it should look as an example:

CODE
<style>
.box1 {position:absolute; top:300px; left:50%; margin-left:-400px; width:592px; height:464px;}
</style>

<img src="http://i34.tinypic.com/1zguxxf.png" class="box1">

You can change it's position by playing around with the top and margin-left properties. You can also change that image's size by replacing the width and height attributes with a different amount of pixels. Then, you'd need to create a textbox that will go inside it. What you can do is use a simple DIV code, like so:

CODE
<div style="position:absolute; top:315px; left:50%; margin-left:-385px; width:560px; height:435px;">
YOUR TEXT HERE
</div>

Just replace the text in all caps with your own text. Again, you can change the positioning attributes as well as the size attributes according to your liking. Enjoy.
 

Posts in this topic


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