Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<!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="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#main {
margin:0 auto;
width:450px;
height:450px;
}
#num1 {
position:absolute;
margin:0;
width:200px;
height:200px;
border:solid 1px blue;
}
#num2 {
position:absolute;
margin-left:250px;
margin-top:0;
width:200px;
height:200px;
border:solid 1px red;
}
#num3 {
position:absolute;
margin-left:0px;
margin-top:250px;
width:200px;
height:200px;
border:solid 1px green;
}
#num4 {
position:absolute;
margin-left:250px;
margin-top:250px;
width:200px;
height:200px;
border:solid 1px black;
}
</style>
</head>
<body>
<div id="main">
<div id="num1"></div>
<div id="num2"></div>
<div id="num3"></div>
<div id="num4"></div>
</div>
</body>
</html>
Много е бъгаво с тея абсолютни позиции...не ми въши работаemagi каза:<!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>................
ти е бъгаво........float
<div>
<div class="top"> </div>
<div class="top"> </div>
<div id="top_clr"></div>
</div>
<div>
<div class="bottom"> </div>
<div class="bottom"> </div>
<div id="bottom_clr"></div>
</div>
.top{width: 200px; height: 200px; margin: 0 0 0 5px; border: 2px solid red; float: left;}
#top_clr{clear: both;}
.bottom{width: 200px; height: 200px; margin: 5px 0 0 5px; border: 2px solid red; float: left;}
#bottom_clr{clear: both;}