PDA

View Full Version : Image Too Big!



estacado15
Feb 26th, 2012, 01:32 PM
Hi, I really can't find anything wrong with my code, but the picture shows up too big? I've set the attributes to 600 px, so why is that size being ignored...
[CODE]
<!DOCTYPE html>
<html>
<head>
<title>Hello!</title>
<style type="text/css">
figure {
float: left;
width: 600px;
height: 200px;
padding: 5px;
margin: 20px;
border-right: 2px solid #eeeeee;}
</style>
</head>
<body>
<div class="figure">
<img src="sample.jpg" alt="Bracelets" title="Our bracelets look beautiful." />
</div>
</body>
</html>
[CODE]

ankur54
Feb 26th, 2012, 02:12 PM
Class defining like ::

.classname{
attributes;
............;
............;
}


and plz give css for img tag.........use this........



.figure img{

width: 600px;
height: 200px;
}