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
Malo pitanjce oko pozicioniranja...

 
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
Alexx



Joined: 10 Oct 2005
Posts: 123
Location: Zagreb

PostPosted: 02.12.2005 01:19    Post subject: Malo pitanjce oko pozicioniranja... Add user to your forum ignore list Reply with quote

Kako mogu u Dreamweaveru napravit overlay dva elementa (2 slike npr.) u istom layeru, dakle da se preklapaju, a ne da se 'guraju'? Very Happy

--x
Back to top
View user's profile Send private message Send e-mail AIM Address
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 02.12.2005 02:30    Post subject: Add user to your forum ignore list Reply with quote

ako sam dobro shvatila sto zelis, stavi ih u neki div (class="nekidiv") i onda css-om apsolutno pozicioniraj u odnosu na taj div. to je najjednostavniji nacin (iako se moze bolje s marginama, no za pocetak probaj ovo)

Code:
.nekidiv {position: relative;}
.slika1 {position: absolute; top: 0; left: 0;}
.slika2 {position: absolute; top: 100px; left: 100px;}

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
F@NTOM



Joined: 11 Sep 2003
Posts: 592
Location: Dubrovnik

PostPosted: 02.12.2005 08:51    Post subject: Add user to your forum ignore list Reply with quote

position:absolute; i z-index.?

_________________
These pretzels are making me thirsty!
Back to top
View user's profile Send private message
Alexx



Joined: 10 Oct 2005
Posts: 123
Location: Zagreb

PostPosted: 04.12.2005 14:06    Post subject: Add user to your forum ignore list Reply with quote

Ok. Jos jedno pitanjce... Da li je moguće linkati layere da ako se pomakne jedan da se automatski pomakne i drugi... Da pojasnim na konkretnom slucaju... Dakle imam jedan glavni layer koji je 25%udaljen od vrha. I sad hocu tocno iznad njega zalijepiti jos jedan layer koji ce sadrzavati izbornik. I sve je to divno i krasno dok netko u browseru ne resize-a prozor ili dok radi na monitoru drugacije rezolucije kad ovaj layer sa izbornikom ili uleti u glavni layer, ili pobjegne od njega. Moje pitanje je dakle da li mogu pozicionirati ovaj drugi layer da bude recimo stalno 1px udaljen od ovog prvog...?

Hvala.

--x
Back to top
View user's profile Send private message Send e-mail AIM Address
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 04.12.2005 15:27    Post subject: Add user to your forum ignore list Reply with quote

Neka izbornik layer bude layer unutar glavnog. Glavni neka ima position:relative. Izbornik neka ima position:absolute; i top:-50px;

Puknuo sam 50px bez veze, ti odredi koliko ti stvarno treba, znači neka ta vrijednost bude visina izbornika.

Druga solucija je da jednostavno koristiš normal flow, tj. da glavni layer dolazi u contentu nakon izbornika i da jedan od njih ima marginu 1px.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alexx



Joined: 10 Oct 2005
Posts: 123
Location: Zagreb

PostPosted: 16.12.2005 21:17    Post subject: Add user to your forum ignore list Reply with quote

Zadnje pitanjce... Kako jedan layer centriram vertikalno i horizontalno u prostoru?

--x
Back to top
View user's profile Send private message Send e-mail AIM Address
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 17.12.2005 17:28    Post subject: Add user to your forum ignore list Reply with quote

Vječno pitanje Laughing googlaj, naći ćeš za čas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 17.12.2005 17:36    Post subject: Add user to your forum ignore list Reply with quote

Alexx wrote:
Zadnje pitanjce... Kako jedan layer centriram vertikalno i horizontalno u prostoru?

erm... slika na monitoru ima 2 dimenzije, tesko da ces nesto centrirat u "prostoru" Smile

(ok, znam, analiziram.. Laughing )

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 17.12.2005 20:03    Post subject: Add user to your forum ignore list Reply with quote

nel`chee wrote:
(ok, znam, analiziram.. Laughing )

ja bi jedan drugi glagol iskoristio Smile

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
Alexx



Joined: 10 Oct 2005
Posts: 123
Location: Zagreb

PostPosted: 17.12.2005 22:04    Post subject: Add user to your forum ignore list Reply with quote

nel`chee wrote:
Alexx wrote:
Zadnje pitanjce... Kako jedan layer centriram vertikalno i horizontalno u prostoru?

erm... slika na monitoru ima 2 dimenzije, tesko da ces nesto centrirat u "prostoru" Smile

(ok, znam, analiziram.. Laughing )


Zato sam rekao vertikalno i horizontalno... mozda je bolji izraz u ravnini... ali ugl mislim da se kuzi sta sam htio rec Wink

--x
Back to top
View user's profile Send private message Send e-mail AIM Address
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