Switch to full style
HTML code examples
Post a reply

change image float

Thu Feb 16, 2012 4:09 pm

Following example shows you how to control the float of image using CSS properties to left or right.
Code:
<html>
<
head>
<
title>Change the float of the img</title>
<
style type="text/css">
{
   
background:#4BF
}
img.leftImage {
 
floatleft
}
img.rightImage {
 
floatright
}
</
style>
</
head>

<
body>
  <
p>
   
In this example we change the flot of the img tag.
  </
p>
  <
pLeft float image </p>
  <
img src="site_logo.gif" class="leftImage" alt="leftImage" />

  <
p align="right">Right float image  </p>
  <
img src="site_logo.gif" class="rightImage" alt="rightImage" />
 
</
body>
</
html>

   
 




Post a reply
  Related Posts  to : change image float
 Automatic change to webpage background image     -  
 Change the border color of image and its link     -  
 Change Image File Size (Height And Width) While Uploading     -  
 Image-Viewer-Image Processing-Filters-Noise-enhancements     -  
 Move image in front of a background image     -  
 different between cfa image and gray level image     -  
 PNG image to the image you generated     -  
 change the MAC address     -  
 Change the properties of div tag     -  
 change timezones in php     -  

Topic Tags

HTML Image