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
visina div-a u IE-u..

 
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
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 04.04.2006 20:22    Post subject: visina div-a u IE-u.. Add user to your forum ignore list Reply with quote

Znači kad definiram neki manji height za div u Firefoxu mi prikaže točno tu visinu koja je definirana, a u IE-u mi stavi veću.

Konkretan primjer:

<div style="height:7px"> </div>

U IE mi ga prikaze kao div visine 13px, dok je u FF sve ok.

Doc type je xhtml strict.

Fala
Back to top
View user's profile Send private message Send e-mail Visit poster's website
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 04.04.2006 20:38    Post subject: Add user to your forum ignore list Reply with quote

line-height ili font-size je u pitanju... ili oboje... ie "rezervira" to mjesto u iznosu tih vrijednosti...

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 04.04.2006 20:49    Post subject: Add user to your forum ignore list Reply with quote

to je problem ko IE i kod manjih dimenzija visine.

problem ce ti rijesiti da ubacis komentar u taj div, jer ti je taj div prazan trenutno, onda ce ti raditi.

znaci

.visina { height: 7px; }

<div class="visina"><!--IE--></div

i radi Smile

ajd
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 04.04.2006 21:02    Post subject: Add user to your forum ignore list Reply with quote

Evo rade oba prijedloga..

Sad neznam kaj je bolje riješenje staviti font-size na 0px ili ubaciti komentar... slatke muke Very Happy

Hvala obojici Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 04.04.2006 21:10    Post subject: Add user to your forum ignore list Reply with quote

ma ja sam se tjedan dana s tim prcao, i onda kada sam nasao ovo, ne da mi se mijenjati vise
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
orcrist



Joined: 01 Apr 2006
Posts: 15

PostPosted: 05.04.2006 04:57    Post subject: Add user to your forum ignore list Reply with quote

stavi obadvoje, lol, baš zbog razlika u browserima. i još ga povučeš gore za pixel Wink.(ovo dolje bi navodno trebalo radit u svima, na svakom os) :p
možeš stavit i samo space, ali kao &nbsp;
iskopao sam primjer za "clearer" div kad ti treba da počisti floatse ali ne želiš razmak.
Code:
 .clear{clear:both; line-height:0px;font-size:0;margin-top:-1px;}


Code:
<div class="clear">&nbsp;</div>
Back to top
View user's profile Send private message Send e-mail
pixelpusher



Joined: 12 Feb 2004
Posts: 123
Location: Rijeka

PostPosted: 05.04.2006 10:28    Post subject: Add user to your forum ignore list Reply with quote

Ja uvijek stavim line-height.
dakle, height:7px; line-height:7px;
Nikakav dodatan markup nije potreban.

_________________
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
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