Bagaiamana cara seting width dan height header web sekolah_ciDibuat
Login Terakhir
1 Bulan lalu,
Telah Dilihat 1799 Kali
| |
Sultan Account |
|
|
Reza Dalimunthe
Mengatakan :
Sultan Account
Assalamualaikum Warahmatullahi Wabarakatuh... mohon petunjuk untuk seting width dan height headernya sekolah_ci terimakasih sebelumnya Ada 1 File Kiriman : 1. cara_seting_width_dan_height_headernya.jpg (367 KB) |
|
| Bukhori Muslim commented on 03 Mei 2018 15:17:10 Sultan Account |
|
|
|
Assalam,.. buka file "application/views/phpmu-sekolah/header.php"
baris 2 sampai 10 cari ini :
echo "<div class='wrapper'>
<div class='header-logo'>";
$iden = $this->model_utama->view('identitas')->row_array();
$logo = $this->model_utama->view_ordering_limit('logo','id_logo','DESC',0,1);
foreach ($logo->result_array() as $row) {
echo "<a href='".base_url()."'><img width='100%' src='".base_url()."asset/logo/$row[gambar]'/></a>";
}
echo "</div>
</div>
Saya coba ubah headernya tinggi 100px saja, jadinya seperti ini setelah modifikasi :
echo "<div class='wrapper' style='height:100px'>
<div class='header-logo' style='height:100px'>";
$iden = $this->model_utama->view('identitas')->row_array();
$logo = $this->model_utama->view_ordering_limit('logo','id_logo','DESC',0,1);
foreach ($logo->result_array() as $row) {
echo "<a href='".base_url()."'><img width='100%' style='height:100px' src='".base_url()."asset/logo/$row[gambar]'/></a>";
}
echo "</div>
</div>
Semoga bermanfaat. :) |
|
| Reza Dalimunthe commented on 03 Mei 2018 16:44:51 Sultan Account |
|
|
|
Assalam,.. Solved gan.. Semoga bermanfaat juga utk teman2 yg lain |
|