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
Pomahnitali div

 
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
andrej`
Guest





PostPosted: 21.06.2005 00:38    Post subject: Pomahnitali div Reply with quote

Napravim obicni div jelte u stilu ovog dole:

<div class="bla">UNUTARNJI TEKST</div>

.bla {background-color:#ffffff;padding:5px;}


i sad, šta se desi, kad stavim padding, u FF-u mi produži taj div za tocno pixela koliki je padding, a kontejner ( div u kojemu se nalazi ovaj gore ) ima postavljene dimenzije tocno.

U čem je caka?
Back to top
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 21.06.2005 00:51    Post subject: Re: Pomahnitali div Add user to your forum ignore list Reply with quote

andrej` wrote:
U čem je caka?


U tome da nam nisi pastirao kompletan kôd.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
andrej`
Guest





PostPosted: 21.06.2005 00:57    Post subject: Reply with quote

Ovo je dio htmla

<div class="sadrzajimid"></div>

Ovo je css za isti:

.sadrzajimid {
width:360px;
background-image: url(images/pozadina_sadrzaji_mid.gif);
height: auto;
padding: 5px;
text-align: justify;
}

Problem:
Umjesto da mi izbaci div dug 360px, on izbaci div dug 365 pixela...ono OMG,WTF? U cem je problem??
Back to top
Chombila



Joined: 22 Dec 2003
Posts: 248

PostPosted: 21.06.2005 01:32    Post subject: Add user to your forum ignore list Reply with quote

Quote:
-> padding: 5px;
Back to top
View user's profile Send private message
abeja



Joined: 22 Sep 2003
Posts: 803
Location: Rijeka

PostPosted: 21.06.2005 09:10    Post subject: Add user to your forum ignore list Reply with quote

http://www.mi3dot.org/forum/viewtopic.php?p=59529&highlight=#59529

zytzagoo kaze :
Definranjem width-a, definira se širina samo content dijela, a padding nije content dio, jer u njega ne može doći sadržaj. Pa se element širi za taj prostor padding-a.
Back to top
View user's profile Send private message Visit poster's website
andrej`
Guest





PostPosted: 21.06.2005 13:11    Post subject: Reply with quote

Tnx...skonto sam, css newbie sam pa ono Wink pokusavam...

Znaci trebam uracunat padding u ukupan width... jea Wink
Back to top
blackduke
mi3.crew


Joined: 08 Sep 2003
Posts: 2681
Location: Zagreb

PostPosted: 21.06.2005 13:55    Post subject: Add user to your forum ignore list Reply with quote

Back to top
View user's profile Send private message Visit poster's website Twitter profile
abeja



Joined: 22 Sep 2003
Posts: 803
Location: Rijeka

PostPosted: 21.06.2005 15:22    Post subject: Add user to your forum ignore list Reply with quote

blackduke wrote:


hehe Laughing ..trebalo mi je jako dugo da skuzim..
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