Write a simple, Div can center the HTML

Source: Internet
Author: User

<!--HTML5 Standard start-to-

<!doctype html>

<meta http-equiv= "Conten-type" content= "text/html" charset= "GBK" >

<!--three elements of the current page--<title>hello world</title> <meta name= "keyworlds" content= "Hello World" > < Meta name= "description" conten= "" >

<style type= "Text/css" > <!--Initialize tag elements--*{margin:0;padding:0; font-sise:12px;}

. top{width:100%;height:100px;background:red;}. Top t_header{margin:0 auto;  width:1000px;  height:100px;  Border:solid Blue 1px; Text-align:center; }

</Style>

<div class= "Top" > <div class= "t_header" > Center layer <br/>

2016-1-18 experiment, how to write an HTML with a simple specification of Notepad, and how to simplify the specification Div Center. </div>

<div>

</body>

Write a simple, Div can center the HTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.