| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Help Needed with the layout!
Hi Peeps,
I am very new to ASP programming. But this gotta do with the layout and design. Currently, i have a page call "viewlist.asp". And a menu bar on the top page of every web page i have. whenever i uses the menu bar to navigate to the viewlist.asp, all of alignment are out of place. i do not understand why this happens. pls do advise me. Code Below ----------------------------------------------------------------------------------------------------------------------------------- <%@LANGUAGE="VBSCRIPT"%> <%Option Explicit%> <html> <head> <title>KBP Intranet</title> <link rel="stylesheet" type="text/css" href="style.css"> <style type="text/css"> <!-- .style12 {font-family: "Arial Unicode MS"; font-size: 11px; } .style16 {font-family: "Arial Unicode MS"; font-size: 11px; color: #000000; } .style20 {color: #000000; font-family: "Arial Unicode MS"; font-weight: bold; font-size: 11px; } --> </style> </head> <body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#ffffff"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="50%" height="975" background="images/bg.gif"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td> <td valign="bottom" background="images/bg_left.gif"><img src="images/bg_left.gif" alt="" width="17" height="16" border="0"></td> <td> <table border="0" cellpadding="0" cellspacing="0" width="807"> <tr> <td rowspan="2" width="100%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table cellspacing ="0" cellpadding ="0" width="100%" border="0"> <tr> <td><div align="left"> <table cellspacing= "0" cellpadding = "0" width="100%" border="0"> <tr> <td width="20%" height="20" colspan ="5" bgcolor="#FFFFFF"><!--#include file="mainmenu/header.inc"--></td> </tr> </table> </div></td> </tr> <tr> <td><img src="images/try.JPG" width="806" height="62"></td> </tr> </table></td> </tr> <tr> <td height="177"><img src="images/main_logo.JPG" width="807" height="202"></td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/fon04.gif"> <tr> <td width="578"><img src="images/fon04.gif" width="35" height="61"></td> <td width="116" background="images/but02.gif"> <table width="116" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="39"></td> <td width="77" class="menu01"><a href="main.asp" target="_parent"><font color="#000000">HOME</font></a></td> </tr> </table></td> <td width="113" background="images/but02.gif"> <table width="113" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="45"></td> <td class="menu01"><a href="Contact_Us1.asp" target="_parent"><font color="#000000">CONTACT</font></a></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="807"> <tr> <td colspan="4" height="19" background="images/fon01.gif"><img src="images/px1.gif" width="1" height="1" alt="" border="0"> </td> </tr> <tr> <td background="images/fon02.gif" height="87" align="center" width="572"> </td> <td width="4" height="87" background="images/fon02.gif"><img src="images/e01.gif" width="2" height="87" alt="" border="0"></td> <td background="images/fon02.gif" height="87" align="center" width="227"> <table border="0" cellpadding="0" cellspacing="0" background=""> <form name="SearchFrm" method="post" action="searchresult.asp"> <tr> <td width="85"><p><img src="images/e06.gif" width="16" height="9" alt="" border="0"> <b>Search</b></p></td> <td width="87"><input type="Text" name="SearchName" value="Enter Key Words" size="20"></td> <td width="19"><input type="Image" name="Submit" src="images/b_go.gif" width="19" height="25" alt="" border="0" hspace="10" align="absbottom"></td> </tr> </form> </table> <%If request.Form("SearchName") = "" then%></td> <td width="4" height="87" align="right" background="images/fon02.gif"> </td> </tr> <%end if%> <tr> <td colspan="4" height="21" background="images/fon03.gif"><img src="images/px1.gif" width="1" height="1" alt="" border="0"><span style="padding-bottom : 0px; margin-bottom : 0px; margin-left : 45px; margin-right : 0px; font-size : 12px; font-family : Tahoma,Verdana,Arial; font-weight: bold; color: #FFFFFF;" #invalid_attr_id="0px"><%= WeekdayName(Weekday(Date)) %> <%=date()%></span></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr bgcolor="#AFC0D0" valign="top"> <td width="100%" height="413"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5" > <tr> <td height="493"><table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="White" height="100%"> <tr> <td height="3"><!--#include file="includes/conn.asp"--> </td> <td> </td> </tr> <tr> <td width="99%" height="271" align="center" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="White" align="center" height="197"> <% If request.Querystring("type") = "" then%> <tr> <td height="197" align="center" valign="top"> <%else %> <!--#include file="includes/viewtype.asp" --> <%End if%> </td> </tr> </table></td> <td align="center" valign="top" width="1%"></td> </tr> </table></td> </tr> </table></td> </tr> </table> </td> </tr> </table> </td> <td valign="bottom" background="images/bg_right.gif"><img src="images/bg_right.gif" alt="" width="17" height="16" border="0"></td> <td width="50%" background="images/bg.gif"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td> </tr> </table> </body> </html> -------------------------------------------------------------------------------------------------------------------------------- |
|
#2
|
||||
|
||||
|
Okay... WHY are you using tables to layout a page?!?!
That code is too bloated, invalid, bad-spec, and a mess I can't help you My only suggestion is to take a look at your \mainmenu\header.inc file and see if it contains any elements with superflous padding or margins inside it |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Help Needed with the layout! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|