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.
:idea:kWo каза:с css мога, но само по височина да го определям а как мога и по ширина :?
.width {
width: 150px;
}
css каза:#icon { background: url('icon_redface.gif') no-repeat; background-position: 2px -6px; width: 40px; height: 21px;}
html каза:<div id="icon"></div>
adrian каза:css каза:#icon { background: url('icon_redface.gif') no-repeat; background-position: 2px -6px; width: 40px; height: 21px;}
html каза:<div id="icon"></div>
Настройваш си width и height, а 2px и -6px са ти съответно от кой пиксел по широчина и височина да започне показването на картинката. Пробвай различни стойности и ще видиш как действа.
Това съм ти го сложил примерно, защото нямам време да го нагласям перфектно![]()
<style type="text/css">
#icon { background: url('http://web-tourist.net/forum/templates/Maxmedia/images/php.png') no-repeat; background-position: -85px -27px; width: 180px; height: 30px;}
#content { width: 180px; margin: 0px auto; }
</style>
<div id="content">
<div id="icon"></div>
</div>