CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 8th, 2001, 11:00 AM
pgudge pgudge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: South Yorkshire
Posts: 435 pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 4 h 9 m 22 sec
Reputation Power: 17
Post using css and the CLASS parameter???

I have a .css file like so

A
{
TEXT-DECORATION: none;
}
A:HOVER
{
TEXT-DECORATION: underline;
}
A.USER
{
TEXT-DECORATION: none;
}
A.USER:HOVER
{
TEXT-DECORATION: underline;
COLOR: BLUE;
}

Now when I use the following line it doesn't work, am I doing something very silly?????

<a CLASS="USER" onclick="GoTo('user1')">User1</a>
<a CLASS="USER" onclick="GoTo('user2')">User2</a>
etc.
etc.

Might it be becuase I have no href parameter in the <a> tag???
__________________
regards,

pgudge

Reply With Quote
  #2  
Old November 8th, 2001, 11:39 AM
valeria_vi valeria_vi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Chicago, IL
Posts: 63 valeria_vi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
try this:

A:link
{
TEXT-DECORATION: none;
}
A:HOVER
{
TEXT-DECORATION: underline;
}
A.USER:link
{
TEXT-DECORATION: none;
}
A.USER:HOVER
{
TEXT-DECORATION: underline;
COLOR: BLUE;
}

Reply With Quote
  #3  
Old November 8th, 2001, 11:42 AM
pgudge pgudge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: South Yorkshire
Posts: 435 pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 4 h 9 m 22 sec
Reputation Power: 17
nope

The

A.USER
{
......
}

Seems to work fine it's the :HOVER that is not working.

Reply With Quote
  #4  
Old November 8th, 2001, 11:49 AM
valeria_vi valeria_vi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Chicago, IL
Posts: 63 valeria_vi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
the BIG question is: are you using NS4.x??? If so, it won't work as this property isn''t supported in NS4.x

Reply With Quote
  #5  
Old November 8th, 2001, 12:34 PM
pgudge pgudge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: South Yorkshire
Posts: 435 pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 4 h 9 m 22 sec
Reputation Power: 17
RE:

IE5.5 and IE6

Reply With Quote
  #6  
Old November 8th, 2001, 02:56 PM
valeria_vi valeria_vi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Chicago, IL
Posts: 63 valeria_vi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Might it be becuase I have no href parameter in the <a> tag???

i tested the code and it does seem like that is the problem. I have put your styles and your links into a test page, and... Use1 and User2 didn't even show up as links (ie5 on a mac).
change
<a CLASS="USER" onclick="GoTo('user1')">User1</a>
<a CLASS="USER" onclick="GoTo('user2')">User2</a>
to
<a CLASS="USER" href="javascript:GoTo('user1')">User1</a>
<a CLASS="USER" href="javascript:GoTo('user2')">User2</a>
this should do it.

Reply With Quote
  #7  
Old November 8th, 2001, 03:22 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
HREF isn't just a parameter, it's an HTML attribute - and it's required to be specified with the tag, so the browser will know you want a hyperlink instead of a page anchor (<a name="...">).

http://developer.netscape.com/docs/...gs7.htm#1604913

Last edited by adios : November 9th, 2001 at 05:56 PM.

Reply With Quote
  #8  
Old November 10th, 2001, 08:58 PM
MkJnr MkJnr is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2001
Location: London, UK
Posts: 661 MkJnr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via AIM to MkJnr Send a message via Yahoo to MkJnr
to use your class u gotta be looking at something like this I'd say

<a href="....." class="whatever" >

I kno that would work, cause I have it working on my site

Reply With Quote
  #9  
Old November 19th, 2001, 02:02 PM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 13
Don't know if you got it sorted, but here is working code


<style>
A
{
TEXT-DECORATION: none;
}
A:HOVER
{
TEXT-DECORATION: underline;
}
A:LINK.USER
{
TEXT-DECORATION: none;
}
A:HOVER.USER
{
TEXT-DECORATION: underline;
COLOR: BLUE;
}

</style>
</head>

<body bgcolor="#FFFFFF" text="#000000">

Now when I use the following line it doesn't work, am I doing something very silly?????
<p>
<a href="javascript:" CLASS="USER" onclick="GoTo('user1')">User1</a> <br>
<a href="javascript:" CLASS="USER" onclick="GoTo('user2')">User2</a> </p>


Note the A:LINK.USER & A:HOVER.USER

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > using css and the CLASS parameter???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway