Replies Back to Article
remove blue lines in an image that's linked
You will need to use style sheets for this, which means that it may not work in every browser, but for the most part you are fine. Just be sure that your links stand out so that your users don't miss them.
Code:
<a href="foo.htm" style="text-decoration:none">My Link</a>
Hope this helps
1. Click on design tab (make sure it's on the CSS Styles tab.)
2. Click on new css style (if you haven't used it before it's the 2 icon on the bottom right hand side of the panel. A + with a blue sheet behind it.)
3. Click on Use CSS Selector >
4. Click on Selector > drop down will show > a:link > a:visited > a:hover > a:active>
5. Select a:link first > click OK
6. Save your css file >
7 Css style definition for a:link in filename.css - in there format your font and whatever else you want to format make sure on decoration you click none > repeat those steps for :avisited and a:active but a:hover do everything the same except for decoration - check underline > click ok >
8. All done.
goes same for images - make the link for the image and do this
I'm not sure if you got your answer yet - just that this may be of some help.
Shawdy
There are three ways to do this using style sheets.
1. Use embedded code within the <img> tag - this is fine if you are going to do this for only one image.
<img src="image.jpg" style={border:0px;} />
2. Put the embedded code in the <head> section - this is fine if you are going to do this for all images only on this one page.
Include the following code between <head> and </head>
<style type="text/css">
<!--
.foo {border:0px;}
-->
</style>
Then, in the <img> tag within <body></body>, write this code:
<img src="image.jpg" class="foo" />
3. Probably the best way to do it is to use an external style sheet - this way you can use it site-wide.
Open a new CSS document in Dreamweaver and type the following:
.foo {border:0px;}
Save it as style.css. You can also do this in Notepad, but be sure to save not as .txt but "All files" with a .css extension.
Now that you have your external style sheet you need to include this code between the <head> and </head> tags of your HTML code:
<style type="text/css">
@import "style.css";
</style>
And, finally, in the body of the HTML, here's how to write your img tag:
<img src="image.jpg" class="foo" />