Chapter 4 Project Practice-fixed PC deployment [4], practice-pc

Source: Internet
Author: User

Chapter 4 Project Practice-fixed PC deployment [4], practice-pc

Learning points:

1. Popular tourist areas

2. Title INTRODUCTION AREA

3. Tourism Project Area

Lecturer: Li Yanhui

 

This chapter describes how to use HTML5 and CSS3 to build Web pages. The first project is implemented with a fixed PC layout.

1. Popular tourist areas

In this lesson, we will discuss the most important part of the homepage, the tourist area. This section consists of two parts. One is a big title, indicating a popular tourist area. The second is the image display area of the tourism project. The details are as follows:

<Div id = "tour">... </div>

// Tourism parent Element

#tour {    width: 1263px;    height: 1200px;    margin: 30px auto;    text-align: center;}

Ii. Title INTRODUCTION AREA

The title area can be divided into Big titles and content, so <section> is more suitable.

// Title

<Div id = "tour"> <section class = "center"> 

// Title CSS

#tour .center {    text-align: center;}#tour .center h2 {    margin: 10px 0;    font-size: 45px;    letter-spacing: 2px;    color: #666;}#tour .center p {    color: #666;    margin: 10px 0;}

3. Tourism Project Area

The project area is an illustration of an image and a piece of text. Nine projects are arranged in 3x3.

// Tourism Project Area

<Div id = "tour"> <section class = "center"> 

// Tourism project area CSS

#tour {    width: 1263px;    height: 1200px;    /*background-color: #ccc;*/    margin: 30px auto;    text-align: center;}#tour .center h2 {    font-size: 45px;    letter-spacing: 2px;    color: #666;    margin: 10px 0;}#tour .center p {    color: #666;    margin: 10px 0;}#tour figure {    border: 1px solid #ddd;    display: inline-block;    padding: 4px;    border-radius: 4px;    margin: 15px 12px;    width: 380px;    text-align: left;    position: relative;}#tour figure img {    vertical-align: middle;}#tour figcaption {    color: #777;    line-height: 1.5;    letter-spacing: 1px;    font-size: 14px;    padding: 7px 0 5px 0;}#tour .title {    color: #333;    font-weight: normal;}#tour .sat {    float: right;    font-size: 13px;    color: #999;    font-style: normal;    position: relative;    top: 5px;    right: 5px;}#tour .price {    color: #f60;    font-size: 14px;}#tour .price strong {    font-size: 20px;    letter-spacing: 1px;}#tour .type {    width: 90px;    height: 25px;    line-height: 25px;    font-size: 14px;    text-align: center;    color: #fff;    background-color: #59b200;    position: absolute;    top: 4px;    left: 4px;}

 

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.