false Posted November 23, 2009 Report Share Posted November 23, 2009 Kas ir jaizlabo css kodā lai tabulas būtu tapat kā attelā, nevis rindiņa uz lēju? Css .tabuula { color: #000; background-color: #F0F0F0; padding: 5px; width: 130px; margin-top: 1px; margin-bottom: 1px; margin-left: 0px; border: 1px solid #acbdd2; } Un mājaslapas kods <div class="tabuula"><b>..</b> 1/2<Br> <img src="/image/maps/<?php echo $rob['mape2']; ?>.png"> </div> Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted November 23, 2009 Report Share Posted November 23, 2009 (edited) Hmm, css it kā nekas nepareizs nav, jo div tagi paši par sevi iet katrs jaunā rindā, ja tu neizmanto floatus, kurus tu neizmanto. Varbūt parādīsi pārējo kodu? Edited November 23, 2009 by thesnarkie Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 23, 2009 Report Share Posted November 23, 2009 Pēc tā, kas tev tur ir dots, man sanāk, ka tā nemaz nevajadzētu būt! Tur nav kāds vēl CSS, kas iespaido to visu? Divisions elementi pēc noklusējuma rādās, ka jau thesnarkie teica, ar katru nākamo zemāk, nevis uz līnijas... :) Quote Link to comment Share on other sites More sharing options...
Evi Posted November 23, 2009 Report Share Posted November 23, 2009 vnk float:left; jaapieliek, lai buutu bloki kaa bildee vienaa liinijaa, nu un beigaas jaanokliiro floati .tabuula { float;left; } Quote Link to comment Share on other sites More sharing options...
thesnarkie Posted November 23, 2009 Report Share Posted November 23, 2009 Oops, pārlasījos. Domāju, ka viņam vajag tieši otrādi. :D Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 23, 2009 Report Share Posted November 23, 2009 Skaidrs. :D Nu jā, tad pievieno float: left;, bet apakšā division elementu, ar clear: both;. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.