CSS : Menggabungkan seluruh materi
Menggabungkan seluruh materi
Protect Natural Resources,
Utilize Solar Electric Power
Solar
energy, wind energy, geothermal energy, hydropower and
biomass are some of the renewable sources of energy.
Using of renewable sources of energy is good because
these sources offer an environmentally friendly option
than utilizing fossil fuels.
There will be an improve energy
security and energy independence if people use renewable source of energy. Also renewable sources of energy are
the cleanest and safest energy sources.
The well-known
source of energy which is the solar energy is an
environment-friendly and endless renewable source of
energy. .
Solar power doesn't result in
the emission of harmful carbon dioxide unlike the use of
fossil fuels. The sun will be the unlimited source of
energy and with right technologies can provide sufficient
electricity that could be used in every single household
or even in commercial and industrial properties.
The use of solar power has a
positive effect in the environment because taking
advantage of solar energy does not contribute to climate
change, acid rains or any kind of pollution. When
transformed from solar radiations, solar energy may
possibly be converted to thermal energy or electric
power. This may also be employed in a number of
applications like in agriculture and analysis.
At present, solar power
is being utilized in two areas namely for the production
of thermal energy which can heat up water and producing
of electric power by utilizing the photovoltaic cell.
Photovoltaic cells or PV cells captures
solar energy then transforming it into electricity.Advertisement
These cells convert sunlight
into electricity by employing the energy developed when
photons from sunlight push electrons into greater state
of energy. Yet solar power is not only limited to thermal
energy and electricity simply because currently, numerous
devices which are powered by solar energy exist in the
market.
Solar energy is an excellent source of
supplying power to homes and companies and by utilizing
solar power you're not merely protecting the environment
from becoming polluted but also you are saving the rest
of the earth’s natural resources.
Capturing solar energy does not
contribute any pollution and does not harm the
atmosphere.
Member
Login
method=”post”>class=”txtBox” value=”-nama-anda-” />
class=”txtBox” value=”-password-” />
Register here
value=”” class=”login” />
class=”categories”>Categories
- href=”#”>Software
- href=”#”>Hardware.
- Belajar
CSS - Belajar
PHP - Belajar
WordPress - Plugin
WordPress - WP
Themes - href=”#”>Download
- href=”#”>Testimonial
- href=”#”>Berita
Beri nama index.html untuk file HTML, kemudian coba buka file tersebut… Berikut jika dibuka di Browser :
Berikut ini file CSS yang sudah saya gabung :
margin: 0;
padding: 0;
}
body {
font-family:Verdana;
font-size:12px;
}
body #container{
width:1000px;
margin:0 auto;
background-color:#EBEBEB;
}
#header{
background-image:url(../images/header.jpg);
background-repeat:no-repeat;
background-position:center;
background-color:#FFFF99;
width:1000px;
height:160px;
}
/*——-menu———–*/
#menu{
background-color:#993300;
width:1000px;
text-align:center;
padding-top:10px;
padding-bottom:10px;
}
#menu a:link{
background-color:#FFFF00;
color:#000099;
text-decoration:none;
font-size:14px;
}
#menu a:hover{
background-color:#0000CC;
color:#FFFFFF;
font-weight:bold;
text-decoration:underline;
font-size:16px;
}
#menu a:active{
color:#000000;
background-color:#FFFFFF;
font-weight:100;
}
/*——-menu———–*/
/*——-content———–*/
#content{
background-color:#FFFFFF;
width:675px;
float:left;
padding:15px 10px 15px 15px;
letter-spacing:1px;
word-spacing:10px;
text-align:justify;
}
h1 {
text-decoration:underline;
text-transform:uppercase;
font-family:Arial;
font-size:30px;
padding-bottom:20px;
}
.indent:first-letter {
font-size:70px;
color:#0000CC;
font-weight:bold;
float:left;
}
.rtk {
text-decoration:blink;
font-weight:bold;
color:#FF0000;
background-color:#CCCC00;
}
#content blockquote{
font-style:italic;
font-weight:bold;
width:600px;
margin:auto;
margin-top:15px;
margin-bottom:15px;
padding:5px;
border-color:#999999;
border-style:ridge;
border-width:1px;
background-color:#CCCCCC;
}
/*——-content———–*/
/*——-colom Right———–*/
#right{
width:299px;
background-color:#FFFFFF;
float:left;
}
.member{
width:264px;
height:67px;
background:url(../images/member_login.gif) 0
10px no-repeat;
margin: 0 auto;
font-size:20px;
color:#FFCC00;
text-indent:50px;
line-height:50px;
}
form{
background:url(../images/memberlogin_bg.gif)
repeat-y;
width:228px;
padding:0 18px 0 18px;
margin:0 auto;
}
form input.txtBox{
width:206px;
height:25px;
border-left:#808080 solid 1px;
border-top:#808080 solid 1px;
border-right:#D4D0C8 solid 1px;
border-bottom:#D4D0C8 solid 1px;
color:#000000;
background-color:#FFFFCC;
margin:5 0 17px 0;
padding:0 0 0 20px;
}
form a{
font-size:12px;
font-weight:bold;
color:#FF6600;
text-decoration:underline;
padding:0 0 0 14px;
float:left;
background:url(../images/register_here_bg.gif)
0 5px no-repeat;
}
form a:hover{
text-decoration:none;
}
form input.login{
background:url(../images/btn_login.gif) norepeat;
width:53px;
height:13px;
border:none;
cursor:pointer;
float:right;
}
.bawah{
background:url(../images/memberlogin_bot.gif)
no-repeat;
width:264px;
height:25px;
margin:0 0 5px 0;
margin:auto;
}
.categories{
font:bold;
line-height:40px;
font-size:24px;
color:#FFFFCC;
background-color:#FF9900;
width:265px;
padding:0 0 0 17px;
margin-top:30px;
margin-left:17px;
}
ul{
width:238px;
padding:0 0 0 17px;
}
ul li{
display:block;
background:url(../images/dot.gif) bottom
repeat-x;
height:25px;
width:238px;
}
ul li a{
background:url(../images/arrow.gif) 0 7px norepeat;
font-size:14px;
color:#000000;
text-decoration:none;
margin:0;
padding:3 0 3 14px;
display:block;
}
#right ul li a:hover{
color:#FFFFFF;
background-color:#FF9900;
}
/*——-colom Right———–*/
/*——-footer———-*/
#footer{
background-image:url(../images/footer.gif);
width:1000px;
height:128px;
float:left;
}
#bottom{
text-align:center;
font-family:Geneva;
font-size:12px;
margin:25px 0 0 0;
font-weight:bold;
letter-spacing:1px;
word-spacing:8px;
}
#bottom a{
color:#FFFFFF;
}
#bottom a:link{
text-decoration:none;
}
#bottom a:hover{
text-decoration:underline;
color:#FFFF00;
}
#copy{
margin:25px 0 0 0;
font-family:verdana;
color:#FFFFCC;
font-size:10px;
text-align:center;
}
#copy a {
color:#FFFFCC;
}
#footer #copy a:link{
text-decoration:none;
}
#footer #copy a:hover{
text-decoration:underline;
}
Penjelasan :
- Saya menggabungkan langsung seluruh perintah CSS, lalu jika ada perintah saya sama, semisal untuk body, anda tidak perlu untuk mengulang perintah tersebut.
- Pada masing-masing perintah CSS sudah saya beri tanda untuk masing-masing penjelesan mulai dari Header sampai footer, contohnya kode tersebut dengan memberikan komentar /*——-menu———–*/
- Untuk masing-masing perintah CSS penjelasan ada dalam post sebelumnya
Membuat halaman yang lain
Anda perlu membuat halaman yang lain yaitu :
- Produk (produk.html)
- Artikel (artikel.html)
- Member (member.html)
- Kontak (kontak.html)
- Testimonial (testimoni.html)
- About Us (about-us.html)
Sebelumnya coba anda beri Link untuk menu Home-Produk-MemberTestimonial-Kontak-About Us terlebih dahulu pada file index.html
Pada file HTML saya sudah beri link, sebagai cuplikan silahkan lihat ini :
Begitu pula untuk footer anda beri link yang sama dengan Menu Navigasi atas..
Copy file index.html dan rename dengan nama produk.html, begitu juga copy lagi dan rename dengan nama sesuai dengan Nama Menu.
Atau seperti dibawah ini :
Produk = (produk.html)
Artikel = (artikel.html)
Member = (member.html)
Kontak = (kontak.html)
Testimonial = (testimoni.html)
About Us = (about-us.html)
Kemudian anda bisa rubah halaman Konten pada halaman Home dengan Konten sesuai dengan kebutuhan . Sekarang anda coba dengan klik 2 kali pada index.html
Berikut screenshots hasil akhir :
Jangan Lupa like dan share.
Belajar Pemrograman di fajaryusuf.com aja. 🙂
MATERI CSS
Materi ke-1 : Fungsi HTML dan CSS pada WEB
Materi ke-2 : Aturan penulisan CSS
Materi ke-3 : Cara menggabungkan HTML dan CSS
Materi ke-4 : Property pada CSS
Materi ke-5 : Tips Mahir Menguasai CSS
Materi ke-6 : Membuat Desaign Layout
Materi ke-7 : Membuat Menu Navigasi
Materi ke-8 : Mengedit Konten
Materi ke-9 : Mengedit Kolom Right
Materi ke-10 : Mengedit Footer
Materi ke-11 : Menggabungkan Seluruh Materi