際際滷

際際滷Share a Scribd company logo
SUPER
RESIZE ME
SUPER RESIZE MEAN INTRODUCTION TO RESPONSIVE WEB DESIGN
AXEL VALDEZ
RESPONSIVE
WEB
DESIGN
WHAT?
A LITTLE BIT OF BACKGROUND
WHEN WE STARTED DESIGNING
FOR THE WEB WE PRETTY MUCH
COPIED WHAT THE PRINT WORLD
WAS DOING.
(BUT WAY MORE SHITTY)
Super resize me
OUR SCREENS GOT BIGGER
FROM TIME TO TIME
AND WE MADE OUR WEBSITES BIGGER, TOO
BUT THEN, SCREENS ALSO GOT
SMALLER
WHAT??!?
WE HAD FLEXIBLE DESIGN
ELASTIC, LIQUID, ETC.
BUT WEBSITES STILL LOOKED
AWFUL ON BOTH SMALL AND
HUGE SCREENS
WE STARTED DOING SEPARATE
WEBSITES FOR EACH DEVICE
:S
THAT WAS EXPENSIVE AND
UNSUSTAINABLE
(AND PLAIN STUPID, TO BE HONEST)
WE NEEDED SOMETHING BETTER
WHAT DID WE NEED?
A (UNIQUE) DESIGN THAT CHANGED IN
RESPONSE TO THE DEVICE
A DESIGN THAT LOOKED GOOD IN BOTH A
HUGE AND A TINY SCREEN (AND
EVERYTHING IN-BETWEEN)
SOMETHING ACHIEVABLE IMMEDIATELY
TURNED OUT WE ALREADY HAD
WHAT WE NEEDED:
CSS MEDIA QUERIES
@media screen and (max-width: 640px){ ... }
WITH MEDIA QUERIES
WE CAN LOAD CSS STYLESHEETS
SELECTIVELY
WE DEFINE A BASE STYLESHEET
AND ADD EXTRA STYLING
DEPENDING ON THE DEVICE SCREEN SIZE
YES, YES, BLAH BLAH BLAH
BUT WHAT IS RESPONSIVE WEB DESIGN, THEN?
RWD IS THE DESIGN OF WEBSITES
THAT RESPOND TO THE DEVICE
ACCESSING THEM AND DELIVER
AN APPROPRIATE OUTPUT.
THE TERM "RESPONSIVE WEB DESIGN" WAS COINED
BY ETHAN MARCOTTE IN 2010 AT AN ARTICLE ON A LIST APART
Super resize me
WHEN DONE RIGHT,
A RESPONSIVE WEBSITE DESIGN
IS FUTURE-PROOF
HOW DO I RWD?
THE OLD TRADITIONAL PROCESS
MOST OF THE DESIGN PROCESS
OF RWD HAPPENS IN THE
BROWSER
NOW YOU REALLY
NEED TO LEARN
HOW TO CODE
1. SKETCH
2. DESIGN VISUAL STYLE
3. CODE
4. TEST
5. GOTO 3
WHEN TESTING YOUR LAYOUT,
RESIZE THE BROWSER TO FIND
THE SIZE WHERE IT BREAKS.
THEN ADD A MEDIA QUERY RIGHT THERE.
FORGET PREDEFINED
DESKTOP, TABLET AND MOBILE SIZES
DESIGN FOR EVERY POSSIBLE WIDTH, SO YOUR
WEBSITE IS REALLY FUTURE-PROOF.
I FIND EASIER TO FIRST CODE THE LAYOUT
(IN WIREFRAME-LIKE BLOCKS)
AND APPLY THE VISUAL STYLE LATER
TOOLS
THE BROWSER
AN AWESOME TEXT EDITOR
RELATIVE UNITS
EMs
REMs
PERCENTAGES
VMIN
VMAX
VW
VH
BE CAREFUL WITH PX
THINGS TO TAKE INTO ACCOUNT
IMAGES
THE AWKWARD SUBJECT
MOUSE POINTER
VERSUS
FAT FINGERS
THERE'S NO
:HOVER
ON TOUCHSCREENS
FONT SIZES
EACH DEVICE IS USED AT DIFFERENT
DISTANCE FROM OUR EYES.
FONT SIZE NEEDS TO BE ADJUSTED
ACCORDINGLY.
CLOSING THOUGHTS
RESPONSIVE SHOULD NOT BE
AN "EXTRA" FEATURE
WITH RWD WE'RE, AT LAST, DESIGNING FOR THE
WEB AS AN UNIQUE MEDIUM
EVERY NEW WEB PROJECT SHOULD BE
APPROACHED WITH RWD.
IF YOU'RE A WEB DESIGNER
YOU NEED TO LEARN HOW TO CODE
OTHERWISE YOU'RE GETTING YOURSELF
OUT OF THE GAME.
THANK YOU
I'M @AXEL ON TWITTER, BTW.

More Related Content

Super resize me