centre text html

Ads

 
 
 

Share on Google+Share on Google+

Java Coder
centre text html
2 Answer(s)      5 years and 2 months ago
Posted in : HTML

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

Ads
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
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... in HTML.In this example, the code elaborate you to create text area in HTML page
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
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
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
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...="Content-Type" content="text/html; charset=iso-8859-1">
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... Ministry of Culture. The purpose of the National Science Centre
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
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
Delhi Habitat World Convention Centre Information
Delhi Habitat World Convention Centre In a life full of chaos and confusion we... is the Habitat World Convention Centre of New Delhi. This habitat is situated at the centre of New Delhi over 9 acres of land. This habitat incorporates
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
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() { <
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  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 --%> <[email protected] 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 --%> <[email protected] contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
retriving data from sql server using jsp code and placing them in text fields of html code
retriving data from sql server using jsp code and placing them in text fields of html code  Hi, my question is how to retrieve data from sql server 2008 using a jsp file and place the values in the text fields of a html file
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 is the code ..I hope this will solve your problems : <!DOCTYPE HTML PUBLIC
Tutorials   
Java Spring Hibernate Struts Training I'm trying to pass counter data to another HTML page. How to display button as a link in vaadin? hi change navbar dropdown color in bootstrap How to remove the background color of bootstrap menu bar? How to change color of opened Bootstrap drop down toggle? Setting bootstrap container background color Help school all activities and admision process.. add one row after another date make a webpage HTMl HTMl Source code how to apply globalisation to a world wide asp.net application how to print HTML using javascript or Jquery How to recover from google panda update? How to survive google panda 4.0 update How to find if you have been hit by Panda 4.0 Design a web page using XHTML and JavaScript that does the followings: ffmpeg converting file mp4 to mov JavaScript How to Disable Catch-all Emails on CPanel z-index always on top What is Web hosting Database and HTML web development trainee Uploading files Image Gallery Image Gallery dropdown How to redirect from a HTML page? Easiest method for expiring the css and js headers HTML WITH AJAX VB 6 Read Web Page Header string palindrom using vbscript? html button How to add mod_deflate to apache without recompiling How to use place hoder in IE(version : 8) Html Software Question div align left css Fetching data from excel file on other website and display in interactive graph form where do I find the fix for tree view catalog not expanding and collapsing correctly for roseindia shopping cart 1.1 pass to next page to enter into a particular page only if the username,password and listbox value mtches hi Cricket stadium ticket booking design Need some help creating an order form. HTML div tag

Ads

 
Advertisement null

Ads