Extra little Underlines after buttons (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


vickgould -> Extra little Underlines after buttons (5/1/2008 8:31:54)

I get these extra little lines after my "Add to Bag" buttons. Sometimes they're there, sometimes not. They don't show up in design mode, but show up in the preview and published mode. How in the world do I get rid of them? (I mean, I know that I can highlight space after the button and delete, but how do I not get them in the first place?)

http://victoriasgould.com/Filigree.htm

Thanks for the help!




Tailslide -> RE: Extra little Underlines after buttons (5/1/2008 8:39:49)

You're not closing off your links properly so they're continuing onto the next line and the next (hence the underline)

You've got (shortened for clarity)
<p style="margin-top: 0; margin-bottom: 0"><a href="http://ww11.aitsafe.com/filigree.htm"><img border="0" src="add%20to%20bag%20button.gif" width="96" height="28"></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0"> </td>

You need the closing </a> after the image tag and before the closing </p> tag.




vickgould -> RE: Extra little Underlines after buttons (5/1/2008 8:49:40)

Oh, thanks! That did it! It's strange because I inserted the image using the insert from frontpage (I don't code in html), so I wonder why frontpage doesn't do that? Or maybe somehow I delete them when I'm doing my stuff..... anyhow --- thank you very much!




rdouglass -> RE: Extra little Underlines after buttons (5/1/2008 9:22:52)

quote:

so I wonder why frontpage doesn't do that?


<$.02>
You'll find out as you hang around here that most of us don't rely on FP to create good markup. I (and many, many others here) recommend highly that you have a good grasp on HTML and always look at the code as well as the design.

Another thing that helps a lot is to use one of the validation tools available. One of my fav's recommended by others to me is here:

http://validator.w3.org/

Try running your page thru this validator and a lot of this stuff will show as errors. I believe that specific error would have shown. It's amazing how many of those cross browser, positioning, funny layouts, etc. problems are exposed by checking for valid markup.

</$.02>




vickgould -> RE: Extra little Underlines after buttons (5/1/2008 9:30:18)

Ok, WOW, that's just stinkin' cool! I don't code in HTML, but I do use the split screen to do some stuff that I must type in, so I can get by, but limpingly.... this site is way cool..... but now there's 84 errors I have to fix! LOL! It doesn't look that broken!




rdouglass -> RE: Extra little Underlines after buttons (5/1/2008 9:38:13)

quote:

but now there's 84 errors I have to fix!


Usually most are a result of 1 or 2 errors that cascade.

Start by declaring your doctype at the top of your page. Something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Put that as the very first line of your HTML and see if that validates any better.

That help any?




vickgould -> RE: Extra little Underlines after buttons (5/1/2008 9:41:59)

quote:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Nope, that didn't help any. I'll just have to go through all 84 one by one and hope I don't make all the same errors on my next page.

Thanks!




rdouglass -> RE: Extra little Underlines after buttons (5/1/2008 9:54:03)

One more thing, you need to be sure to have a working valid doctype for that validator to work. Take a look at this:

http://validator.w3.org/docs/help.html#faq-doctype

and get a doctype working before you try fixing any of those errors. They (the errors) will be erroneous themselves until you do. [;)]

Hope it helps.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625