01-08-2007, 15:08
|
|
|
חבר מתאריך: 17.05.05
הודעות: 7,321
|
|
נכון..
בדקתי את זה, ומה שצריך לעשות זה לדוגמא:
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="he" />
<style type='text/css'>
<!--
html, body
{
text-align:left;
direction:ltr;
margin: auto;
width: 100%;
}
*
{
background-color:transparent;
color:black;
margin:0;
padding:0;
font: normal normal normal 13px/normal arial;
position: static;
visibility: visible;
}
#MyDiv
{
position: absolute;
left: 40%;
width: 20%;
background-color: green;
border: 1px solid red;
color: white;
}
-->
</style>
</head>
<body>
<div id='MyDiv'>Hello World!</div>
</body>
</html>
ב-CSS, תשים לב בעיקר ל-MyDiv.
|