Blogs of Samraj Singh

Friday, July 10, 2009

Horizontal aligning of HTML elements using CSS

Center Align:
margin-left : auto;
margin-right : auto;

Right Align
float : right;

Left Align:
float : left;
Posted by srsingh at 6:50 PM
Labels: CSS

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2013 (11)
    • ►  January (11)
  • ►  2011 (9)
    • ►  March (3)
    • ►  February (6)
  • ►  2010 (9)
    • ►  July (7)
    • ►  January (2)
  • ▼  2009 (34)
    • ►  December (8)
    • ►  November (2)
    • ►  October (6)
    • ►  September (9)
    • ▼  July (9)
      • Useful Links
      • Optimizing code while styling HTML table rows
      • Different ways to determine a browser
      • Horizontal aligning of HTML elements using CSS
      • Importing a css file in a css file
      • Few Guidelines while writing CSS
      • Fix : Appearing of dotted borders when we click an...
      • Different ways of creating CSS rules
      • CSS code to reduce image brightness by 50%