Jump to content
php.lv forumi

tabula pāriet pāri pa malām


snach15

Recommended Posts

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 by snach15
Link to comment
Share on other sites

$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 by snach15
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...