Learning Web Standard 1: centered and compatible with ie5.5 +/FF/a Google browser page layout

Source: Internet
Author: User

I stayed at home for too long, so I was a little interested in web standards when I was idle!

 

This is mainly because a friend's cousin added QQ friends. She was an artist, so she had some browser compatibility layout problems!

 

Sometimes it's hard to tell her what I think!

 

A good sentence: A man cannot say no! Haha, so...

 

 

I recently spent some time doing this! Of course, what results will be posted on the blog!

 

<HTML xmlns = "http://www.w3.org/1999/xhtml"> <br/> <pead> <br/> <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8 "/> <br/> <title> No title page </title> <br/> <MCE: style type =" text/CSS "> <! -- <Br/> Div {<br/> margin: 0; <br/> padding: 0; <br/>}< br/> body {<br/> font-family: ""; <br/>}< br/> # context {<br/> width: 100%; <br/> text-align: center; <br/>}< br/># header {<br/> border: 1px # 96c double; <br/> text-align: center; <br/> padding-bottom: 5px; <br/> width: 760px; <br/> Height: 40px; <br/> margin-left: auto; <br/> margin-Right: auto; <br/>}< br/> # context2 {<br/> Height: 300px; <br/> width: 760px; <br/> margin-left: auto; <br/> margin-Right: auto; <br/> text-align: center; <br/>}< br/> # txt1 {<br/> border: 1px # 96f double; <br/> text-align: center; <br/> float: left; <br/> width: 495px; <br/> Height: 280px; <br/> margin-top: 10px; <br/> margin-Right: 5px; </P> <p >}< br/> # txt2 {<br/> border: 1px # 93c double; <br/> text-align: center; <br/> float: Left; <br/> Height: 280px; <br/> margin-top: 10px; <br/> width: 255px; <br/>}< br/> # footer {<br/> border: 1px # CCC double; <br/> width: 760px; <br/> Height: 20px; <br/> text-align: center; <br/> margin-left: auto; <br/> margin-Right: auto; <br/>}< br/> </pead> <br/> <body> <br/> <Div id = "context"> <br/> <Div id = "Header"> I am the header </div> <br/> <Div id = "context2"> <br/> <Div id = "txt1"> left </div> <br/> <Div id = "txt2"> right </div> <br/> <Div id = "footer"> I am the bottom </div> <br/> </body> <br/> </ptml> <br/>

 

 

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.