» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 67
0 members and 67 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on CSS Questions within the Purged Topics forums, part of the NM Staff category; Ok sorry for the newb questions here. I run one site for a RPG community so our default theme that ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-16-2002, 12:12 AM
Junior Member
 
Join Date: Nov 2002
Location: USA
Posts: 89
Send a message via ICQ to Cyberclark
CSS Questions
Ok sorry for the newb questions here.

I run one site for a RPG community so our default theme that I am styarting off with is Chronicles. In that theme when you post a news item and place a link in it the link is the exact same color as the rest of the story text, unless you mouse over it then it turns from a brown to yellow. Well some of my members didn't like this and asked if I could change the link color and underline the link. I thought sweet no problem that is the whole purpose of style sheets right!?!? Well darnit when I go to change the A: link element to lets say red it works but it changes everything that is a link on the whole nuke site to red and then looks silly. So here is my question, is there an easy way to assign links in just news to a different element name? Maybe A: link_news or something so that I can just change the look of those links?

Yea I know this is probably pretty basic for guys like coldblooded but I have no idea where to look. I looked in story_home.html and story_page thinking that maybe there would be a reference there that I could change, but the only css references I see made in those point to story.content, so I imagine I could change the color of the content for just things in the home page, perhaps? But I would prefer to leave the content color be and just change the link properties?

:? Help? :?

Thanks again guys you are always bailing us newbs out, and I greatly appreciate your time and advice!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-16-2002, 11:28 PM
Junior Member
 
Join Date: Nov 2002
Location: USA
Posts: 89
Send a message via ICQ to Cyberclark
Just a quick bump to the top.

Have I stumped the greats, coldblooded and mikem with my newbie css question?!?!?!

Nah didn;t think so you guys probably just busy with families this weekend.

Well if get a chance and can help me out with this simple lil problem of mine I would greatly appreciate it.

Thanks much
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-21-2002, 07:50 PM
Member
 
Join Date: Nov 2002
Location: Michigan, USA
Posts: 359
Send a message via AIM to ReNeGaDe
ive had similar questions, and ive yet to solve the problem other then selecting a neutral color that will fit each and every link in the specified area. that should be too hard, im sure you can please your members

ill take alook at the CSS for it tonight and see if i can find anything.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-21-2002, 08:27 PM
Senior Member
 
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
I have had that problem too. Any time I add a style anywhere, like say in a block, it changes the whole site. How can you assign names to certain tables contents to an entry in the CSS?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-05-2005, 01:22 PM
Junior Member
 
Join Date: Dec 2004
Posts: 36
I would also like to change the color of the links in my news articles only...how is this done?

Take care...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-06-2005, 01:02 AM
eab eab is offline
Junior Member
 
Join Date: Nov 2005
Posts: 1
I had this same issue on my site, and fixed it by including a class descriptor on my link ("a:") entry in the style sheet.

For example, you might have a style entry for a link like this:
Code:
a:link {
	font-family: Tahoma, Verdana, Arial;
	font-size: 14px;
	color: #6C5825;
	text-decoration: none;
}
This formats everything on the page with the "a:" tag the same. To seperate out specific links, create a second entry in your style sheet with a class, like so,

Code:
a:link.classname {
	font-family: Tahoma, Verdana, Arial;
	font-size: 14px;
	color: #6C5825;
	text-decoration: none;
}
where the ".classname" after the a:link tag can be anything you want it to be. Now, format this new style entry however you want your different links to look. Once you have done that (changed the color or decoration or whatever), in the code of the page where those links are, enter the class info into the end of the link tag, like so :

Code:
 Link name 
Be sure to put the class name in double quotation marks, or it wont work.

Does that make sense? In other words, you are creating a second iteration of the link formatting under a new class, and then you are adding that class into the link tags that you want formatted. You can do this with any tag, like a

or <div> tag to great effect when it comes to formatting different areas of the site differently even though they require the same HTML tags to function.

Also, make sure you create a new class for each of the four link states (normal, active, visited, and hover) or it might look silly. You can create as many different classes for any tag as you like, so be sure to comment out what classes are for which part of the site or your CSS file can become cluttered very quickly.

Sorry if my explanation didn't use the most proper terminology... I am pretty new to this myself, but I have found that this solution works great! I hope this helped!

Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

BB 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
2 Questions. Snow Open topics 2 11-08-2004 08:55 PM
2 questions help plz russellfitzsimmons Nuke 7.x - General 2 10-10-2004 09:50 AM
Some Mod Questions... Trigz Site design 0 08-05-2003 10:00 AM
2 questions... c00ki3-m0nst3r Open topics 5 06-07-2003 02:09 AM
some questions :) Colin_da_Killer Site design 6 04-19-2003 07:39 PM


All times are GMT -5. The time now is 07:56 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31