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
html

 
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
MokA



Joined: 10 Jun 2006
Posts: 15

PostPosted: 22.09.2006 17:35    Post subject: html Add user to your forum ignore list Reply with quote

ne znam kud ovu temu stavit, al ljudi molila bi ako neko zna kako u htmlu centrirat objekt po vertikalnoj osi da pomaga... :/

Hvala!


Lp
Back to top
View user's profile Send private message Send e-mail
ON AIR
Guest





PostPosted: 22.09.2006 19:01    Post subject: Reply with quote

izvoli, iako to vec ima negdje na forumu ..
http://www.wpdfd.com/editorial/thebox/deadcentre4.html
jedna od mnogobrojnih tehnika, ali ipak u mnogo cemu zavisi od toga sta zapravo zelis postici ..[/code]
Back to top
mfloyd



Joined: 25 Jan 2006
Posts: 57
Location: Zagreb <-> Orahovica

PostPosted: 23.09.2006 20:02    Post subject: Add user to your forum ignore list Reply with quote

Ako imaš fiksnu širinu i visinu bloka, najjednostavnije je pomoću negativnih margina. Reimo za blok 800x600px: prvo ga postaviš 50% od vrha i ljevog ruba prozora, a zatim mu dodjeliš negativne margine od pola iznosa širine i visine.

CSS:
Code:
div#glavni-okvir {
   position:absolute;
   top:50%;
   left:50%;
   width:800px;
   height:600px;
   margin-left:-400px;
   margin-top:-300px;
   background-color:#eee;
   color:#000;
   border:1px solid #000;
}


HTML:
Code:
<div id="glavni-okvir">sadržaj</div>


Jedini problem je što negativne margine rade probleme na IE/Mac
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