Log In · Register

 
position boxes
itsjustme071286
post Sep 4 2006, 07:24 PM
Post #1


Newbie
*

Group: Member
Posts: 9
Joined: Nov 2005
Member No: 309,801



is there a code where i can put a picture in a box and being able to postion that box where ever i want
 
 
Start new topic
Replies
*This Confession*
post Sep 4 2006, 07:30 PM
Post #2





Guest






yeaa
CODE
<div class="content" style="position: absolute; left:000px;  top:000px; width:000px; height:000px; overflow: auto;"><center>
CONTENT FOR DIV.
</div>


put the code for the image where it says CONTENT FOR DIV.
Change the width and height for the same as the image
and change the left and top to numbers to position in it.

CODE
Positioning made easy?


quick lesson on "position: relative"

top: -45px = moves up 45px
top: 45px = moves down 45px
left: -15px = moves left 15px
left: 15px = moves right 15px

quick lesson on "position: absolute"

top: 0% = moves to top of page
top: 50% = moves to middle of page
top: 100% = moves to bottem of page
left: 0% = moves to left of page
left: 50% = moves to center of page
left: 100% = moves to right of page
margin-left: -15px = moves left 15px
margin-left: 15px = moves right 15px
margin-top: 45px = moves down 45px
margin-top: -45px = moves up 45px
 

Posts in this topic
itsjustme071286   position boxes   Sep 4 2006, 07:24 PM
This Confession   yeaa CODE<div class="content" style=...   Sep 4 2006, 07:30 PM
itsjustme071286   Is there a way to take out the scroll bars and mov...   Sep 4 2006, 08:02 PM


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