Hi there I can't find the answer to this in mozilla forefox docs so I am sure someone has seen this before I have two colors of links on the same page - the menu links are white and the links within the page are blue. The blue are in the source code at the top of the page then the white one use the style="color: #ffffff;" in the ref tag The colors work fine in IE but in FF, they are all blue - the style tag doesn;t seem to work How do I do it so both browsers recognize the colors thx very much for the help
I just tested this in both FF and IE and it worked fine for me... <a href = "#" style = "color: blue;">Blue Link</a> <a href = "#" style = "color: white;">White Link</a> Code (markup):
Okay since you both agreed the code was okay, I figured something else must have happened and I see what it is now but don't know how to fix it. I wanted to get rid of the underline in the hyperlink so I added another style tag and it seems when I have both, it negates the color. This is how I did it. Instead of the link being white, it grabs the blue from the other code. I am obviously writing this code wrong. What would be correct. Thx again for the quick help guys.
Use only one style attribute. <a href="index.shtml" style="text-decoration:none; color: #ffffff;" title="xyz info"> Code (markup): Better yet, get the styles out of the elements and into a stylesheet, where they belong. cheers, gary
style.css index.html Create a folder for your test site, create index.html and copy that code, then create style.css and copy the style information i posted above. If you want to have the links display horizontal, use:
Remember, if you are placing multiple links in a list, you should use the correct HTML Mark-Up and place them in <ul><li><a></a></li><li><a></a></li></ul>
OH wow - thank you so much cascadingstylez - this is great - I have used your code and I am good to go now. Plus I learned a lot from this post. I am going to be using this way from now on.