CSS noob question
Moderator: Thanas
CSS noob question
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.
Duh:
with other selectors as needed.
Edit: I changed something and now it won't work after changing it back. Curse you cascading style sheets!
Code: Select all
a:link{
color: white;
}
Edit: I changed something and now it won't work after changing it back. Curse you cascading style sheets!
It should be more along the lines of:
I think. Didn't actually test this.
Code: Select all
a img
{
color:white;
}
"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
"There's a word for bias you can't see: Yours." -- William Saletan
- Comosicus
- Keeper of the Lore
- Posts: 1991
- Joined: 2003-11-23 06:33pm
- Location: on the battlements of Sarmizegetusa
- Contact:
To remove the border altogether, you must do something like this:
If you want a different border color for the image, use:
For future reference you can take a peek at the following websites:
http://www.w3schools.com/css/css_reference.asp
http://css3.com/
Code: Select all
a img {
border:0;
}
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*/
}
http://www.w3schools.com/css/css_reference.asp
http://css3.com/
Not all Dacians died at Sarmizegetusa