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
Pozicioniranje footera

 
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
Nemesis



Joined: 01 Oct 2005
Posts: 732

PostPosted: 09.01.2008 00:46    Post subject: Pozicioniranje footera Add user to your forum ignore list Reply with quote

Imam problem sa pozicioniranjem footera.

Code:

/*main part*/
.main {
   width: 905px;
   position: absolute;
   bottom: 174px;
   top: 176px;
   height: 100%;
   }
   
.left_border {
   height: 100%;
   float: left;
   background: url('images/border_left.png') repeat-y;
   width: 40px;
   }
   
.right_border {
   float: right;
   background: url('images/border_right.png') repeat-y;
   width: 26px;
   height: 100%;
   }
   
.content {
   float: left;
   background-color: white;
   width: 839px;
   overflow: visible; /*ništa se nije promjenilo nakon ove promjene*/
   }


Postavio sam position:absolute kako bi mi se background razvukao od kraja headera do početka footera te tako i text.

Code:

/*footer*/
.footer {
   width: 905px;
   height: 238px;
   position: absolute;
   bottom: 0px;
   }


A ovdje je footer spušten na samo dno. No kada se gornji <div> vertikalno proširi, "bottom: 0px" više nije 0px od dna stranice nego 0px od stranice prije nego što se proširila.

Evo sličice da bude jasnije:



Također, kad sam već tu, kako hackati css kod da pokazuje posebno alignment za Firefox, a posebno za Operu (i ost. browsere).
Code:
body {
   text-align: -moz-center;
   }

Ovo gore pali za Firefox

Code:
body {
   text-align: center;
   }

Ovo radi u Operi

_________________
Webastično.com | Last.fm | Twitter
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger 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