nemec Posted October 24, 2012 Report Posted October 24, 2012 Kā panākt tādu pašu efektu kā tabulā ar <dl> tagu: http://jsfiddle.net/kXgfy/1/ Quote
rATRIJS Posted October 24, 2012 Report Posted October 24, 2012 (edited) Nedomaaju, ka to var izdariit. Labaakais ko vari IMO ir kas shaads, bet tas gluzhi nav tas pats kas table. IMO bez row elementa to izdariit nevar. Protams var meegjinaat hakus ar JS, bet tas ir negliiti: http://jsfiddle.net/kXgfy/7/ Edited October 24, 2012 by rATRIJS Quote
rpr Posted October 24, 2012 Report Posted October 24, 2012 ja pareizi sapratu, tad varbūt šis variants? dt:after { content: ':'; } dl { width: 200px; } dt,dd { width: 50px; float: left; } Quote
indoom Posted October 24, 2012 Report Posted October 24, 2012 vai arī šitā dt { float:left; width:5%; } dd { float:left; width:45%; } Quote
nemec Posted October 24, 2012 Author Report Posted October 24, 2012 Saturs ir dinamisks, tāpēc ar 5% neder. Quote
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.