Space getting Hyperlink Underline

In this code, the space between my icon and the word “Edit” is getting a hyperlink underline, which is annoying me?! :mad:


	if ($editablePost){
			$editLink = "<a id='editComment' href='/articles/edit_comment.php?comment=" 
						. $commentID . "&member=" . $memberID . "'>
						<img src='/images/Edit_16x16.png' width='16' 
								alt='Edit Comment' title='Edit Comment'/>&nbsp;Edit
					</a>";
	}else{

I thought adding the   would solve my problem, but alas, no luck?!

Debbie

Argh! When are you going to learn not to post PHP in the HTML forum? :lol:

Just remove the underline from the <a> and wrap a span around the text and make the underline show on the span only.

Ralph!!!

I’m not asking for help on PHP, and I don’t think what I posted above will bring the HTML Forum to a grinding halt?! :wink:

Just remove the underline from the <a> and wrap a span around the text and make the underline show on the span only.

Okay, that makes sense. (No wonder I have more Styles than Code?!) (:

Thanks,

Debbie

Exactly. So don’t post it. :slight_smile:

This example was pretty simple, but any question about HTML/CSS shouldn’t have PHP involved, as this is purely a “what you see in the browser” issue, and PHP is long gone by the time the page reaches the browser. Often it’s impossible to know what HTML we are actually working with if the PHP is included. So in future, just view source in your browser and post what the browser sees. :slight_smile: