Tài liệu Creating a Menu with CSS

Thảo luận trong 'Thiết Kế Web' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    173
    Điểm thành tích:
    0
    Xu:
    0Xu
    The new menu you will be creating will have a significant
    amount of CSS. To keep your design workspace clutter free let’s
    go ahead and create a second CSS file. The great thing with
    HTML is that you can have multiple CSS files in a single web
    page.
    Add the file “menu.css” to the CSS folder. Open “default.html”
    and add the following link below your current “style.css” link:
    <link href=“css/menu.css” rel=“stylesheet” type=“text/css”>
    The next step is to create the images you will need in your
    menu. Figure 2.15Proj shows a screenshot of the images and an
    explanation for each image is as follows (see also Figure 2.16Proj):
    1. center.png—center background image
    2. center_hassub.png—center background image when you roll
    cursor over it
    3. left.png—left background image
    Figure 2.14Proj The new menu
    will start as a list with sublists
     
Đang tải...