Tips on CSS + Div development websites

Source: Internet
Author: User

I have been working on a website developed with CSS + Div over the past few days. This is because I have not yet found a job and want to be a website, so I can do a job well. I also learned a lot in the development process. I am working on an enterprise website, which is relatively simple and uses ASP. I believe many people will use this technology. Back to the truth, I actually found that all the things I could do with table in the past can be done with Div and CSS. In the layout process, I used a lot of list tags, and I felt that they were quite useful. In the layout, if you want to keep the page fixed and centered, you need to write the body, HTML {text-align: center ;}, in # container {text-align; left; width: 900px ;}.

There is also a way to make the page fixed width and centered, you can write, body, HTML {padding: 0px; margin: 0px ;}# container {position: relative; left: 50%; width: 1000px; margin_left:-500px ;}

Related Article

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.