Memberi Bayangan Atau Shadow Header VioMagz V.3
Cara Memberi Bayangan Atau Shadow Pada Header Template VioMagz V.3 buatan Mas Sugeng.
Caranya :
1. Copy Kode ini
-webkit-box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
2. Cari kode ini dan tempelkan tepat dibawahnya :
$(header.background.kanan));
3. Hasilnya seperti ini :
/* HEADER */
#header-container {
background: $(header.background.kiri);
background: linear-gradient(to right, $(header.background.kiri), $(header.background.kanan));
-webkit-box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
position: absolute;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 999;
height: 48px;
}
#header-wrapper {
max-width: 1000px;
margin: 0 auto;
position: relative;
}
.header {
max-width: 400px;
float: left;
margin-right: 28px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.header h1.title, .header p.title {
font: $(header.font);
color: $(header.title.color);
margin: 0;
text-transform: uppercase;
line-height: 50px;
}
.header .description {
color: $(header.title.color);
margin: -10px 0 4px 0;
padding: 0;
font-size: 0.7em;
display: none;
}
.header a, .header a:hover {
color: $(header.title.color);
}
.header img {
display: block;
width: auto;
margin: 10px 0;
max-height: 28px;
}
#header-container {
background: $(header.background.kiri);
background: linear-gradient(to right, $(header.background.kiri), $(header.background.kanan));
-webkit-box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
box-shadow: 0 3px 10px 0 rgba(0,0,0,0.2);
position: absolute;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 999;
height: 48px;
}
#header-wrapper {
max-width: 1000px;
margin: 0 auto;
position: relative;
}
.header {
max-width: 400px;
float: left;
margin-right: 28px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.header h1.title, .header p.title {
font: $(header.font);
color: $(header.title.color);
margin: 0;
text-transform: uppercase;
line-height: 50px;
}
.header .description {
color: $(header.title.color);
margin: -10px 0 4px 0;
padding: 0;
font-size: 0.7em;
display: none;
}
.header a, .header a:hover {
color: $(header.title.color);
}
.header img {
display: block;
width: auto;
margin: 10px 0;
max-height: 28px;
}
4. Simpan. Lihat hasilnya.
Komentar
Posting Komentar