Positioning is off |
Positioning is off |
Jul 8 2009, 07:55 PM
Post
#1
|
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 79 Joined: Oct 2007 Member No: 583,422 |
I have been trying to do this layout all day and for the life of me I can't figure out what's wrong..
Everything is backwards. Where I want something to appear several pixels from the left it goes half way across the page but it works perfectly if i go from the right rather then the left. or I'm trying to position my news 160px from the top but it went to the bottom of my page. I set it to 0 and it still doesn't reach the top of my page. CODE <?php include('header.php'); ?> <div style="position:absolute;background-color:#ffffff; right: 342px; top:0px; width:494px;border= 1px solid #000000; overflow: auto; overflow-x: hidden;"> <div class="content"> <?PHP $number=5; $template="Lay1"; include("/home/trulysel/public_html/cutenews/show_news.php"); ?> <?php include('footer.php'); ?> thats the code. here's the site click here help? |
|
|
|
![]() |
Jul 8 2009, 08:03 PM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 7,063 Joined: Jul 2008 Member No: 670,288 |
First off change the right property to margin-left and add left:50;
|
|
|
|
Jul 9 2009, 09:26 AM
Post
#3
|
|
|
Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 |
Posts merged.
|
|
|
|
rayyyy Positioning is off Jul 8 2009, 07:55 PM
rayyyy yeah, no dice. lol Jul 8 2009, 08:06 PM
HeartOfPandora If you want to position things from the left, then... Jul 8 2009, 08:32 PM
rayyyy Yes, I understand that. What I'm saying though... Jul 8 2009, 08:39 PM
HeartOfPandora Ja okay see problems like this are what validating... Jul 8 2009, 08:43 PM
rayyyy yeah, i've already done that but i want to kno... Jul 8 2009, 08:44 PM
HeartOfPandora Gee, I wonder if maybe your browser doesn't kn... Jul 8 2009, 08:58 PM
mipadi QUOTE(HeartOfPandora @ Jul 8 2009, 09:58 ... Jul 9 2009, 10:11 AM
rayyyy know what? i've never had this problem before ... Jul 8 2009, 09:00 PM
rayyyy Sure sounded like it, but it could just be the fac... Jul 8 2009, 09:05 PM
HeartOfPandora I wasn't trying to be rude, but seriously, go ... Jul 8 2009, 09:10 PM
rayyyy Not hard as much as it is time consuming, granted ... Jul 8 2009, 09:11 PM
HeartOfPandora Take a break, grab some toast... Seriously, stop ... Jul 8 2009, 09:19 PM
rayyyy What doctype should I be using? Jul 8 2009, 09:22 PM
HeartOfPandora Personally I always shoot for XHTML 1.0 Strict but... Jul 8 2009, 09:28 PM
rayyyy I have an external style sheet. this was an adopte... Jul 8 2009, 09:33 PM
HeartOfPandora Well in that case, why not just write up a new lay... Jul 8 2009, 09:37 PM
rayyyy i was hoping i wouldn't have to haha.
now th... Jul 8 2009, 09:47 PM
rayyyy Oh well, as it stands now my page only has 3 error... Jul 9 2009, 02:00 PM
fixtatik Validation doesn't make problems go away; it... Jul 9 2009, 06:14 PM![]() ![]() |