Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!!!!

like image 245
theRadBrad Avatar asked Aug 01 '13 09:08

theRadBrad


People also ask

How do I align text to the bottom of a paragraph?

It help your content to keep in bottom then you can use css property text-align : right; I hope this will help you! Thanks You! we have to wrapped the text inside the paragraph tag and define a class .Now we have to first align the text to the right side of the page and then we can take the text to the bottom .

How to align text inside a block in HTML?

Use the text-align property to align the inner content of the block element. Use the bottom and left properties. The bottom property specifies the bottom position of an element along with the position property.

What is a paragraph in HTML?

A paragraph always starts on a new line, and is usually a block of text. The HTML <p> element defines a paragraph. A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.

How to indent the first line of each paragraph in HTML?

To indent the first line of each paragraph set a style rule using text-indent. For example, the following code indents the first line of each paragraph 30 points. Copy this code into the “ section of your page: This code indents the first line of each <P> element, but you’ll probably run into an annoying problem.


1 Answers

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>
like image 107
Johnson Smith Avatar answered Sep 24 '22 21:09

Johnson Smith