quentin
06-01-2005, 07:39 AM
can someone tell me why this code is not working !!
<!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="application/xhtml+xml; charset=iso-8859-1"/>
<style type="text/css" media="all">@import "styles/0/style.css";</style>
<style type="text/css" media="all">@import "styles/0/grille.css";</style>
</head>
<body>
<form name="MainForm" method="post" action="Default.aspx" id="MainForm">
<div id="dView"><div class="dRow">
<span class="dLabel">U</span>
<span class="dItem">85</span>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
<div class="dRow">
<span class="dLabel">V</span>
<span class="dItem">86</span>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
<div class="dRow">
<span class="dLabel">W</span>
<span class="dItem">87</span>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
</form>
</body>
</html>
with this CSS
#dView
{
width:600px;
border:0 solid;
margin:auto;
padding:10px;
background-color:red;
}
.dRow
{
clear:both;
height:auto;
margin:2px;
padding:2px;
width:auto;
text-align:center;
vertical-align:middle;
background-color:white;
}
.dLabel
{
float:left;
width:22%;
text-align:right;
background-color:tan;
height:16px;
color:black;
}
.dItem
{
float:right;
text-indent:2em;
width:76%;
text-align:left;
background-color:green;
height:16px;
color:black;
}
thank you
<!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="application/xhtml+xml; charset=iso-8859-1"/>
<style type="text/css" media="all">@import "styles/0/style.css";</style>
<style type="text/css" media="all">@import "styles/0/grille.css";</style>
</head>
<body>
<form name="MainForm" method="post" action="Default.aspx" id="MainForm">
<div id="dView"><div class="dRow">
<span class="dLabel">U</span>
<span class="dItem">85</span>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
<div class="dRow">
<span class="dLabel">V</span>
<span class="dItem">86</span>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
<div class="dRow">
<span class="dLabel">W</span>
<span class="dItem">87</span>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
<div style="clear:both;font-size:0px;margin:0px;padding:0px;"></div>
</div>
</form>
</body>
</html>
with this CSS
#dView
{
width:600px;
border:0 solid;
margin:auto;
padding:10px;
background-color:red;
}
.dRow
{
clear:both;
height:auto;
margin:2px;
padding:2px;
width:auto;
text-align:center;
vertical-align:middle;
background-color:white;
}
.dLabel
{
float:left;
width:22%;
text-align:right;
background-color:tan;
height:16px;
color:black;
}
.dItem
{
float:right;
text-indent:2em;
width:76%;
text-align:left;
background-color:green;
height:16px;
color:black;
}
thank you