anonīms Posted February 22, 2008 Report Posted February 22, 2008 Kā to varētu labot? IE: FF: DIV.box-side UL.menu LI { background: #D7D7D7 url(http://gaming.wc3.lv/tmp/img/side-bg.gif) no-repeat top left; border-bottom: 1px solid #A4A4A6; border-left: 1px solid #A4A4A6; border-top: 1px solid #FAFAFA; font-family: Tahoma, Verdana; font-size: 11px; font-weight: normal; height: 16px; list-style: none; padding: 2px 3px 1px 3px; vertical-align: top; width: 193px; }
Delfins Posted February 22, 2008 Report Posted February 22, 2008 (edited) Cik atceros ar marginiem... FF un IE nevienādi attēlojās defaultā... vienam jāuzliek padding, otram margin ;) //tas ir iekš viena CSS-ā bez jebkādiem IF-iem// Edited February 22, 2008 by Delfins
anonīms Posted February 22, 2008 Author Report Posted February 22, 2008 (edited) mēģināju margin - neiet ;[ izmanto css kodu vietā kur ir padding uz padding: 0px; iekšs IE nekas nemainas, bet FF atkal kļūst līks. Edited February 22, 2008 by anonīms
Delfins Posted February 22, 2008 Report Posted February 22, 2008 Nu nestāsti.. citādi miljardiem saitu būtu problēmas... Pasaki kā tev vajag (no taviem skrīnšotiem).. tad uztaisīs
bubu Posted February 23, 2008 Report Posted February 23, 2008 Parādi HTML struktūru tam listam. Un tā elementiem (div, ul, li) pielietotos stilus.
anonīms Posted February 23, 2008 Author Report Posted February 23, 2008 #5, man vajag, lai IE viss izskatās tāpat kā FF bildē. bubu, <div class="box-side"> <ul class='menu'> <li>yoyo</li> </ul> </div>
Delfins Posted February 23, 2008 Report Posted February 23, 2008 (edited) Doh!... LI -> margin-left: -20px; padding: 2px; http://www.breakingpar.com/bkp/home.nsf/0/...7256ED000626A9D Edited February 23, 2008 by Delfins
anonīms Posted February 23, 2008 Author Report Posted February 23, 2008 Izveidoju nedaudz savādāk ar if <!--[if lte IE 7]> <style type="text/css">@import ".../css/ie7.css";</style> <![endif]--> un tur tam kodam uzliko to papildus marging. Paldies, tagad viss kārtībā.
andrisp Posted February 23, 2008 Report Posted February 23, 2008 (edited) Man gan liekas, ka juus te uz nepareizo pusi skataties. Visticamaak, ka tev ul elementam ir defaultais paarluuka paddings vai margins. Pameegjinaaji shitaa ? ul.blabla { margin: 0; padding: 0; } ul.blabla li { margin: 0; paddign: 2px; } Edited February 23, 2008 by andrisp
Recommended Posts