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>









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
text formatting tag in HTML
text formatting tag in HTML  What are the various text formatting tag in HTML
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... is used to create a text area in HTML page.  ADS_TO_REPLACE_2  
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
Text Field in HTML
Text Field in HTML       The Text Field in HTML are one line areas, which enable the user... of  component is a text field.ADS_TO_REPLACE_2 The code is saved with .html
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
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 '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 '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
Copy text file in a HTML form.
Copy Text File in a HTML form For copying a text file from one source to other destination in HTML form, you will have to create a HTML form and call the form...;/title> <meta http-equiv="Content-Type" content="text/html
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
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"
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
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 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
<html:text structs - Struts
Button text is not displaying properly in jre 1.6.0_22 when html tags are used in the textstring
Button text is not displaying properly in jre 1.6.0_22 when html tags are used in the textstring  using html string to jbutton text is not working in Java 1.6.0_22 when browser is using the existing java console this.setText
To get the value of more than one text box in an HTML page to a jsp page - JSP-Interview Questions
To get the value of more than one text box in an HTML page to a jsp page  An html file has a text box as To get the value of this text box in a JSP.... With regards   All controls(Text box, combo box....) in an html file
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
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
how to retrieve text and images from mysql database and show on html page using jsp servlet
how to retrieve text and images from mysql database and show on html page using jsp servlet  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Insert title here h3
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is SPAN in HTML
html
html   HTML document with Javascript to count the number of vowels in a text typed in text area. please send the code.   Hi Ravi Here... HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD>
HTML
HTML  What is HTML? What is a Hypertext link
HTML
HTML  What is HTML? What is a Hypertext link
Html
Html  What is HTML? What is a Hypertext link
HTML
HTML  What is BODY in HTML document
html
html  diffrence between html and xml
html
html  How to add the calendar in html code
About National Science Centre of Delhi
The National Science Centre of Delhi The National Science Centre in Delhi... of scientific marvels and studies from all walks of life. The National Science Centre... Centre is to introduce kids to a variety of great things in the world of science
Html
Html  can we send data from one html page to another html page...:</td> <td><input type=text name=firstname size=10></td>...=text name=lastname size=10></td> </tr> <tr> <td>Age

Ads