HTML: I want to position this paragraph text to bottom of my page?

theRadBrad picture theRadBrad · Aug 1, 2013 · Viewed 65.9k times · Source

hi,

Currently the text is at the top of my website but i want it bottom;

 <p style="text-align:relative;">this is best day ever!this is best day ever!this is best day ever!<p> 

when i edit it and add text-align:bottom it dosent works!!!!

Answer

Johnson Smith picture Johnson Smith · Aug 1, 2013

Try this code :

  <html>
        <head>
            <title>test</title>
        </head>
        <body>
            <div style="position: relative">
                <p style="position: fixed; bottom: 0; width:100%; text-align: center"> TEXT YOU WANT
                </p>
            </div>
        </body>
    </html>