Advertisement
PayneLess_Designs

PayneLess Designs: Text - Aligned Left, Right and Center

Jan 31st, 2011
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <title>Text - Aligned Left, Right and Center</title>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. </head>
  6. <body>
  7. <p style="width: 90%;"><span style="float: left;">This text is aligned left</span> <span style="float: right;">while this text is aligned right!</span></p>
  8.  
  9. <div style="width: 800px; margin: 0 auto; border: 1px solid #f00;">
  10. <p style="float: left;">This text is aligned left.</p><p style="float: right;">While this text is aligned right!</p>
  11. <p style="text-align: center;">This text is centered.</p>
  12. </div>
  13. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement