Responsive design
Në shqip: Dizajn i përshtatshëm
ShpjegimiSQ
Dizajni responsive do të thotë që faqja përshtatet vetë me madhësinë e ekranit — duket mirë në telefon, në tablet dhe në kompjuter. Kjo bëhet kryesisht me CSS.
EnglishEN
Responsive design means a page adapts itself to the screen size — it looks good on a phone, a tablet and a computer. This is done mainly with CSS.
Si ta mendosh
Si uji që merr formën e enës ku e hedh: gotë, shishe a tas — përmbajtja është e njëjtë, forma përshtatet.
Lexoje në anglisht
Like water taking the shape of whatever you pour it into: a glass, a bottle or a bowl — the content stays the same, the shape adapts.
Shembull kodijavascript
const telefon = window.matchMedia("(max-width: 600px)");
console.log(telefon.matches ? "Ekran i vogël" : "Ekran i madh");