My image and border fit well on 3 sides, except for the left border-side and I can't for the life of me figure out what I did wrong. Isn't it supposed to fit automatically when the css code is wrapping the image-tag?
The "surrounding" border only shows up in FF and not IE. Can anyone see why that is happening? I did use the "px" and all that to make it as much compatible as possible for these browsers :-(
I am practicing CSS and HTML, because right now my website is not really styled at all.
This is just a practice piece, but still. If I can't make this one work, then I won't be ale to make it work on my website either!
And please feel free to tell me if I made other errors as well, I'd really appreciate that :-)
Take care!
*Louise
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>The HTML Experiment!</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<style type="text/css">
body{
background-color:#E64A00;
border:double; color:#800000; width:700px;
margin-left:5%;
margin-right:50%;
padding:40px;
}
h1{
font-family:arial; style:normal; color:#FFFFFF; font-size:80px; text-decoration:underline;
}
p{
font-family:arial; font-style:italic; color:#FFFFFF; size:20px;
}
.class1 A{
font-style:normal; color:#FFFFFF; text-decoration:none;
}
.class1 A:hover{
font-size: 30px; font-weight:bold; color:#FFFFFF; text-decoration:underline;
}
.class2 A{
font-style:normal; color:#000000; text-decoration:none;
}
.class2 A:hover{
font-size: 30px; font-weight:bold; color:#000000; text-decoration:underline;
}
.dragon {
border-style:ridge; border-color:#00A800; border-width:10px; }
</style>
</head>
<body>
<h1>The Experiment</h1>
<p>
blaaaaahdiblaaaaah! <br>
<span class="class1"><a href="http://www.youtube.com" target="_blank">youtube</a></span><br>
and more blaaah<br>
<span class="class2"><a href="../home.html">Home</a></span><br></p>
<div class="dragon"><img src="dragon head_001.jpg" width="170" height="170" alt="Dragon"/></div>
</body>
</html>