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
Centriranje layera

 
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
dag



Joined: 08 Sep 2003
Posts: 255
Location: ZG

PostPosted: 29.06.2004 20:56    Post subject: Centriranje layera Add user to your forum ignore list Reply with quote

Imam nekih desetak layera i svaki ima jednu sliku ili text u sebi.
Svi zajedno čine neku cijelinu... Kako da tu "cjelinu" centriram na stranici?
Dakle da je uvijek u centru kakva god veličina prozora bila...

Jel trebam sve to stavit u jedan layer pa njega centrirat il?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
raytech



Joined: 17 Mar 2004
Posts: 396
Location: Zagreb

PostPosted: 29.06.2004 21:00    Post subject: Add user to your forum ignore list Reply with quote

Predpostavljam, da radiš basic HTML desing, i da upravu si staviš sve u jedan kojem width staviš na 100% i staviš da ti sadržaj bude horizontlno i vetikalno u centru
Back to top
View user's profile Send private message Send e-mail MSN Messenger
dag



Joined: 08 Sep 2003
Posts: 255
Location: ZG

PostPosted: 29.06.2004 22:43    Post subject: Add user to your forum ignore list Reply with quote

Ne, radim XHTML/CSS site...
Al ne kužim kako ću te layere stavit u jedan? Confused

Jer to nije kao sa tablicama... Mislim svaki layer je za sebe, svakog posebno namještam u .css fajlu...

Može to netko malo detaljnije objasnit...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Martina



Joined: 04 Jan 2004
Posts: 78
Location: Rijeka

PostPosted: 30.06.2004 01:07    Post subject: Add user to your forum ignore list Reply with quote

Css i centriranje:
http://bluerobot.com/web/css/center1.html i http://bluerobot.com/web/css/center2.html


Martina

_________________
Prospekt d.o.o.!
Back to top
View user's profile Send private message Visit poster's website
dag



Joined: 08 Sep 2003
Posts: 255
Location: ZG

PostPosted: 30.06.2004 15:19    Post subject: Add user to your forum ignore list Reply with quote

Hvala za ovaj tutorial Martina...

Ali i dalje ne kužim kako da svih tih desetak layera ubacim u jedan!?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
zytzagoo
mi3.crew


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

PostPosted: 30.06.2004 15:28    Post subject: Add user to your forum ignore list Reply with quote

Code:

<div id="vanjski-div-u-koji-su-svi-ubaceni">
    <div class="layer1">layer1</div>
    <div class="layer2">layer2</div>
    ...
    <div class="layer10">layer10</div>
</div>


I terminologija "layer" je totalno kriva kad pricamo o <div> elementima, ali ajde, nek' vam bude Smile
HTML ne poznaje layere u tom smislu, vec apsolutno pozicionirane <div> elemente eventualno mozemo nazivati layerima, ali mislim da to nije bas mudro, jer moze stvoriti konfuziju sa nekoc davnim <layer> elementom, koji je pak netscapeove-a izmisljotina bio i ne postoji od html4 na dalje... (postojao u 3.2, i netscape ga _ne_ podrzava od verzije 6 ako se dobr sjecam), a takodjer se moze lako pobrkati i sa layerima u grafickim programima, a s njima tek nema nista zajednicko. Na kraju, cak ni html4 specifikacija ne spominje layer uopce kao termin - vjerojatno s razlogom Smile

_________________
[+]I[+]am[+]my[+]own[+]religion[+]
Back to top
View user's profile Send private message Visit poster's website Twitter profile
ivan



Joined: 08 Sep 2003
Posts: 320
Location: Zagreb

PostPosted: 30.06.2004 15:29    Post subject: Add user to your forum ignore list Reply with quote

pa doslovno ih prebaciš u jedan, staviš jedan unutar drugog
Code:
<div id="glavni">
      <div id="unutarnji">
      </div>
</div>

_________________
no ojro
Back to top
View user's profile Send private message Visit poster's website
dag



Joined: 08 Sep 2003
Posts: 255
Location: ZG

PostPosted: 30.06.2004 21:13    Post subject: Add user to your forum ignore list Reply with quote

Hvala obojici! Smile

Ma i mislio sam si da nije layer, al eto... Razz
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
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