Positioning is off |
Positioning is off |
![]()
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? |
|
|
![]() |
![]()
Post
#2
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 ![]() |
Validation doesn't make problems go away; it's a guideline to fix those problems. Besides, the errors that you have are serious ones, and they're the type that need to be fixed. To start with, you have a div, iframe, image, and a map in your header. That's a no-no. You've incorrectly closed the tags (using < /div> and < /head> instead of </div> and </head>). You have elements that are open, but are never closed, and you have elements outside the closing tag of the HTML page.
I wouldn't suggest validating your code; it's useless at this point. Instead, look at how HTML pages are structured. An overview of an HTML page: link A detailed explanation of what each required component of an HTML page means: link |
|
|
![]() ![]() |