Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html><head>
- <title>Text - Aligned Left, Right and Center</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <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>
- <div style="width: 800px; margin: 0 auto; border: 1px solid #f00;">
- <p style="float: left;">This text is aligned left.</p><p style="float: right;">While this text is aligned right!</p>
- <p style="text-align: center;">This text is centered.</p>
- </div>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement