Autor Zpráva
liják
Profil *
Mám tokovej problémek. Chci udělat jakoby další vrstvu, což bude asi pomocí funkce z-index. Chci, aby v okně 400x400px bylo další okno 50x50px ve vyšší vrstvě a bylo přilepené k vrchnímu okraji již zmiňovaného okna. Jak to mám udělat?
swetko
Profil
<div style="background-color: red; width: 500px; height: 500px; position: absolute; top: 20; left: 10;">

text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text</div>
<div style="position: absolute; top: 20; left: 215; background-color: orange; width: 50px; height: 50px;">
(O:

taka moja splacanina...
Bubák
Profil
Třeba takhle:

<style>
#okno {
position: relative;
width: 400px;
height: 400px;
background: #ffd
}
#okynko {
position: absolute;
top: 0;
left: 100px;
width: 50px;
height: 50px;
background: #eff
}
</style>
<div id="okno">Okno
<div id="okynko">Okýnko</div>
</div>

Koukám, že mě někdo předběhl ;-)
liják
Profil *
Díky moc za rady
Toto téma je uzamčeno. Odpověď nelze zaslat.

0