February 15, 201214 yr I am new here. I came to ask a question. I am learning to use Dreamweaver 8. I have a number of pages designed for my first site and now I am linking them all together. I use the page properties to set the colors for links, active links and rollover links. All looks great in the Dreamweaver. Then I try it in browsers and there links are changing colors not as I have it designed. Instead of yellow and green I have violet and red. Funny thing is that not all links look like this, but I cant find any reason why some are as I designed and some are not. Even more, when I am playing with the files (I am checking the code, then I see again in a browser and then again I do some experiments, for example trying to rewrite the code and then again I check in the browser) more and more links have this strange and not designed color. I am using pretty old computer. Probably about 5-6 years old. Is it possible that something is wrong with my operating system? How could you explain such a behavior? Would this be reasonable to try to put it on a server and see if the problem is still there? Or rather there is a way to figure out how to fix it before launching the site? I will appreciate any opinion or advice. Thanks Jotaz Edited February 15, 201214 yr by Jotaz
February 15, 201214 yr It could be a number of things. One thing to check is that the colour being used is an exact code. For example white would be #FFFFFF, if you are using presentational view in Dreamweaver and simply select 'RED' then dreamweaver will have a preset red which is not necesarily the red you wanted. Instead if you define your colour as '#E31515' (which is a red) then it will display this exact colour in the browser. You can see some examples here: http://www.computerhope.com/htmcolor.htm I hope that helps
February 16, 201214 yr It could be a number of things. One thing to check is that the colour being used is an exact code. For example white would be #FFFFFF, if you are using presentational view in Dreamweaver and simply select 'RED' then dreamweaver will have a preset red which is not necesarily the red you wanted. Instead if you define your colour as '#E31515' (which is a red) then it will display this exact colour in the browser. You can see some examples here: http://www.computerhope.com/htmcolor.htm I hope that helps Read up on CSS, things like link colour/ behaviour should be controlled by CSS in a external file, linked to the document. this site should point you in the right direction: http://htmldog.com/
February 16, 201214 yr a { color: violet; } a:hover { color: red; } That's all you need. The DW method is a little shifty. Also as nuBlue said use the hex values. As I said before in another post it's all about what's different (hence CSS is Cascading Style Sheets - the next rule supersedes the previous rule). a { color: violet; } all links will be violet in all states regardless of hover, visited etc. a:hover (color: red;} all links will hover red regardless of visited etc. Using a:visited is not required for a two state hover. Edited February 16, 201214 yr by NoClass
February 16, 201214 yr Author a { color: violet; } a:hover { color: red; } That's all you need. The DW method is a little shifty. Also as nuBlue said use the hex values. As I said before in another post it's all about what's different (hence CSS is Cascading Style Sheets - the next rule supersedes the previous rule). a { color: violet; } all links will be violet in all states regardless of hover, visited etc. a:hover (color: red;} all links will hover red regardless of visited etc. Using a:visited is not required for a two state hover.
February 16, 201214 yr Author Nuble, Kree8or, NoClass, Thanks so much for not leaving me alone with this problem. I was fighting almost an entire day yesterday. This is so good to know that I can count on your help here. I used hex values for colors. I put FFFF33 for Link and 00FF00 for Rolover and Active Link and I left Visited not marked. Well, today I tried to put FFFF33 for visited and….. it fixed problem! Horay! And thank you again. Your reminder about superseding nature of CSS pointed me into checking this. Funy thing was that this veirid color appeared very often only after second opening of the page in the browser. And I left Visited not marked. I don’t know how DW or browser made it this weirid way, but determinig the value of “visited” color fixed thing. Best,
Create an account or sign in to comment