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
CSS problem - "ispadajući" divovi

 
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
slaven



Joined: 10 Aug 2004
Posts: 12
Location: Kaštel Sućurac

PostPosted: 22.11.2005 11:12    Post subject: CSS problem - "ispadajući" divovi Add user to your forum ignore list Reply with quote

evo ovako, imam jedan div koji je držač i dva koja su unutra jedan lijevi i desni. CSS izgleda ovako:

#sredinaHolder{
width:790px;
margin:0px auto;

}
#left{
width:545px;
float:left;
padding:10px;

}
#right{
width:200px;
float:left;
padding:10px;
}

sad u IE-u je sve OK, dok u Firefoxu izgleda kao da je ovaj veliki iznad ova dva, tj oni ispadaju iz njega, a istovremeno stoje na sredini stranice kao da ih on drži. problem je u tome što u velikom imama tajl koji se tada ne pokazuje. Unaprijed hvala na pomoći

_________________
:::::::::::::::::::::::::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
keye



Joined: 24 Nov 2003
Posts: 2465
Location: Paris - France

PostPosted: 22.11.2005 11:16    Post subject: Add user to your forum ignore list Reply with quote

a zasto ti "right" floata lijevo?

_________________
Google is a blind person
Back to top
View user's profile Send private message Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 22.11.2005 11:16    Post subject: Add user to your forum ignore list Reply with quote

Pretpostavljam da ti treba neki clear. U elementu koji dolazi nakon "right", dodaš clear: both;

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



Joined: 10 Aug 2004
Posts: 12
Location: Kaštel Sućurac

PostPosted: 23.11.2005 09:08    Post subject: Add user to your forum ignore list Reply with quote

Nije, već sam probao sa svim mogućim clearovima i floatovima, izgleda da je broblem u tome što ovaj držač nije float, nemam pojma zašto

_________________
:::::::::::::::::::::::::::
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: 23.11.2005 09:51    Post subject: Add user to your forum ignore list Reply with quote

Daj screan shoot onog što želiš napravit pa ti onda možda mogu pomoć, možda si totalno krenuo u krivom smjeru.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 23.11.2005 11:03    Post subject: Add user to your forum ignore list Reply with quote

Ili još bolje, 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
pixelpusher



Joined: 12 Feb 2004
Posts: 123
Location: Rijeka

PostPosted: 23.11.2005 11:19    Post subject: Add user to your forum ignore list Reply with quote

.. i nemoj kombinirat width i padding za isti element jer se neces bas zabavit.

_________________
a di da idem kad nemam di ić?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 23.11.2005 17:40    Post subject: Add user to your forum ignore list Reply with quote

pixelpusher wrote:
.. i nemoj kombinirat width i padding za isti element jer se neces bas zabavit.
Ali u tome i jest cijela zabava : )

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 23.11.2005 19:58    Post subject: Add user to your forum ignore list Reply with quote

Smile pa da, manje je zabavno nestati div-ove pa marginama sve paddati
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hrvoje33



Joined: 09 Sep 2005
Posts: 10

PostPosted: 23.11.2005 21:37    Post subject: Add user to your forum ignore list Reply with quote

Quote:
sad u IE-u je sve OK, dok u Firefoxu izgleda kao da je ovaj veliki iznad ova dva, tj oni ispadaju iz njega, a istovremeno stoje na sredini stranice kao da ih on drži. problem je u tome što u velikom imama tajl koji se tada ne pokazuje.

Problem je što IE ne slijedi standard (ko da to nisi znao) i automatski parent element obuhvati floatane elemente u njemu, dok je po standardu floatani element izuzet iz parent elementa. Jednostavno bi rješenje bilo da se i div#sredinaHolder floata, ali tada ne bi bio centriran.
Vjerojatno u kodu stranice imaš neki element koji dolazi poslije div#right te onda na taj elemenat dodaj clear:both; i to bi trebalo biti to.
Back to top
View user's profile Send private message
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