Adaugare text pe mijloc intre doua chenare
Scris: Vin Feb 10, 2012
Buna seara! Am o problema cu pozitionarea elementelor html in pagina web. As vrea sa scriu un text intre cele doua chenare, mai exact in mijlocul paginii.
Fisierul HTML:
Extensia css:
Fisierul HTML:
Cod: Selectaţi tot
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<title>Cartoons</title>
</head>
<body bgcolor="black" vlink="black" link="black" alink="black">
<form action="" method="post" class="float1">
<input type="search" name="srch" size="25" value="search" />
<input type="button" value="search"/>
</form>
<div id="id3">
<table bordercolor="#ff8c00" align="right">
<tr>
<th><h2>Handmade </h2></th>
<th><img src="http://images.cooltext.com/2476771.png" width="124" height="42" alt="Home" /><img src="http://images.cooltext.com/2476774.png" width="196" height="42" alt="Cartoons" /><img src="http://images.cooltext.com/2476775.png" width="164" height="42" alt="Contact" /></th>
<th><h2> Made in Adobe Illustrator</h2></th>
</tr>
</table><br>
<br>
<br>
<div id="chenar1" class="float1"></div>
<div id="chenar2"><img src="mitro.jpg" hight="200" width="250"/></div>
</div>
</body>
</html>
Cod: Selectaţi tot
#id3 {
background-color:#ff8c00;
width:1000px;
height:1000px;
border:10px solid black;
}
#chenar1 {
background-color:#ff8c00;
width:250px;
height:940px;
border-left:3px dotted black;
border-top:3px dotted black;
}
#chenar2 {
background-color:#ff8c00;
width:250px;
height:940px;
border-top:3px dotted black;
border-right:3px dotted black;
}