mahdioo12194
سه شنبه 11 تیر 1392, 13:29 عصر
سلام شرمنده یه سوال مبتدی داشتم من این div رو که قرمز رنگه چطور بیارم بالا به عنوان تیتر چرا وسطه؟!
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %>
<!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></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
height: 625px;
width: 530px;
}
.style2
{}
.style3
{
height: 625px;
width: 253px;
}
.style5
{
height: 625px;
width: 254px;
}
.style6
{
height: 171px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 100%; height: 898px;">
<tr>
<td class="style6" colspan="3"
style="background-image: url('/Mobile/Images/Video.png')">
</td>
</tr>
<tr>
<td class="style3" bgcolor="#FFFFCC">
</td>
<td class="style1" valign="top">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
<td class="style5" bgcolor="#FFFFCC" >
<div style="background-color: #FF0000">
</div>
</td>
</tr>
<tr>
<td bgcolor="Black" class="style2" colspan="3">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %>
<!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></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
height: 625px;
width: 530px;
}
.style2
{}
.style3
{
height: 625px;
width: 253px;
}
.style5
{
height: 625px;
width: 254px;
}
.style6
{
height: 171px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 100%; height: 898px;">
<tr>
<td class="style6" colspan="3"
style="background-image: url('/Mobile/Images/Video.png')">
</td>
</tr>
<tr>
<td class="style3" bgcolor="#FFFFCC">
</td>
<td class="style1" valign="top">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
<td class="style5" bgcolor="#FFFFCC" >
<div style="background-color: #FF0000">
</div>
</td>
</tr>
<tr>
<td bgcolor="Black" class="style2" colspan="3">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>