| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jan 2004 
				
				
				
					Posts: 299
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				A stupid CSS question- anybody know how?
			 
			This is something I've never figured out, I've researched it, but never found an answer- it may not even be possible, but I figured somebody on here would know if it is. 
		
	
		
		
		
		
		
	
	I've got a page all setup with tons of CSS. but say I have one little bit of text that I want to make a color, and ALSO be hyperlinked, and have a seperate hovercolor. I want to just code it inline using a SPAN tag, and not write a giant bunch of CSS code just for this one word. So the text link should be white, and when hovered over, it would turn black. This will turn the text white, etc: <a href="http://www.myurl.com" ><span style="font-family: arial; font-weight: bold; font-size: 12px; color: white; ">CLICK HERE</span></a> But can I define a hover color in that span tag? I've never found any code that would do it.. can it be done? Thanks for any help!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2004 
				
				
				
					Posts: 959
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 If it's just one instance in the code, drop the span part, give the <a> an id and add 2 lines of code to the css file. 
		
	
		
		
		
		
		
	
	<a href="http://www.myurl.com" id="thisone">CLICK HERE</a> a#thisone:link, a#thisone:visited { font: 700 12px Arial, sans-serif; color: #fff; } a#thisone:hover, a#thisone:active { color: #000; }  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Zph7YXfjMhg 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: In Your Skull 
				
				
					Posts: 15,350
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 pretty sure you cant do pseudo shit inline. 
		
	
		
		
		
		
		
	
	add something like this silly shit to your anchor onmouseover="this.style.color='value';" onmouseout="this.style.color='value';"  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 There can be only one 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2001 
				Location: Somewhere else 
				
				
					Posts: 39,075
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 hey dude... haven't seen you around in a while. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	SIG TOO BIG  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 MFBA 
			
		
			
			
			Industry Role:  
				Join Date: Mar 2003 
				Location: PNW 
				
				
					Posts: 7,230
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 i believe prezzz is correct... im sure there are other ways but thats the simple and straightforward answer. 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jun 2009 
				Location: Asheville, NC 
				
				
					Posts: 2,277
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 I would probably opt for a class instead of an id in case you want to reuse it later: <a href="http://www.whatever.com" class="blackWhite">Click Here</a> a.blackWhite, a.blackWhite:visited { font: ...; color: #fff; } a.blackWhite:hover, a.blackWhite:active { color: #000; } Then you can just use the css class on any anchor tag you may want but for sure, as prezzz used... break it out into the style sheet. That way you can update it whenever you want without searching through mounds of copy... ![]() 
				__________________ 
		
		
		
		
	
	ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: May 2003 
				
				
				
					Posts: 3,765
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	flexx [dot] aeon [at] gmail  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jan 2004 
				
				
				
					Posts: 299
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Thanks for the replies guys 
		
	
		
		
		
		
		
	
	I was trying to avoid using an id or class (or having to add shit to the css file) and just be able to whip it out right there on the line, but oh well The Truth Hurts- I will try that technique  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |