Would you please look at the code below and tell me why we should write height and width in 'body' tags and either write the height of images in 'head' tags?(any changes in height and width in 'body' tags won't affect the result by having the height in 'height' tags )
<html>
<head>
<style type="text/css">
img.normal {height:auto;}
img.big {height:50%;}
img.small {height:10%;}
</style>
</head>
<body>
<img class="normal" src="logocss.gif" width="95" height="84" /><br />
<img class="big" src="logocss.gif" width="95" height="84" /><br />
<img class="small" src="logocss.gif" width="95" height="84" />
</body>
</html>

New Topic/Question
Reply


MultiQuote




|