walidaly
11-19-2005, 12:12 AM
hi!
this is the html code I'm trying to use on error pages using php scripts..so, I'd like to use a tableless design thus, printing a long url into a floating div which is inside a limited width div breaks the page design.
this is it with a table
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<STYLE TYPE="text/css">
<!--
#container{
padding-top:15%;text-align:center;
}
#container table{
padding: 0;
margin: 0;
text-align: left;
margin-left: auto;
margin-right: auto;
}
.url{
padding-left:14px;
}
.rightdiv{
padding-left:20px;
}
-->
</STYLE>
</head>
<body>
<div id="container">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td style="padding-right:20px;"><img src="error.gif" alt="Error!" width="95" height="90" /> </td>
<td class="rightdiv"><h1>404 : We couldn't find the page </h1>
<div class="url">http://www.site.com/error-url</div></td>
</tr>
</table>
</div>
</BODY>
</HTML>
imagen the "http://www.site.com/error-url" url becomes "http://www.site.com/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX"
this is the html code I'm trying to use on error pages using php scripts..so, I'd like to use a tableless design thus, printing a long url into a floating div which is inside a limited width div breaks the page design.
this is it with a table
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<STYLE TYPE="text/css">
<!--
#container{
padding-top:15%;text-align:center;
}
#container table{
padding: 0;
margin: 0;
text-align: left;
margin-left: auto;
margin-right: auto;
}
.url{
padding-left:14px;
}
.rightdiv{
padding-left:20px;
}
-->
</STYLE>
</head>
<body>
<div id="container">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td style="padding-right:20px;"><img src="error.gif" alt="Error!" width="95" height="90" /> </td>
<td class="rightdiv"><h1>404 : We couldn't find the page </h1>
<div class="url">http://www.site.com/error-url</div></td>
</tr>
</table>
</div>
</BODY>
</HTML>
imagen the "http://www.site.com/error-url" url becomes "http://www.site.com/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX"