• Hey all, due to some issues with false DMCA takedown requests, we've had to remove and censor a few things until the situation is resolved. Sorry for any inconvenience.
  • Be sure to join the discussion on our discord at: Discord.gg/serebii
  • If you're still waiting for the e-mail, be sure to check your junk/spam e-mail folders

Yamumsafish.com html coding help

Jao

Lv. 100 master!
I have looked all over the internet but I can't seem to find a successful way of changing the colour of links within a <div> tag. If anyone can help it would be greatly appreciated.
 
You didn't look very hard. Go find a basic CSS tutorial and read it the whole way through, there aren't any FAQs out there with that specific question.
 
In your stylesheet just put div before your link definition. Something like this:
Code:
div a:link, div a:visited, div a:hover {
color: blue;
}

Or if your div has a particular class:
Code:
div.classname a:link, div.classname a:visited, div.classname a:hover {
color: blue;
}
 
Thanks for thew tip but the problem is, I'm not using style sheets... is there any way to do it in regular HTML?
 
Thanks for thew tip but the problem is, I'm not using style sheets... is there any way to do it in regular HTML?

yes, put it in <style> tags
 
Back
Top