Forum Moderators: open
would anyone please help me with:
how would i give an image a solid coloured border in html?
<img border=1px solid #FF1493; src=http://example.com/35ji9et.gif>
<img src=http://example.com/35ji9et.gif {
border-color: #666666;
border-bottom: 1px solid;
}>
[edited by: encyclo at 12:47 pm (utc) on Dec. 9, 2006]
[edit reason] switched to example.com [/edit]
try it like this...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>image border</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
#myimage {
border:1px solid #ff1493;
</style></head>
<body><div>
<img id="myimage" src="http://i14.tinypic.com/35ji9et.gif" alt="" />
</div></body>
</html>
You might find this site useful for furthering your CSS skills...
[w3schools.com ]
birdbrain
No problem, you're welcome. ;)