PDA

View Full Version : i hate this problem



Mozlzel
Aug 14th, 2009, 02:07 PM
hi,
i am egyptian and my english is not good forgive me all
my problem start when i was build web site

first.. i made masterpage
this is code

<%@ Master Language="VB"

CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<table border ="0" cellpadding ="0" cellspacing ="0"

align="center" width ="940">
<tr>
<td style ="vertical-align : text-top ">
<table align="center" border="0" cellpadding="0"

cellspacing="0" width="940">
<tr>
<td style="vertical-align: text-top">
<table border="0" cellpadding="0" cellspacing="0"

width="940">
<tr>
<td colspan="2">
<img alt="" height="38" src="images/newbanner/Untitled-

1_01.gif" width="403" /></td>
<td colspan="2" rowspan="2">
<img alt="" height="76" src="images/newbanner/Untitled-

1_02.gif" width="537" /></td>
<td>
<img alt="" height="38" src="images/spacer.gif"

width="1" /></td>
</tr>
<tr>
<td rowspan="2">
<img alt="" height="60" src="images/newbanner/Untitled-

1_03.gif" width="42" /></td>
<td rowspan="2">
<img alt="" height="60" src="images/newbanner/Untitled-

1_04.gif" width="361" /></td>
<td>
<img alt="" height="38" src="images/spacer.gif"

width="1" /></td>
</tr>
<tr>
<td>
<img alt="" height="22" src="images/newbanner/Untitled-

1_05.gif" width="380" /></td>
<td rowspan="3">
<img alt="" height="64" src="images/newbanner/Untitled-

1_06.gif" width="157" /></td>
<td>
<img alt="" height="22" src="images/spacer.gif"

width="1" /></td>
</tr>
<tr>
<td colspan="2" rowspan="2">
<img alt="" height="42" src="images/newbanner/Untitled-

1_07.gif" width="403" /></td>
<td style="height: 27px">
<img alt="" height="27" src="images/newbanner/Untitled-

1_08.gif" width="380" /></td>
<td style="height: 27px">
<img alt="" height="27" src="images/spacer.gif"

width="1" /></td>
</tr>
<tr>
<td>
<img alt="" height="15" src="images/newbanner/Untitled-

1_09.gif" width="380" /></td>
<td>
<img alt="" height="15" src="images/spacer.gif"

width="1" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="vertical-align: text-top">
<asp:contentplaceholder id="ContentPlaceHolder1"

runat="server">

</asp:contentplaceholder>
</td>
</tr>
<tr>
<td style="vertical-align: text-top">
</td>
</tr>
</table>
<br />
&nbsp;</div>


<%@ Page Language="VB"

MasterPageFile="~/MasterPage.master"

AutoEventWireup="false" CodeFile="Default.aspx.vb"

Inherits="_Default" title="Untitled Page" %>
<asp:Content ID="Content1"

ContentPlaceHolderID="ContentPlaceHolder1"

Runat="Server">
</asp:Content>
</form>
</body>
</html>





second.. i had made default.aspx Page
this is COde






<%@ Page Language="VB"

MasterPageFile="~/MasterPage.master"

AutoEventWireup="false" CodeFile="Default.aspx.vb"

Inherits="_Default" title="Untitled Page" %>
<asp:Content ID="Content1"

ContentPlaceHolderID="ContentPlaceHolder1"

Runat="Server">
</asp:Content>



after that when i show the page on internet explorer

it's view very Good
http://www.ahl-albyt.com/1.jpg



but it's very bad on firefox :(
http://www.ahl-albyt.com/2.jpg

pleeeeeeeeeeeeeeeeeease help me where is the wrong

??????

stick_branch
Aug 14th, 2009, 02:37 PM
First: http://w3schools.com/css/default.asp

Then another thing, is NEVER use tables for layout. Unless you are putting information that explicitly requires tables, floating a div is what you want to do.

jhaycutexp
Aug 14th, 2009, 08:32 PM
i suggest you learn how to write your layout in a tableless approach... tables are not meant to use for layouts...