You are here: sizing image in css « HTML « IT news, forums, messages
sizing image in css

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация