Postioning Divs Question |
Postioning Divs Question |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 6 Joined: Sep 2005 Member No: 225,723 ![]() |
Alright, Im positioning my divs on this layout:
http://www.xanga.com/HPlayouttesting Here's the code, so far. QUOTE <center> <img src="http://makeshiftwings.org/HPLayout.png"> </center> <div style="overflow:auto; width:400px; height:550px; margin-top:-350px; margin-left:-1px;"> <style type=text/css> /* remove regular modules */ table.footer, texttable.left, td.mainleft, table.left, table.navigation, table.search{display:none} table.blogbody tr td {width:0px; padding: 0px;} </style> And yes, I've ended my div in the Website stats. Here's my problem: It only allows me to edit margin left in negative pixels. The problem is, I've made it to -1, and I haven't aligned it as far to the left as I would like it to be. If you look at it right now, the text is as far left as I can get it to go. If I try aligning it in postive numbers, it just doesn't move from it's current position. I tried setting the alignment to left, then postioning it, and it let me do that in positive numbers, and it worked, and I got it to the right place. However, the ad got moved to the left, and it was just bugging me. So can someone either expain why its only aligning in negative numbers, and what I can do to fix that. Or, how to align the ad into the center when I have th alignment set at left. Thanks a bunch! |
|
|
![]() |
![]()
Post
#2
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 ![]() |
Try the code below, I added position absolute to your div; try using negative or positive numbers now.
HTML <center> <img src="http://makeshiftwings.org/HPLayout.png"> </center> <div style="position: absolute; overflow:auto; width:400px; height:550px; margin-top:-350px; margin-left:-1px;"> <style type=text/css> /* remove regular modules */ table.footer, texttable.left, td.mainleft, table.left, table.navigation, table.search{display:none} table.blogbody tr td {width:0px; padding: 0px;} </style> Try not closing your div in webstats. Just leave it open. |
|
|
![]() ![]() |