SPAN is adding spaces in front of text?

Anything questions related to styling should go in here.
Post Reply
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

SPAN is adding spaces in front of text?

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: SPAN is adding spaces in front of text?

Post by jacek »

You have a space before the opening <?php ;)
Image
brisk
Posts: 26
Joined: Mon Nov 21, 2011 1:22 am

Re: SPAN is adding spaces in front of text?

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: SPAN is adding spaces in front of text?

Post 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 ;)
Image
Post Reply