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
js drop down meni problem

 
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
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 16.04.2004 17:46    Post subject: js drop down meni problem Add user to your forum ignore list Reply with quote

Napravio sam neki "divlji" js meni, da mi prikazuje layere, koji su navigacija, i problem se javlja kada resajzam browser.. onda mi se layeri "razbježe" po ekranu...

Help Smile

_________________
http://www.hocusvojweb.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 16.04.2004 18:20    Post subject: Add user to your forum ignore list Reply with quote

problem positioninga layera o cemu ja bas nemam pojma (no zyt bi mogao pomoc).
ukoliko das kod koji pravi frku, lakse ce ti se pomoc :>
Back to top
View user's profile Send private message
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 16.04.2004 18:32    Post subject: Add user to your forum ignore list Reply with quote

evo:
Code:

<div onmouseover="prikazi('1')" onmouseout="sakrij('1')" id="1" style="Background: #cecece; border: 1px solid #000000; position:absolute; width:75px; height:115px; z-index:1; left: 200px; top: 161px; visibility: hidden;">
Sadrzaj layera
</div>

_________________
http://www.hocusvojweb.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zytzagoo
mi3.crew


Joined: 25 Aug 2003
Posts: 1842
Location: Zagreb, Hrvatska

PostPosted: 19.04.2004 12:01    Post subject: Add user to your forum ignore list Reply with quote

Apsolutni positioning krece ili od ruba browsera (odnosno viewporta) ili od prvog roditeljskog apsolutno pozicioniranog elementa (ili fiksno pozicioniranog, a u nekim browserima i od relativno pozicioniranih elemenata). Vrlo skakljiva stvar, preporucam citanje sljedeceg:
http://www.brainjar.com/css/positioning/default.asp
http://www.westciv.com/style_master/academy/positioning_tutorial/ - (ovdje procitaj i o tome da layer element u html-u zapravo ne postoji, vec se koristi kao termin za neki css-om pozicionirani element, jer to po w3c specsima ne mora nuzno biti div element)

Mali izvadak sa linka: http://www.wpdfd.com/editorial/wpd1003.htm#feature
Quote:
Some pages use what I call 'house of cards' relative positioning where each box is positioned relative to another box in sequence. In theory, this should be perfectly okay. In practice, it's really asking for trouble. Internet Explorer has a different idea of what 'relative' means from all the other browsers. It also misinterprets the concept of 'padding' - as laid down in the official W3C specifications for the box model.


Dalje, mozes baciti pogled i ovamo: http://www.mako4css.com/TPos.htm

Ima jos tona linkova po netu...

Ako ti je site left align-an, onda ne bi trebao imati problema, ako ce biti centriran, onda preporucam da cijeli site stoji u nekom containeru koji je sam po sebi pozicioniran nekako, a <div> elemente koji predstavljaju menije onda pozicioniraj relativno u odnosu na taj vanjski container ako mozes... Ili apsolutno, ali unutar tog vanjskog containera, kako bi uvijek bili pozicionirani u odnosu na taj vanjski container, a ne na viewport, odnosno velicinu browser prozora...

Huh, svasta sam ja tu napisao sad...

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
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