Jump to content
php.lv forumi

Neskaidrība ar tegu paragrāfs


Basma

Recommended Posts

Sveiki, ir tabula :

comment_id

material_id

author

comment_text

date

--------------------

visos laukos pievienojas bez paragrāfiem, izņemot comment_text!

Kaut norādu paragrāfos vai pievienoju klasi CSS, commen_text, vienalga ieliek <p>Kaut kāds teksts</p>

Kā tikt galā?

 

KODS:

<?php foreach ($comments_list as $item):?>

 

<div class="comments_form">

 

<p class="comments_date">Datums: <?=$item['date'];?></p>

<p class="comments_author"><?=$item['author'];?></p>

<?=$item['comment_text'];?>

 

</div>

 

<?php endforeach;?>

Edited by Basma
Link to comment
Share on other sites

Traucē:

<p class="comment_text_form"><p><?=$item['comment_text'];?></p></p>

 

Pareizi:

 

<p class="comment_text_form"><?=$item['comment_text'];?></p>

 

Kā dabūt pareizo variantu varbūt iemest <div></div> un CSS failā norādi ja div klasē parādas paragrāfi tad stilus tādu tādus!!?

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...