position boxes |
position boxes |
![]()
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
|
|
|
![]() |
*This Confession* |
![]()
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 |
|
|
![]() ![]() |