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.
<html>
<head>
<title>Div със заоблени ъгли</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<style type="text/css">
#div {
width: 385px;
height: auto;
margin-left: 50px;
margin-top: 50px;
}
#div-top {
background: url(top.png);
background-repeat: no-repeat;
width: 385px;
height: 13px;
}
#div-middle {
background: url(middle.png);
background-repeat: repeat-y;
width: 385px;
height: auto;
}
#div-bottom {
background: url(bottom.png);
background-repeat: no-repeat;
width: 385px;
height: 16px;
}
#div-text {
padding-left: 10px;
padding-right: 10px;
}
</style>
</head>
<body>
<div id="div">
<div id="div-top"></div>
<div id="div-middle">
<div id="div-text">Тук е текста, който искаш да се съдържа в самия див. Можеш да напишеш абсолютно всичко, което ти дойде на ума и може да сложиш
абсолютно всичко :D</div>
</div>
<div id="div-bottom"></div>
</div>
</body>
</html>
Мисля че е добре да добавиш и още 1-2 неща като например:Dizasterr каза:Слагаш му в стила:
-moz-border-radius ти върши цялата работа за заоблянето.Код:#div { width: ?px; height ?px; backgorund: #000; -moz-border-radius: 3px; }
Пикселите можеш да си ги настроиш колкото искаш.