Posted by Wombatwal on 09/19/06 13:11
I am experimenting with placing images on a page using float and setting the
image size.
I am using an external style sheet. Below is my code in the external style
sheet, and below that is my code in the html page.
I have used different numbers for width and height plus px but the images
are huge, but the right ones, float to the left and right.
What am I doing wrong, I have scanned the internet with no help. As you can
see I am struggling with CSS.
external css sheet
#photo1 {width: 2; height: 2; float: left; }
#photo2 {width: 2; height: 2; float: right;}
html page
<body>
<div id="photo1"><img src="Twins.jpg"></div>
<div id="photo2"><img src="stuart2.jpg"></div>
--
Bruce
[Back to original message]
|