Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 12-08-2002, 01:15 PM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
yet another CSS question.

i am setting up text navigation and need to have 2 differnt sets of link styles.

the problem i am running into is that when i set up my links the 2nd style changes to the default color.

Quote:
/* Start Body */

body {
background-color: #FFFFFF;
font-family: Verdana;
font-size: 10px;
font-weight: normal;
font-size-adjust: none;
font-stretch: normal;
font-style: normal;
font-variant: normal;
color: #000000;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
}

a:link {
background-color: transparent;
text-decoration: none;
color: #333333;
}

a:active {

background-color: transparent;
text-decoration: underline;
color: #660000;
}

a:visited {

background-color: transparent;
text-decoration: none;
color: #333333;
}

a:hover {

background-color: transparent;
text-decoration: none;
color: #666666;
}

.text {

font-family: Verdana;
font-size: 10px;
color: #000000;
}

/* End Body */



/* Misc Styles */


.nav {

font-family: Verdana;
font-size: 10px;
color: #FFFFFF;
letter-spacing: 0.1em
}

.footer {

font-family: Verdana;
font-size: 9px;
color: #FFFFFF;
}

/* End Misc Styles */
then i am using <span class='nav'> link stuff here </a> and it changes to the a:link color.

any suggestions ?
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 12-08-2002, 01:35 PM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
ok i figured it out.

Quote:
/* Start Body */

body {
background-color: #FFFFFF;
font-family: Verdana;
font-size: 10px;
font-weight: normal;
font-size-adjust: none;
font-stretch: normal;
font-style: normal;
font-variant: normal;
color: #000000;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
}

a:link {
background-color: transparent;
text-decoration: none;
color: #333333;
}

a:active {

background-color: transparent;
text-decoration: underline;
color: #660000;
}

a:visited {

background-color: transparent;
text-decoration: none;
color: #333333;
}

a:hover {

background-color: transparent;
text-decoration: none;
color: #666666;
}

.text {

font-family: Verdana;
font-size: 10px;
color: #000000;
}

/* End Body */



/* Misc Styles */

a.nav:link {
background-color: transparent;
text-decoration: none;
color: #FFFFFF;
}

a.nav:active {

background-color: transparent;
text-decoration: underline;
color: #660000;
}

a.nav:visited {

background-color: transparent;
text-decoration: none;
color: #FFFFFF;
}

a.nav:hover {

background-color: transparent;
text-decoration: none;
color: #CCCCCC;
}

.nav {

font-family: Verdana;
font-size: 10px;
color: #FFFFFF;
letter-spacing: 0.1em
}

.footer {

font-family: Verdana;
font-size: 9px;
color: #FFFFFF;
}

/* End Misc Styles */
then do this in your link <a href="blah" class="nav"> click here </a>

w00t
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 12-08-2002, 09:06 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
uber leet css skillz =) hey matt what's up! i was down in sd today setting up some guys wireless network , it was not fun.
__________________
sde is offline   Reply With Quote
Old 12-09-2002, 07:25 AM   #4 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
damn dude.

i drove through commerce (i think that is the city you work in) on saturday night.

went to some party in downtown LA, i dont like LA.

you ready to go snowboarding?
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 12-09-2002, 11:21 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
call me next time .. i'm ready to go riding .. lets go to mammoth christmas week. everyonen else flaked on me... i'll probably go anyway.
__________________
sde is offline   Reply With Quote
Old 12-09-2002, 12:04 PM   #6 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
i dont have the money to go to mammoth. im going to canada, remember?

i will hit up some so-cal sessions though. bear is supposed to be 1 big terrain park this year summit is generaly decent too.

if you dont go to mammoth, wanna hit up summit or bear in 2 weeks?
__________________


Urban Clothing
Admin is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Explorer trouble (of course) easilyi HTML, XML, Javascript, AJAX 6 11-11-2004 03:59 PM
DB Design Question Part II sde Program Design and Methods 3 05-10-2003 12:24 PM
CSS Positioning d8uv HTML / CSS 0 03-22-2003 04:13 AM
An Introduction to XHTML/CSS Rie HTML / CSS 0 03-07-2003 06:50 PM
CSS question Miststlkr HTML, XML, Javascript, AJAX 7 12-05-2002 07:29 AM


All times are GMT -8. The time now is 06:52 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle