Page 1 of 1

SPAN is adding spaces in front of text?

Posted: Wed Feb 15, 2012 1:25 pm
by brisk
The span seems to be adding a few spaces in front of the text.

This is an example of one of my lines
<p class='article_title'> <?php echo str_replace($keyword,'<span class="highlight">'.$keyword.'</span>',$headline); ?> </p>
and if yo see in the image below..

Image

Re: SPAN is adding spaces in front of text?

Posted: Fri Feb 17, 2012 5:11 pm
by jacek
You have a space before the opening <?php ;)

Re: SPAN is adding spaces in front of text?

Posted: Fri Feb 17, 2012 5:28 pm
by brisk
jacek wrote:You have a space before the opening <?php ;)
I solved it, I had a random generic SPAN tag in my css already with a margin-left lol

Re: SPAN is adding spaces in front of text?

Posted: Sun Feb 19, 2012 1:25 am
by jacek
brisk wrote:
jacek wrote:You have a space before the opening <?php ;)
I solved it, I had a random generic SPAN tag in my css already with a margin-left lol
So it wasnt the space :s

Well at least you found it ;)