Tuat's Blog

It is my diary

Web design

Icon menu bars html

Hello everyone, today I will guide you to create a menu bar with html and css.
This is the first article in my Web design series. Hope will help everyone.
Now we will start the lesson today.
Now we will create a simple menu bar like the image below. The menu has two types: vertical and horizontal

Icon menu bars html

First, you must add the icon library to the html page. Here I use the fontawesome 4.7 library.

Icon menu bars html

1) Verticle menu

Add this code to the body tag

Icon menu bars html

Next, add the following css classes

Icon menu bars html

And the results are as follows

Icon menu bars html

2) Horizontal menu

Add this code to the body tag

Icon menu bars html


Next, add the following css

Icon menu bars html

And the results are as follows

Icon menu bars html

And that's all for today. You can view or download the source code here

https://github.com/trananh2001/css-tuto/tree/master/icon%20bar

See you in the next article


Bài viết của cùng thư mục(Web design
CSS Outline Button
CSS Outline Button(2018-12-27 00:19)

Vui lòng nhập chính xác dòng chữ ghi trong ảnh
 
<Chú ý>
Nội dung đã được công khai, chỉ có chủ blog mới có thể xóa

< May 2025 >
S M T W T F S
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
カテゴリ
QRコード
QRCODE
アクセスカウンタ
読者登録
Chúng tôi sẽ gửi những bài viết mới nhất đến địa chỉ email đăng ký. Xóa Tại đây
Số lượng người đọc hiện tại là 3 người
プロフィール
Anh Tuat
Anh Tuat