• Welcome Visitor! Please take a few seconds and Register for our forum. Even if you don't want to post, you can still 'Like' and react to posts.

Any computer experts that can deal with code?


Jim Oaks

Just some guy with a website
Administrator
Founder / Site Owner
Supporting Vendor
Article Contributor
TRS Banner 2010-2011
TRS Banner 2012-2015
TRS 20th Anniversary
VAGABOND
TRS Event Participant
GMRS Radio License
TRS 25th Anniversary
Joined
Aug 2, 2000
Messages
15,086
Age
57
City
Nocona
State - Country
TX - USA
Other
2005 Jaguar XJ8
Vehicle Year
2021
Vehicle
Ford Ranger
Drive
4WD
Engine
2.3 EcoBoost
Transmission
Automatic
Total Lift
3.5-inches
Tire Size
295/70/17
All the links have an underline under them. There's a code in all the pages that removes that line:

Code:
<!--
  A  {text-decoration: none}
-->

I can't figure out what's going on...........

It just started a couple of hours ago.
 
Is anyone seeing all the links underlined besides me? The hosting company says they don't see any lines under the links.

The code to remove the links is working on TRS Fab but not here. At least not for me. I thought it was my computer and I've turned it off and back on, but the lines are there on here but not TRS Fab. I figure if it was on my end it would either work on all my sites or not at all.

This is what I see:

screenshot_of_index.JPG


Those lines shouldn't be under the hyperlinks.
 
a:link, a:visited, a:active { text-decoration :none; }
a:hover { text-decoration: underline; }

Pete
 
N/m, I starting digging and the problem was right there in my face.

You have a link tag in the style tag that's causing the CSS to fail. It's working okay in IE7 on XP, but not in FireFox.

<STYLE TYPE="text/css" /><link rel="icon" href="favicon.ico" type="image/gif" />
<!--
A {text-decoration: none}

-->
</STYLE>

Pete

Edit:
Also, the CSS above is more standard, and make it more apparent that the user is actually over a link.
 
IE 6 -- no underlines on my web browser...
 
Am I the only one who is seeing that the relevant code is COMMENTED OUT?

<!--
whatever
-->

is HTML comments.
 
IE 6 -- no underlines on my web browser...

One thing I noticed that when I did a lot of WYSIWYG work that IE has built it libraries tucked away in a DLL file that it runs the HTML through to make sure that it's correct and that all of the tags are closed and what not. That's essentially what's happening, IE (platform difference? Is that Vista Jim?) knows the link tag isn't supposed to be in CSS, so it's just throwing it away and processing the CSS. If you save the home page as a COMPLETE page (not just save the src HTML), it does some re-formatting and removes the <link> tag. Jim's browser is doing the right thing, and if he is running Vista, fortunately appears to be more compliant to web standards.

Pete
 
Am I the only one who is seeing that the relevant code is COMMENTED OUT?

<!--
whatever
-->

is HTML comments.

That's so that really old browers do not display the code if it cannot support CSS, just like Javascript. If it encounters a tag it cannot recognize (style in this instance), it will just simply ignore it and not generate. But honestly is completely unneccessary anymore, IMO.

Pete
 
N/m, I starting digging and the problem was right there in my face.

You have a link tag in the style tag that's causing the CSS to fail. It's working okay in IE7 on XP, but not in FireFox.

<STYLE TYPE="text/css" /><link rel="icon" href="favicon.ico" type="image/gif" />
<!--
A {text-decoration: none}

-->
</STYLE>

Pete

Edit:
Also, the CSS above is more standard, and make it more apparent that the user is actually over a link.

Thanks Pete.

I switched that code to:

Code:
<STYLE TYPE="text/css" /><link rel="icon" href="favicon.ico" type="image/gif" /></STYLE>
<STYLE>
<!--
  A  {text-decoration: none}
-->
</STYLE>

I added the </style> after the icon link and <style> before the code to remove the underline and it went away.

I don't understand why it just started failing when I look at it. It's been working prior to last night and I hadn't changed any browser settings.
 
Hey Jim, just a FYI, some browers might be able to handle the link tag inside of the style tags, but will be thrown away on others. Best place for that tag would be in the <head></head>, but just putting it by itself will work as well.

eg:

<link rel="icon" href="favicon.ico" type="image/gif" />
<STYLE type="text/css">
<!--
A {text-decoration: none}
-->
</STYLE>

Pete
 

Sponsored Ad


Sponsored Ad

TRS Events

Member & Vendor Upgrades

For a small yearly donation, you can support this forum and receive a 'Supporting Member' banner, or become a 'Supporting Vendor' and promote your products here. Click the banner to find out how.

Latest posts

Recently Featured

Want to see your truck here? Share your photos and details in the forum.

Ranger Adventure Video

TRS Merchandise

Follow TRS On Instagram

TRS Sponsors


Sponsored Ad


Sponsored Ad


Amazon Deals

Sponsored Ad

Back
Top