Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-30-2005, 01:09 PM   #1
GirlNinja
Confirmed User
 
GirlNinja's Avatar
 
Join Date: Jan 2004
Location: dirty south
Posts: 1,515
have a CSS question

how do you set visted link and active link colors in CSS?
GirlNinja is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 01:13 PM   #2
chupachups
Confirmed User
 
chupachups's Avatar
 
Join Date: Dec 2002
Location: Sweden/Spain you sum bitch!
Posts: 6,576
a:link {color: #FF0000}
a:visited {color: #00FF00}
a:hover {color: #FF00FF}
a:active {color: #0000FF}

__________________
chupachups is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 01:13 PM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
a:link {
color: #A21569;
}
a:visited {
color: #A21569;
}
a:hover {
color: #A21569;
}
a:active {
color: #A21569;
}
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 01:17 PM   #4
GirlNinja
Confirmed User
 
GirlNinja's Avatar
 
Join Date: Jan 2004
Location: dirty south
Posts: 1,515
I want to set them inside the body tag:

BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;

}
GirlNinja is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 01:21 PM   #5
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by GirlNinja
I want to set them inside the body tag:

BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;

}
any special reason why?
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 01:21 PM   #6
GirlNinja
Confirmed User
 
GirlNinja's Avatar
 
Join Date: Jan 2004
Location: dirty south
Posts: 1,515
Quote:
Originally Posted by NichePay - StuartD
any special reason why?

it's homework
GirlNinja is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:05 PM   #7
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
thats not the proper way to do it.

in css its a seperate tag
in html its like <body alink=green etc
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:17 PM   #8
Darkland
Confirmed User
 
Darkland's Avatar
 
Join Date: May 2002
Posts: 1,488
Well it doesn't really make sense what your trying to do, but here are your options.

1. If you want something simple in the body for links then it would simply be:
<body link="#0000FF" vlink="#66FF33" alink="#FF0000">

2. If it has to be CSS then you can either but this in your header or call to a css sheet:
<style>
a:link {color: #FF0000;
}

a:visited {color: #66FF33;
}

a:active {color: #0000FF;
}
</style>

The only real thing you can do as far as putting css in your body tag is to call to a particular element in the css by use of Class or Id selectors. I am by no means an expert and maybe someone else here knows more than I do and knows a better way to do it.

Best advice to you is go to a book store and pick up Cascading Style Sheets by O'Reilly. CSS is very easy to learn.
__________________


"The towers are gone now, reduced to bloody rubble, along with all hopes for Peace in Our Time, in the United States or any other country. Make no mistake about it: We are At War now -- with somebody -- and we will stay At War with that mysterious Enemy for the rest of our lives." H.S.T. 09/12/01
Darkland is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:18 PM   #9
evanmorgan
Confirmed User
 
Join Date: Aug 2004
Posts: 2,490
I have a CSS question guys, what the hell does it stand for
__________________
Perfect for Asian, Petite,Teen, Exotic, Bikini, Solo girl, Panty, Softcore and Cameltoe Traffic

100% Exclusive Girls and Content
evanmorgan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:19 PM   #10
Darkland
Confirmed User
 
Darkland's Avatar
 
Join Date: May 2002
Posts: 1,488
Quote:
Originally Posted by evanmorgan
I have a CSS question guys, what the hell does it stand for
Cascading
Style
Sheet
__________________


"The towers are gone now, reduced to bloody rubble, along with all hopes for Peace in Our Time, in the United States or any other country. Make no mistake about it: We are At War now -- with somebody -- and we will stay At War with that mysterious Enemy for the rest of our lives." H.S.T. 09/12/01
Darkland is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:19 PM   #11
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by evanmorgan
I have a CSS question guys, what the hell does it stand for
Cascading Style Sheets
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:20 PM   #12
After Shock Media
It's coming look busy
 
After Shock Media's Avatar
 
Join Date: Mar 2001
Location: "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn".
Posts: 35,299
Quote:
Originally Posted by evanmorgan
I have a CSS question guys, what the hell does it stand for
Cascading style sheets if I remember.
After Shock Media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 02:56 PM   #13
Lester
Confirmed User
 
Join Date: Sep 2003
Location: Chicago
Posts: 468
http://www.w3schools.com/css/

http://www.w3schools.com/css/css_examples.asp


pretty cool online tutorials
__________________
I have no sig...sigh
Lester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 04:08 PM   #14
nofx
Too lazy to set a custom title
 
Join Date: Nov 2002
Location: Virgin Mary's womb
Posts: 16,826
cheater!
__________________

Often times I wonder why
There's love and hate, theres live or die.
When sickness comes I must decide:
When feelings go, theres suicide.
nofx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 04:20 PM   #15
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Taken from your other thread

Quote:
Originally Posted by swedguy
If you do like this, it will only belong to the body tag

body a:active { color:white}
body a:visited{ color:white}

But it's basically the same since both covers the whole html page

a:active {color:white}
a:visited{ color:white}

Search on CSS childs and you can read about it.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 04:55 PM   #16
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
Quote:
Originally Posted by swedguy
Taken from your other thread
This guy got the right answer. Ignore the rest of the CSS virgins.
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 04:58 PM   #17
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Glad to see a CSS thread. I tried it out the other day and it totally didn't work. I'll read those tutorials posted. Thanks.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 05:00 PM   #18
Darkland
Confirmed User
 
Darkland's Avatar
 
Join Date: May 2002
Posts: 1,488
Quote:
Originally Posted by ssp
This guy got the right answer. Ignore the rest of the CSS virgins.
Not sure who your talking about but that pretty much just reiterated what I said.
__________________


"The towers are gone now, reduced to bloody rubble, along with all hopes for Peace in Our Time, in the United States or any other country. Make no mistake about it: We are At War now -- with somebody -- and we will stay At War with that mysterious Enemy for the rest of our lives." H.S.T. 09/12/01
Darkland is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 05:01 PM   #19
jayeff
Confirmed User
 
Join Date: May 2001
Posts: 2,944
Quote:
Originally Posted by GirlNinja
I want to set them inside the body tag:

BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;

}
I cannot imagine why you are being asked to do it this way because it is absolutely the wrong way to go about it, but if you insist:

<body style="font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 14pt; color: #193c24; background-color: #e4f9cc;">

You cannot however set the link attributes in this way. For those, the options have already been suggested.

And btw font sizes in pt (as opposed to px) do not render the same size in every browser...

Last edited by jayeff; 03-30-2005 at 05:03 PM..
jayeff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-30-2005, 05:04 PM   #20
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
Quote:
Originally Posted by Darkland
Not sure who your talking about but that pretty much just reiterated what I said.
I didn't realise I offended you.
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.