Page 64 - Modu Web Kelas XI
P. 64

59



                           body
                           {
                           background: url('path-to-the-image');
                           }
                     Repeat Background Image

                           body
                           {
                           background: url('path-to-the-image') repeat-x; /* repeat horizontal */
                           background: url('path-to-the-image') repeat-y; /* repeat vertical */
                           }
                     Background Image Position

                           body
                           {
                           background: url('path-to-the-image') 0px 100px;
                           background: url('path-to-the-image') top center;
                           }
                     Background colour dan Image
                           body
                           {
                           background: #f5f5f5 url('path-to-the-image') no-repeat top left;}

















                                            Tampilan Web dengan CSS Background

                     7.4. CSS Table

                     Dalam mendesign halaman web, tabel sering kita gunakan untuk menampilkan data-data

                     berurutan dalam jumlah yang banyak. Untuk memudahkan user melihat data tersebut dan
                     mempercantik  tampilan,  tabel  tersebut  dapat  kita  tambahkan  CSS  Contoh  script  css

                     sebagai berikut :



                     Modul Pemrograman Web SMKN 2 Mojokerto
   59   60   61   62   63   64   65   66   67   68   69