CSS Multiple Floating Elements

The Web Book

Products


CSS Multiple Floating Elements Example Code

HTML CODE ........................... <!DOCTYPE html> <html> <body> <h3>Products</h3> <img src="product1.jpg"> <img src="product2.jpg"> <img src="product3.jpg"> <img src="product4.jpg"> </body> </html> CSS CODE ......................................................... img {float:left; width:100px; height:140px; margin:5px;} Back