Wisnu-WR
Graham Jadi apa yang harus saya ubah ?
Wisnu-WR
AH-SID Saya sudah mencoba dengan width="5px height="5px" ataupun style="width:5px;height:5px" , tetap tidak bekerja
Graham
Wisnu-WR It depends on where you want the images to automatically resize if it is just in your menu table on the main page try changing it to
table img {
max-width:100%;
height: auto !important;
}
Copy code
My research says that is a better code for responsive image resizing anyway but stick to your version if you wish as both seem to work
I still need to see a proper test example page with a image you are trying to resize to be sure
AH-SID
Wisnu-WR Kalau masih ada sintaks css di atas tentu saja tag img tidak bekerja
, saya 'kan cuma tanya mana dari kedua tag img itu yang benar? Hehe..
Kembali ke topik, yang saya pahami bahwa sintaks CSS:
body img {
width: auto !important;
height: auto !important;
}
digunakan untuk mengatur semua gambar. Semua gambar akan diatur width dan heightnya sesuai sintaks tersebut, kecuali ada penggunaan !important pada tag imgnya.
Seperti:
<img src="url" style="width:200px !important; height: 200px !important" />
Copy code
atau seperti yang disarankan mr. Graham