centre text html

centre text html

centre text HTML - How to centre any field in HTML Page

View Answers

March 23, 2012 at 1:58 PM

<!DOCTYPE html>
<html lang="de">
    <head>
        <title>Hello World</title>
        <style>

        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            width: 100%;
        }

        body {
            display: table;
        }

        .my-block {
            text-align: center;
            display: table-cell;
            vertical-align: middle;
        }
        </style>
    </head>
    <body>
    <div class="my-block">
       WORD1<br />
       WORDWORDWORDWORD2
    </div>
    </body>
</html>

March 23, 2012 at 3:12 PM

You can use <center> tag also.

<html>
<center>
Hello World
</center>
</html>

Ads









Related Tutorials/Questions & Answers:
centre text html
centre text html  centre text HTML - How to centre any field in HTML Page   <!DOCTYPE html> <html lang="de"> <head>...; html, body { height: 100%; margin: 0; padding
HTML text tag
HTML text tag   How to wrap text in HTML code without changing the text format
Advertisements
Formatting text in HTML
Formatting text in HTML  What are the tags in HTML to format text
html text linking
html text linking  How to link a text in HTM?   Link text for example... <a href="http://www.roseindia.net/">RoseIndia Tutorials</a>
HTML - Text Size
HTML - Text Size Description : The size is a attributes of font tag of html. It specifies the size of text. Syntax: <font size="4"> Bharat singh</font> Code : <!DOCTYPE html PUBLIC "-//W3C//DTD
Text Area in HTML
Text Area in HTML       Text  Area in HTML is used to write unlimited number of text... in HTML.In this example, the code elaborate you to create text area in HTML page
ModuleNotFoundError: No module named 'html-text'
ModuleNotFoundError: No module named 'html-text'  Hi, My Python... 'html-text' How to remove the ModuleNotFoundError: No module named 'html... have to install padas library. You can install html-text python with following
ModuleNotFoundError: No module named 'html_to_text'
ModuleNotFoundError: No module named 'html_to_text'  Hi, My Python... 'html_to_text' How to remove the ModuleNotFoundError: No module named 'html_to_text' error? Thanks   Hi, In your python
regarding out put display in html text field
regarding out put display in html text field  how to dispaly the output coming from servlet in a particular text field of html
Text Field in HTML
Text Field in HTML       The Text Field in HTML are one line areas, which enable the user... Text Field in HTML.In this Tutorial, the code create a text field in HTML page
ModuleNotFoundError: No module named 'odoo10-addon-html-text'
ModuleNotFoundError: No module named 'odoo10-addon-html-text'  Hi...: No module named 'odoo10-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo10-addon-html-text'
ModuleNotFoundError: No module named 'odoo10-addon-html-text'  Hi...: No module named 'odoo10-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo11-addon-html-text'
ModuleNotFoundError: No module named 'odoo11-addon-html-text'  Hi...: No module named 'odoo11-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo11-addon-html-text'
ModuleNotFoundError: No module named 'odoo11-addon-html-text'  Hi...: No module named 'odoo11-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo12-addon-html-text'
ModuleNotFoundError: No module named 'odoo12-addon-html-text'  Hi...: No module named 'odoo12-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo12-addon-html-text'
ModuleNotFoundError: No module named 'odoo12-addon-html-text'  Hi...: No module named 'odoo12-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo8-addon-html-text'
ModuleNotFoundError: No module named 'odoo8-addon-html-text'  Hi...: No module named 'odoo8-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-html-text' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo9-addon-html-text'
ModuleNotFoundError: No module named 'odoo9-addon-html-text'  Hi...: No module named 'odoo9-addon-html-text' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-html-text' error? Thanks   Hi
Convert Text to HTML
Convert Text to HTML       In this section, We are discussing the conversion of text into html file .This program functionally provides you converting text to html file by using
Create an HTML file AddCookies.html which contains four text boxes
Create an HTML file AddCookies.html which contains four text boxes  Create an HTML file AddCookies.html which contains four text boxes .When user enters the values in these text boxes and press the submit button, the values
Drop-down text selection in jsp/html
Drop-down text selection in jsp/html  Hi, I am trying to create JSP page where I have two drop-downs. There are two-sets of data - First set Categories- Movies, Books, Music and the Second set Genres- Action,Comedy,Romantic
Fetched Record from database show into text field of html page
Fetched Record from database show into text field of html page  hi, i..., and also have html page with all above mentioned field i have submit 20 record from front end of html file to my database like that 001 sajal Noida North 002
How to Validate dynamically created text box in HTML using Javascript
How to Validate dynamically created text box in HTML using Javascript  Here is the HTML code to create text boxes dynamically. It works properly.... And also how to validate the text boxes created dynamically. <html>
upload the text file through html and insert those data into the table
upload the text file through html and insert those data into the table  i want to take input form a text file.there is a table in database oracle... into table.now i want to upload the text file through html and insert those data
centre of applied data science
centre of applied data science  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: centre... that I can learn the topic "centre of applied data science". Also tell
the centre of applied data science
the centre of applied data science  Hi, I am beginner in Data...: the centre of applied data science Try to provide me good examples or tutorials links so that I can learn the topic "the centre of applied data science"
ModuleNotFoundError: No module named 'centre_config'
ModuleNotFoundError: No module named 'centre_config'  Hi, My... 'centre_config' How to remove the ModuleNotFoundError: No module named 'centre_config' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'centre_config'
ModuleNotFoundError: No module named 'centre_config'  Hi, My... 'centre_config' How to remove the ModuleNotFoundError: No module named 'centre_config' error? Thanks   Hi, In your python
How to get the text from textarea in HTML and store it in database using javascript and jsp
How to get the text from textarea in HTML and store it in database using javascript and jsp  How to get the text from textarea in HTML and store it in database using javascript and jsp <script> function str() { <
HTML
HTML  in html how can we can upload the file <tr> <...; <input type="text" name="Video of the work:" size="30"> </b>... the file give me the code for this in html and java
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html

Ads