I am creating a code for I website I use. There are multiple different areas for link color, and they seem to overlap and I am unsure how to fix it.
My HTML is
<div class="floatbox" style="width:200px;height:200px;padding:5px;font-size:15px;position:fixed;left:2px;bottom:10px;overflow:auto;font-color:#3c5eb2;">
</div>
Within this I have links. My CSS is
#floatbox a:link, a:visited, #a:active{color: #BF00FF;}
#floatbox a:hover {color: #BF00FF;text-decoration: underline;}
I have tried using the "!important" tag and nothing is working. If the tag isn't there, all links on the page stay white. If I add the "!important" tag, half the website's links turn purple. I am a beginner coder and I may not be targeting the class properly.
Any help is appreciated!
definition listsdiv based layoutanf if you want to use HTML5sections. It may seem painful now, but you will thank me later, particularly if you want to do simple layout tweaks. Much easier with tableless layouts.#floatboxdefined I can't find it in your fidde?.floatboxyour question referecnes#floatboxyou might want to edit your question to fix that. If you can't due to not enough rep, let me know if you want me to.