1
<p> " <?=$testemunhos[$i]['testemunho']?> " <p>
I want to write in the same line, but this getting so
and I wanted it like this
" Lorem ipsum dolor sit Amet, consectetur adipiscing Elit. Ut sed magna aliquet, congue nunc at, lacinia neque. "
any hint?
<? $testemunhos=$testemunhos->getTestemunhos(); ?>
<ul class="rslides" id="comentarios">
<? for($i=0;$i<count($testemunhos);$i++){ ?>
<li>
<div class="avaliacao">
<p> " <?=($testemunhos[$i]['testemunho']) ?> " <p>
</div>
</li>
<? } ?>
</ul>
You need to specify a container size for your content, so when the text is larger than the size of your container, it will throw the content down.
– Kayo Bruno
Give a CTRL+U and look at the source code that shows the HTML. It seems to me that the PHP code is returning another paragraph.
– Sam
yes, this returns 3 paragraphs, 2 for the " and 1 for the text
– Ricardo
Try to remove the paragraphs with the
str_replace
.– CypherPotato
Look at the browser source code and see what the HTML shows.
– Sam
https://imgur.com/a/ciOOMI8
– Ricardo
You’re opening two
<p>
... the last had to be</p>
.– Sam
yes, you’re right there was an error in the code, I’ve solved it but the problem continues
– Ricardo
I discovered the problem, but I still don’t know how to solve it. I’m using the CKEDITOR and it will be stored in the Database as a paragraph.
– Ricardo