Tuesday, 16 April 2013

CSS: In order to appear image properly as you want.

Tips:
  1. In order to appear image in right place always use: float
  2. In order to image appear all the time use the background-image property rather than <img> tag. Set the height & width as well. Sometimes <img> tag does not display the image.
  3. If any image with text then it is better to use two different image file. For example shopping cart use One file: shopping cart image with bold text edit by photoshop and other file shopping cart image with normal text.
  4. There is one css tag, vertical-align: top can be use to inline the image and text. Display: Inline also helps

No comments:

Post a Comment