Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Cannot use more than one link tag?

Reply
Thread Tools

Re: Cannot use more than one link tag?

 
 
richard
Guest
Posts: n/a
 
      06-05-2013
On 04 Jun 2013 22:34:57 GMT, Marty wrote:

> This is driving me nuts.
>
> In the CSS file I have:
>
> a.blue { display:block ;
> width:120px ;
> height:120px ;
> background:url("bluepicture.gif") no-repeat ;
> }
>
> a.blue:hover {
>
> background:url("differentbluepicture.jpg") no-repeat ;
> }​
>
> a.red { display:block ;
> width:120px ;
> height:120px ;
> background:url("redpicture.gif") no-repeat ;
> }
>
> a.red:hover {
>
> background:url("differentredpicture.jpg") no-repeat ;
> }​
>
> In the code I use:
>
> <td width="140px"><a class="blue" href="gotobluesite.php"></a></td>
> <td width="140px"><a class="red" href="gotoredsite.php"></a></td>
>
> The blue picture and the hover picture will work for blue but not for
> red. If I reverse the order of the css, then the top one will work not
> the second.
>
> What stupid mistake am I making?


I copied and pasted your css code and ran it through a CSS validator.
When you do this, you will find two hidden "?".
I use notepad++. It's an excellent tool for html and css.
it's free too.
 
Reply With Quote
 
 
 
 
Tim Streater
Guest
Posts: n/a
 
      06-05-2013
In article <51af530f$0$1741$c3e8da3$(E-Mail Removed) m>,
Marty <(E-Mail Removed)> wrote:

> On Wed, 05 Jun 2013 00:51:54 -0400, richard wrote:
>
>
> >
> > I copied and pasted your css code and ran it through a CSS validator.
> > When you do this, you will find two hidden "?".
> > I use notepad++. It's an excellent tool for html and css.
> > it's free too.

>
> I want to thank everyone who made an effort to help me. Even those who
> focused on the perfection of the code and not the problem at hand.
>
> I did find a parse error and all I had to do was type in the code once
> again from scratch. I did not change a thing and it works perfectly now.
>
> I unfortunately cannot see hidden characters in Bluefish. Maybe there is
> a way that I have not learned about. But, in most other respects it does
> the job. I might try another editor but it has to work with Ubuntu.
>
> Again, thank you all.


Glad it worked. But do look to see if there is some Bluefish feature to
"show invisibles", or, failing that, see if you can find another editor
which can - even if you only use it for that purpose.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
 
Reply With Quote
 
 
 
 
Denis McMahon
Guest
Posts: n/a
 
      06-05-2013
On Wed, 05 Jun 2013 16:25:24 +0100, Tim Streater wrote:

> Glad it worked. But do look to see if there is some Bluefish feature to
> "show invisibles", or, failing that, see if you can find another editor
> which can - even if you only use it for that purpose.


The closest option I could find in bluefish was:

edit / preferences / visible whitespace mode -> all

gedit (which I use) usually shows weird characters as a square box
containing 4 miniaturised hex values, or refuses to load the file if it
finds character codes that are incompatible with what it thinks it should
be displaying.

--
Denis McMahon, http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Cannot use more than one link tag? JJ HTML 15 06-07-2013 01:00 PM
Re: Cannot use more than one link tag? richard HTML 0 06-05-2013 04:29 AM
Can one declare more than one signal on one line? Merciadri Luca VHDL 4 11-01-2010 02:00 PM
Will one ASP .Net worker process use more than one CPU? =?Utf-8?B?Sm9obiBCYWlsZXk=?= ASP .Net 3 09-14-2007 05:32 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM



Advertisments