User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 422,800 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,358 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 14859 | Replies: 5
Reply
Join Date: Mar 2004
Posts: 57
Reputation: cuddlers89 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
cuddlers89 cuddlers89 is offline Offline
Junior Poster in Training

Getting rid off the border round link images

  #1  
Sep 23rd, 2004
Hi everyone

I can't remember how to get rid of the border on images when i use them as links, and also can someone remind me the code for changing text links, sumthin link <body alink="" vlink="">

But i can't remember it very well.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2004
Posts: 49
Reputation: felgall is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
felgall felgall is offline Offline
Light Poster

Re: Getting rid off the border round link images

  #2  
Sep 23rd, 2004
To get rid of borders around link images add border="0" to the image.


The preferred method for changing link colours is using stylesheets. You'd use something like

a:link{text-decoration:none;color:#3366cc;font-weight:bold;}
a:visited{text-decoration:none;color:#6699ff;font-weight:bold;}
a:active{text-decoration:none;color:#3366cc;font-weight:bold;background-color:#cccc00;}
a:hover{text-decoration:none;color:#0000cc;font-weight:bold;background-color:#cccc00;}

You can use link, alink, and vlink on the body tag and it will still work in current browsers but the body tag option doesn't allow you to set the hover colour.
Reply With Quote  
Join Date: Nov 2003
Location: California
Posts: 204
Reputation: rixius is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
rixius rixius is offline Offline
Posting Whiz in Training

Re: Getting rid off the border round link images

  #3  
Sep 23rd, 2004
As felgall said, the preferred method of doing colours is via CSS (Cascading Style Sheets). You can also take the border off images via CSS also. Here is an example. My comments are marked out by /* & */.

a:link, a:visited { /* this defines unclicked, and clicked link properties */
	text-decoration: none; /* you can set this to underline, or none. */
	color: #000000; /* sets color, hexadecimal, right now it is black */
	font-weight: bold; /* sets your font to bold. bold or none are most common here */
}
a:hover, a:active { /* defines mouseover, and clicked/processing links */
	text-decoration: underline; /* set this to the opposite of what rested state links are for it to underline on mouseover */
	color: #000000;
	font-weight: bold;
}
img { /* defines the css for the <img> tag */
	border: 0px; /* set border width to 0 pixels */
}
Reply With Quote  
Join Date: Mar 2004
Posts: 57
Reputation: cuddlers89 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
cuddlers89 cuddlers89 is offline Offline
Junior Poster in Training

Re: Getting rid off the border round link images

  #4  
Sep 24th, 2004
Ok thanks, i sort of understand but have never used css before, the image is the only one on the page and there isn't very many links, so if css does what i think it does, i don't think its nessasary here.

Just to be clear, i don't want to get rid of the border around an image, i have allready done that, its when i set the image to a link that the border comes up

You probley have answerd my question but i just don't understand css.
Reply With Quote  
Join Date: Oct 2004
Location: ~ In ur Heart ~
Posts: 28
Reputation: Vinay is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Vinay's Avatar
Vinay Vinay is offline Offline
Light Poster

Re: Getting rid off the border round link images

  #5  
Oct 12th, 2004
hey no coding is necessary, you can do this setting using the Microsoft Frontpage, select the image >> right click >> properties >> in the border size =2, enter the value as "0". thats it ! now the image thats linked wud not have any border lines !!
Reply With Quote  
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation: Cup of Squirrel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Cup of Squirrel's Avatar
Cup of Squirrel Cup of Squirrel is offline Offline
Junior Poster

Re: Getting rid off the border round link images

  #6  
Oct 12th, 2004
Its as easy as

<img src="http://www.whatever.com/something.jpg" border="0">

But you can always do it the complicated way ;D
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC