Hi again, i tried this day to play with css, so extract a style to put simple html code
test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
<title>Test div alignment</title>
<link rel="stylesheet" type="text/css" href="test.css" />
<link rel="stylesheet" type="text/css" href="layout_ltr.css" />
</head>
<body>
</body>
<div class="postleft">
<dl>
<dt><strong>postleft</strong></dt>
<dd><strong>list</dd>
</dl>
</div>
<div class="postright">
<h3>postheader</h3>
<div class="postmsg">
<p>
postmsg<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
This is a body message<br />
</p>
</div>
</div>
<div class="clearer"></div>
<div class="postfootleft"><p>postfootleft</p></div>
<div class="postfootright"><div>postfootright</div></div>
</div>
</html>
test.css
.clearer {
HEIGHT: 0;
WIDTH: 0;
LINE-HEIGHT: 0;
FONT-SIZE: 0;
OVERFLOW: hidden;
CLEAR: both;
}
DIV.postright H3 {
POSITION: absolute;
DISPLAY: block;
OVERFLOW: hidden;
WIDTH: 1em;
LEFT: -999em
}
DIV.postmsg {
OVERFLOW: hidden;
background-color: #FFF5E3;
}
DIV.postleft {
background-color: #F2F5FF;
}
DIV.postright {
background-color: #FFFFD4;
}
DIV.postfootright{
background-color: #FFD7D7;
}
DIV.postfootleft {
background-color: #ECECEC;
}
DIV.postmsg {
WIDTH:100%
}
DIV.postmsg P {PADDING: 0}
DIV.postleft DL, DIV.postright {PADDING: 6px}
layout_ltr.css
BODY {
direction: ltr;
}
DIV.postfootright {
TEXT-ALIGN: right;
}
DIV.postleft, DIV.postfootleft {
FLOAT:left;
WIDTH: 18em;
OVERFLOW: hidden;
}
DIV.postright, DIV.postfootright {
BORDER-LEFT-color: #A2FFBA;
BORDER-LEFT-WIDTH: 18em;
BORDER-LEFT-STYLE: solid;
}
layout_rtl.css
BODY {
direction: rtl;
}
DIV.postfootright {
TEXT-ALIGN: left;
}
DIV.postleft, DIV.postfootleft {
FLOAT:right;
WIDTH: 18em;
OVERFLOW: hidden;
}
DIV.postright, DIV.postfootright {
BORDER-right-color: #A2FFBA;
BORDER-right-WIDTH: 18em;
BORDER-right-STYLE: solid;
}
Test it in IE, FF, Opera look good
now change this line in test.html
<link rel="stylesheet" type="text/css" href="layout_ltr.css" />
to make layout_ltr replaced with layout_rtl
and test in the three browser.
Ok i caused to you a headache forgive me Paul
If your people come crazy, you will not need to your mind any more.