snach15 Posted April 6, 2011 Report Share Posted April 6, 2011 (edited) izmēgināju visu pilnībā ... visādu max platumus iportant un ko tik vēl nē bet nekādi nevaru dabūt gatavu kad piemeram uzraksta komentāru bez atstarpēm tad viņš pats sadala tekstu un nesačakarē visu webu .... http://www.bildites.lv/images/ejwnlq95p5xvjx2xmsl.jpg PS: ja pirmstam uzlieku div'u un to noregulēju tad atkal rādas šādi, nerāda vairs kas komentēja un laiku jo tos aizstūma prom .. http://www.bildites.lv/images/e0fnqqdgss8j7hpfl8.jpg Edited April 6, 2011 by snach15 Quote Link to comment Share on other sites More sharing options...
yancho Posted April 6, 2011 Report Share Posted April 6, 2011 HTML kodu labāk parādi. Quote Link to comment Share on other sites More sharing options...
snach15 Posted April 6, 2011 Author Report Share Posted April 6, 2011 (edited) $query = mysql_query("SELECT * FROM kom WHERE username = '".$_SESSION['username']."'"); ?> <div class="div_viesu"> <h3>Viesu grāmata</h3> <table width="100%" border="0" class="viesu_gr"> <tr> <td width="4%">#</td> <td>Komentārs</td> <td width="13%">Komentēja</td> <td width="22%">Laiks</td> </tr> <? $int = 0; while($row = mysql_fetch_array($query)){ $int = $int + 1; ?> <tr> <td><em><? echo $int; ?></em></td> <td><em><? echo $row['kom']; ?></em></td> <td><em><? echo $row['name']; ?></em></td> <td><em><? echo $row['date']; ?></em></td> </tr> <?}?> </table></div> .viesu_gr { background-color: #272727; background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0.05)), to(transparent)); /* Saf-Chrome */ background-image: -moz-linear-gradient(top, rgba(255,255,255,0.05) 0%, transparent 100%); /* FF */ background-image: linear-gradient(top, rgba(255,255,255,0.05), transparent); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#0CFFFFFF', EndColorStr='transparent'); /* IE */ border-radius: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); font-size: 1em; line-height: 170%; overflow: hidden; } .div_viesu { width: 846px !important; max-width:100%; font-size: 1em; line-height: 170%; overflow: hidden; } Edited April 6, 2011 by snach15 Quote Link to comment Share on other sites More sharing options...
NBS Posted April 6, 2011 Report Share Posted April 6, 2011 Paņem un izmanto wordwrap funkcijas saite Quote Link to comment Share on other sites More sharing options...
snach15 Posted April 6, 2011 Author Report Share Posted April 6, 2011 paldies! 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.