Difference between revisions of "Helpfull CSS classes"

From WikiName
Jump to: navigation, search
(Created page with "Here are the list of helpful CSS classes that are there to primarily help you in building business sites. *'''alignleft''':Left aligns an element. *'''alignleft''':Left aligns...")
 
Line 3: Line 3:
 
*'''alignleft''':Left aligns a element.
 
*'''alignleft''':Left aligns a element.
 
*'''aligncenter''':Centre aligns a element.
 
*'''aligncenter''':Centre aligns a element.
 +
*'''clear''':No floating elements allowed on either the left or the right side
 +
*'''clearfix''':Uh oh... this image is taller than the element containing it, and it's floated, so it's overflowing outside of its container! Boo. Fix this by adding clearfix to the container div.
 +
*'''shadow''': Adds shadow effect to the element. Usually used with img tag.

Revision as of 15:39, 24 March 2015

Here are the list of helpful CSS classes that are there to primarily help you in building business sites.

  • alignleft:Left aligns an element.
  • alignleft:Left aligns a element.
  • aligncenter:Centre aligns a element.
  • clear:No floating elements allowed on either the left or the right side
  • clearfix:Uh oh... this image is taller than the element containing it, and it's floated, so it's overflowing outside of its container! Boo. Fix this by adding clearfix to the container div.
  • shadow: Adds shadow effect to the element. Usually used with img tag.