eM^ Posted February 13, 2007 Report Share Posted February 13, 2007 (edited) Man ir caur CSS uzlikti linki, kā block ar izm?#8220;iem 120px x 20px, bet iekš FF šie 20px tiek pielīdzināti kā 23px iekš IE. Katrā ziņā ar 20px man šīs pogas iekš FF izskatās nedaudz pa augstu un tāp?#8220;c bilde tām fonā atkārtojās, bet iekš IE viss normāli... jau kadu 1h mocos, bet nezinu ka lai izlabo šo kļūdu. varbūt jūs zināsiet atbildi? Pogu CSS: a.nav { color:#FFFFFF; background: url(images/nav/nav_back.gif); width: 100; height: 20; padding-top: 3px; display: block; } a.nav:hover { color:#000000; background: url(images/nav/nav_over.gif); } a.nav:visited { color:#FFFFFF; } a.nav:visited:hover { color:#000000; } EDIT: ehh pats itkaa atradu kluudu, bet tomēr bez ta ari nevar: man ir padding-top: 3px; lai IE teksts uz linka nebūtu augsaa, bet ja nav sii padding tad FF ar bildeem vis nor, bet ka lai uzliek ta lai man teksts būtu pa vidu? Edited February 13, 2007 by eM^ Link to comment Share on other sites More sharing options...
andrisp Posted February 13, 2007 Report Share Posted February 13, 2007 Tās ir box-model atšķirības. http://www.google.lv/search?hl=lv&q=bo...l+hacks+OR+hack Vēl labāk, ja markapu rakstīsi ar norādītu doctype, tad vismaz uz ie5.5/6 un ff, un operas box modelis būs viens un tas pats. Link to comment Share on other sites More sharing options...
nemec Posted February 13, 2007 Report Share Posted February 13, 2007 <span><a> link </a></span> span { display: block; padding-top: 3px; } Link to comment Share on other sites More sharing options...
eM^ Posted February 13, 2007 Author Report Share Posted February 13, 2007 andrisp isti nesapartu ko tu gribeji ar to pateikt :P Link to comment Share on other sites More sharing options...
andrisp Posted February 13, 2007 Report Share Posted February 13, 2007 Pagūglē, gan sapratīsi. Link to comment Share on other sites More sharing options...
eM^ Posted February 13, 2007 Author Report Share Posted February 13, 2007 (edited) ,BET tiko paskatijos citā lapā, ko taisiju(v?#8220;l taisu) un tur ar šo probl?#8220;mu nav, javienīgi tur nav teksta, bet izm?#8220;ri ir gan uz FF gan uz IE vienaadi... atvainojos par spamu, bet ja intresee tad: http://www.beisbolabaroni.lv/ Edited February 13, 2007 by eM^ Link to comment Share on other sites More sharing options...
Ā§°ģčļ€’’ Posted February 13, 2007 Report Share Posted February 13, 2007 http://php.lv/f/index.php?showtopic=6631 #4 posts. ja ir problēmas ir IE un FF vai citiem pārlūkiem tad ir jātaisa atsevišķs stils. Link to comment Share on other sites More sharing options...
andrisp Posted February 13, 2007 Report Share Posted February 13, 2007 Nu šajā gadijumā nav obligāti. Link to comment Share on other sites More sharing options...
eM^ Posted February 13, 2007 Author Report Share Posted February 13, 2007 sapratu tikai vienu, kad viss galigi sajucis, bet tad jus varat man pateikt ideju, kā lai dabū tekstu nevis augsā, bet pa vidu iekš linka : Lapa šeit tagadējais CSS: a.nav { background-image:url(images/nav/nav_back.gif); color:#FFFFFF; width: 100px; height: 20px; display: block; } Link to comment Share on other sites More sharing options...
nemec Posted February 13, 2007 Report Share Posted February 13, 2007 (edited) <a href='asdasd' class='nav'><font style='vertical-align: bottom;'>Jaunumi</font></a> aizvieto ar <a href='asdasd' class='nav'><span>Jaunumi</span></a> un tam span pieraksti span { display: block; padding-top: 3px; } vai tad shis nestraadaa? vai arii <a href='asdasd' class='nav'>Jaunumi</a> un pieraksti klaat a.nav { line-hieght: 20px; } Edited February 13, 2007 by nemec Link to comment Share on other sites More sharing options...
eM^ Posted February 13, 2007 Author Report Share Posted February 13, 2007 ehh stradaa :) paldies.. ja kautkas atla bus ak nevajag tad prasisu Link to comment Share on other sites More sharing options...
andrisp Posted February 13, 2007 Report Share Posted February 13, 2007 ja kautkas atla bus ak nevajag tad prasisu Ja taisies prasīt atkal, tad vismaz neliec mums galvu lauzīt, lai tikai saprastu, ko tu gribi pateikt. Cieni taču citus arī nedaudz, kam būs jālasa tavi teksti. Link to comment Share on other sites More sharing options...
eM^ Posted February 13, 2007 Author Report Share Posted February 13, 2007 sry labošos. Link to comment Share on other sites More sharing options...
Recommended Posts