kalabox Posted March 2, 2011 Report Share Posted March 2, 2011 Sveiki, tātad ir tāda fīča, man uzģenerē 4 skaitļus no 9, katrs ir atsevišķa gif ikona. Bet izvada man vienu zem otra., Kā dabūt lai rāda blakus vienu otrai? ? srand ((float) microtime() * 10000000); $buttons = array ("1", "2", "3", "4", "5", "6", "7", "8", "9"); $rand_keys = array_rand ($buttons, 4); $key = $buttons[$rand_keys[$key]]; for($x=0; $x<4; $x++) { $buttonlist.="<a href=\"#\" onclick=\"next($x)\" id=\"button$x\"><img src=\"clickimages/".$buttons[$rand_keys[$x]].".gif\" border=0></a>"; } Quote Link to comment Share on other sites More sharing options...
m8t Posted March 2, 2011 Report Share Posted March 2, 2011 img, a { display:inline; } Quote Link to comment Share on other sites More sharing options...
kalabox Posted March 2, 2011 Author Report Share Posted March 2, 2011 Atvainojos, bet kaut kas man nesanaak Quote Link to comment Share on other sites More sharing options...
kalabox Posted March 2, 2011 Author Report Share Posted March 2, 2011 es uz chrome paarbaudu, kaut kur lasiiju ka uz chrome nestraadaa display:inline Bet gan display:inline-table Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 2, 2011 Report Share Posted March 2, 2011 Te nu gan Tu kļūdies... http://www.quirksmode.org/css/display.html Quote Link to comment Share on other sites More sharing options...
mad182 Posted March 4, 2011 Report Share Posted March 4, 2011 Nu vēl to var izdarīt ar float left, bet display inline ir jāstrādā. Droši vien kaut kur viņš tev tiek overridots. 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.