Kamus Philander

Materi
Topik
Konten
CMD
tasklist
taskkill /?
CMD
cd %appdata%
Code Igniter 4
composer create-project codeigniter4/appstarter nama_aplikasi --no-dev
Code Igniter 4
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
<FilesMatch "^\.">
Require all denied
Satisfy All
</FilesMatch>
CSS
font-family -> jenis { font-family: arial, verdana, sans-serif;} -> sans-serif(tidak memiliki kaki)/serif (ada kaki) : generic family
font-size -> ukuran ->px, %, em
font-weight -> ketebalan -> lighter, normal, 100-900, bold, bolder
font-variant -> small caps -> normal, small-caps
font-style -> cetak miring -> normal, italic, oblique (memiringkan font)
line-height -> spasi antar baris ->normal, px, em
shorthand -> font : font-style font-variant font-weight font-size/line-height font-family -> yang wajib font-size dan font-family
CSS
color -> warna -> nama warna, hexadecimal, rgb (bisa isi transparan)
text-align ->format -> left, right, center, justify
text-indent -> indentasi paragraf (menjorok ke dalam) ->px, %
text-decoration ->none, underline, overline, line-through
text-transform -> none, lowercase, uppercase, capitalize
letter-spacing -> jarak antar huruf -> normal, px
word-spacing -> jarak antar kata -> normal, px
CSS
background-color ->nama warna, hexadecimal, rgb (bisa isi transparan)
background-image -> url(../gambar/bg.png)
https://www.toptal.com/ designers/subtlepatterns/ -> untuk cari background
background-position ->top/center/bottom left/center/right -> top center
background-repeat -> repeat-x, repeat-y, no-repeat, repeat (default)
shorthand -> background : color url() position repeat
CSS
elemen HTML
id -> elemen HTML hanya boleh memiliki 1 id, setiap halaman hanya boleh memiliki 1 elemen dengan id tersebut, dapat digunakan sebagai penanda halaman untuk link, digunakan juga untuk javascript, sebaiknya tidak digunakan untuk css (lebih baik pakai class)
class -> contoh penulisan p.nama_class atau .nama_class
pemisah , digunakan untuk dan
pemisah spasi digunakan untuk selector yang lebih spesifik
CSS
pseudo class yang berhubungan dengan link
:link -> style default
:hover -> style ketika cursor mouse menunjuk link
:active -> style ketika link di klik
:visited -> style ketika link sudah pernah dikunjungi
pseudo class yang berhubungan dengan posisi elemen
:first-child -> elemen pertama dari parentnya
:last-child -> elemen terakhir dari parentnya
:nth-child(n) -> elemen ke-n dari parentnya -> 2n,2n+1, 2n-1, even (genap), odd (ganjil)
:first-of-type -> memilih elemen pertama dari type/tag
:last-of-type -> memilih elemen terakhir dari type/tag
CSS
Properti yang diwariskan : color, font, letter-spacing, line-height, list-style, text-align, text-indent, text-transform, visibility, white-space
Elemen <a> tidak mewarisi nilai dari properti color -> supaya mewarisi maka di isi {color : inherit}