I know I need to learn CSS ...
July 21, 2007 2:05 PM
Subscribe
Help with right-clicking and underlined links in Firefox.
I'm editing a friend's website so it works better in Firefox. It was created using Word, unfortunately. I only have a basic knowledge of HTML, and no knowledge of CSS. I have ironed out most of the issues, but am stuck on some minor things.
Firstly, is there any way to turn off the underlining of links in Firefox? I understand that the viewer can turn them off in some versions of the programme, but can they be turned off in the code? Failing that, can I change their colour? The site has green text links, which look odd with blue underlining. The Word-generated code already contains text-decoration:none, and this is working in IE but not in Firefox.
Secondly, is there a relatively simple way to disable right clicking on images to save/copy them in Firefox? Again, this is working in IE but not Firefox.
Thanks for your help - posted for a friend.
posted by paduasoy to computers & internet (9 comments total)
1 user marked this as a favorite
I'm not sure if you need to learn about stylesheets or figure out how to do the things you mentioned without them. In short: you pretty much need stylesheets to usefully do what you want to do.
Here is a site that will get you started with stylesheets. It's old but the basics are correct. If you are only making one web page, you can lkeep the stylesheet as part of your HTML document. If you are making a whole site, you'll want to make a separate stylesheet [just a txt file called something simple like style.css] and link to it form the document.
To change the color of the links and the underlining you have to set that up within the stylesheet. A basic way to do that is to say something like this
a {
text-decoration: none;
}
This loosely says "every time I use an anchor, I want the text within that anchor to not have any text decoration" (standard decoration is underlining for links). You can see people doing this in combination with something like this
a:hover {
text-decoration: underline;
color: red;
background: yellow;
}
In this case links wouldn't be underlined UNLESS you hovered your mouse over them in which case they would be underlined and have a yellow background and the text would change to a red color. Don't copy this, I'm sure it looks horrible, but it's an example of how to do what you want.
You can even style links so that they are different colors depending on what section of a web page they're in, but that's a step ahead of where you are now. A thing to remember about stylesheets is that there is a lot of picky punctuation that sort of matters. If you're not getting the results you want, make sure your colons and semi-colons and brackets are all in the right place and make sure you spelled all your terms properly. Post again if you need something more specific or links to go for more information, Typing CSS Tutorial into Google should get you started well.
posted by jessamyn at 2:22 PM on July 21, 2007