CSS noob question

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Sriad
Sith Devotee
Posts: 3028
Joined: 2002-12-02 09:59pm
Location: Colorado

CSS noob question

Post by Sriad »

What is the style code stuff I need to drop in my .css file so that images used as links will not have a blue border? Thanks in advance, and if I solve this should-be-easy problem before someone else does I'll say so.
User avatar
Sriad
Sith Devotee
Posts: 3028
Joined: 2002-12-02 09:59pm
Location: Colorado

Post by Sriad »

Duh:

Code: Select all

a:link{
	color: white;
	}
with other selectors as needed.

Edit: I changed something and now it won't work after changing it back. Curse you cascading style sheets!
User avatar
Beowulf
The Patrician
Posts: 10621
Joined: 2002-07-04 01:18am
Location: 32ULV

Post by Beowulf »

It should be more along the lines of:

Code: Select all

a img
{
  color:white;
}
I think. Didn't actually test this.
"preemptive killing of cops might not be such a bad idea from a personal saftey[sic] standpoint..." --Keevan Colton
"There's a word for bias you can't see: Yours." -- William Saletan
User avatar
Comosicus
Keeper of the Lore
Posts: 1991
Joined: 2003-11-23 06:33pm
Location: on the battlements of Sarmizegetusa
Contact:

Post by Comosicus »

To remove the border altogether, you must do something like this:

Code: Select all

a img {
    border:0;
}
If you want a different border color for the image, use:

Code: Select all

a img {
    border-width:1px;            /*or whatever you require*/
    border-color:#ffffff         /*it is better to stick with a hex code rather than a color name*/
}
For future reference you can take a peek at the following websites:

http://www.w3schools.com/css/css_reference.asp
http://css3.com/
Not all Dacians died at Sarmizegetusa
Post Reply