Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
div i z-index

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
JBR



Joined: 07 Sep 2003
Posts: 44
Location: zlovenie

PostPosted: 06.12.2006 10:42    Post subject: div i z-index Add user to your forum ignore list Reply with quote

'bar dan. Imam jedan problem sa pozicioniranjem diva (ne onih golemih ;P) kad je u ccs i z-index:1. I totally forgot kako se radi sa div-ima, opet sam pročitao par tuts i to, ali nemam ideje više...Evo slikice šta hoču da dobijem:


To sam zamislio da uradim tako, da centriram #header/news sa margin:0 auto, position:relative, a na one #info dodam z-index:1 i centriram na isti način ali top/left:2XXpx.

Ali ako :relative, onda #header/news polude, ako absolute onda ne znam kako da centriram/pozicioniram sve skupa ...
Ako stavim u kodu #info ispod #news, onda su hidden....

Kako to riješim? Ako ima možda netko neki link, hint ili sedam, dijelić kode...
Puno hvala.

_________________
Ni vsaka shkoljka shkoljka...
Back to top
View user's profile Send private message Send e-mail
strija



Joined: 14 Sep 2003
Posts: 473
Location: Čakovec

PostPosted: 06.12.2006 11:25    Post subject: Add user to your forum ignore list Reply with quote

Ovako na brzinu:
Code:
#header { margin: 0 auto; width: 500px; height: 200px; background-color: #06f; }
   #news { margin: 10px auto; width: 500px; height: 500px; background-color: #06f; position: relative; }
      #info { position: absolute; width: 200px; height: 200px; top: 20px; right: -120px; background-color: #f03; }
      #info2 { position: absolute; width: 200px; height: 200px; top: 240px; right: -120px; background-color: #f03; }

Code:
<div id="header"></div>
<div id="news">
   <div id="info"></div>
   <div id="info2"></div>
</div>

_________________
We can exist in ambiguity, but it means the deepest loneliness. | creolab.hr | thefarewellreason.com
Back to top
View user's profile Send private message Visit poster's website
JBR



Joined: 07 Sep 2003
Posts: 44
Location: zlovenie

PostPosted: 06.12.2006 18:21    Post subject: Add user to your forum ignore list Reply with quote

oo kužim, super simple! Very Happy puno hvala!

_________________
Ni vsaka shkoljka shkoljka...
Back to top
View user's profile Send private message Send e-mail
strija



Joined: 14 Sep 2003
Posts: 473
Location: Čakovec

PostPosted: 07.12.2006 13:09    Post subject: Add user to your forum ignore list Reply with quote

JBR wrote:
oo kužim, super simple! Very Happy puno hvala!

NP

_________________
We can exist in ambiguity, but it means the deepest loneliness. | creolab.hr | thefarewellreason.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group