Web design
Web design
I. Visual design
INTRO
Congratulations.
The future of the web is in your hands.
Once upon a time, the web was the sole domain of experts.
The same geniuses who once ruled the web started building
tools to help the rest of us join in the fun.
Flash forward to 2016 and all kinds of tools for making web design
a more intuitive process have emerged. They vary in myriad ways,
but they all share a mission to translate the abstractions of code
into more tangible, visual modes of working.
1. Visual design
2. Web design
3. Design process
That’s what this free ebook, Web Design 101, will teach you
all about.
deep into all three topics to offer tips, insights, and principles
on everything from how to design your design process to how
to build landing pages that turn visitors into customers.
In short, it’s the kind of stuff you’ll want to reference, well, daily.
It’s also worth noting that Web Design 101 isn’t about the
technical side of web design.
Never before has there been a medium that can so quickly and
powerfully communicate a message and urge people to act —
as proved by everything from this month’s top Kickstarter to
the Arab Spring.
The fact is that the web is still a very young medium. We’ll no
doubt discover and develop countless new uses for it over the
coming decades.
And with Webflow, you have a part to play in defining that future.
So if you were to ask us where the web will go next, we’d have
to say: You tell us.
Visual design
principles
Discover how the human brain interprets
visual information — and how you can use
that in your web designs.
CHAPTER I VISUAL DESIGN VISUAL DESIGN PRINCIPLES
1. Emergence
The principle of emergence states that we attempt to make
sense of the whole before we start identifying its parts.
2. Reification
The principle of reification states that our minds fill in gaps in
visual information in order to identify objects. That means that
you don’t have to see the entirety of something to understand
what it is, though the simpler or more widely recognized the
whole object is, the easier it’ll be to recognize it by a part.
Even with half the image gone, you get it, right?
3. Multistability
This one gets a little late-night-in-your-dorm-room, but here
we go: Multistability explains why you can see just the faces, or
just the vases in that famous optical illusion, but never both at
the same time.
Faces or vase? Multistability means you can really only see one at a time.
Multistability means you'll see the arrow ... once you notice it.
4. Invariance
The principle of invariance states that we’re really good at
recognizing similarities and differences. That means that
it’s really easy to make something stand out of a crowd of
similar objects.
Remember the lady in the red dress in The Matrix? How about
the little girl in the red jacket in Schindler’s List? Those two
stand out so much — and remain so memorable — because
their bright color practically screams out of the homogenous
black-and-white backgrounds we see them moving against. It
marks them as meaningful and worthy of your attention.
MailChimp's designers use invariance to draw your eye to those "Sign Up Free" buttons.
This lets the user know what action the site wants you to take,
clarifying the user experience. In MailChimp’s example, the
identical design and language in the two primary CTAs also
make it clear that either link will take you to the same place.
As per the Law of Prägnanz, we see the Olympic logo as interlocking rings (left),
instead of a bunch of meaningless, complex shapes (right).
What’s that mean for your designs? It means that you can
play with creating complex arrangements of simple shapes,
so long as they come together to form an easily understood
whole. That’s basically what Georges Seurat was doing with
his pointillist paintings:
Closure
When we see a complex arrangement, we look for a single,
recognizable pattern.
You can see this in action in this (sadly rejected) design for
OneFund by Mike Erickson, aka, Logomotive. (Not to mention
the vast majority of minimal logo designs you see.)
Figure/ground
People see objects as either figure (the focal point) or ground
(background).
Evernote once upon a time used figure/ground to draw your eye to their Sign Up button.
You can also use visual cues like drop shadows to clarify spatial
relationships between different elements. It’s why you’ll find so
many shadows in Google’s material design guidelines.
Uniform connectedness
The shapes on the left seem more related than those on the right — even where the shapes are the
same!
In the image above, the large blue rectangle and the smaller
blue circle on the left seem more related than the shapes on
the right — even though the repetition of blue also suggests a
connection.
The arrows help us connect copy and image to better grasp the graphic's message.
Common regions
You see websites using this visual trick all the time. In fact, it’s
become one of the hallmarks of what many people decry as the
The principle of common regions helps us connect headline, body copy, and image into a story.
Proximity
For example, check out Google’s Now site, below. The text
“Spotify” is clearly related to all the content in the card below —
even though it’s not enclosed within the card — because it’s
closer to the card than, say, the text “OpenTable.”
Proximity helps us keep the complex relationships at play in this image straight.
Continuation
The Boat keeps image and text related via common fate.
You can see the principle of common fate play out with beautiful
dramatism on The Boat, which uses parallax scroll to both convey
the chaotic tossings of a storm and the forward momentum of
the story it tells.
With all that motion going on, you’d be forgiven for missing
the fact that the text in the center of the screen above is
related to the two foreground images it sits between. But as
the boat and storm-tossed waves move generally to the right
of the screen, the relationship between foreground text and
images becomes clearer — because they move up the screen.
(Though the designers added drama by having text and image
tilt and shift as you scroll.)
Parallelism
We see parallel elements as more related than non-parallel
elements.
Lines of parallel text help us make sense of this complex tangle of letters.
Similarity
We see elements that share characteristics as more
related than those that don’t.
The circular icon helps us understand that the two Site Design posts are related
(i.e., the same type of post).
Here, the web page icon with the yellow background serves
to connect the two Site Design posts, making it clear that
they are the same type of post. The fact that the same color
Focal points
Past experiences
Okay, here’s a really tricky one. Unlike all the other principles
of visual design we’ve discussed here, there’s just no controlling
a person’s past experiences.
The best you can do here is aim to appeal to the average past
experience. For example, most people associate ice cream with
all sorts of warm, fuzzy feelings — not to mention the essential
pleasure that comes from its deliciousness. An image of an ice
cream cone might evoke nostalgia for the endless summer days
of childhood, or a sense of togetherness from those traditional
bowls of ice cream served after a family dinner.
VISUAL DESIGN
Color theory
You’ve got a practically infinite palette to
work with when it comes to color. Find out
how to do it right.
Overwhelmed? I certainly used to be. But once you nail the basic
theory and vocabulary of color — and get acquainted with a few
handy tools and resources — you’ll find establishing your palette
becomes with one of the fastest, easiest, and most fun parts of
your design process.
Primary colors
Primary colors form the basis for all other shades. Humans
perceive three base colors: magenta, cyan, and yellow. Every
other color we see consists of a combination of these three
colors in varying amounts, brightnesses, tints, and shades
(see below).
Temperature
Color wheel
Red, yellow, and blue are the primary colors. Violet, orange, and
green are the secondary colors. Everything else is a tertiary color,
a mix of primary and secondary colors.
1. Monochrome
2. Complementary
3. Analogous
Analogous schemes feature three colors that sit next to each
other on the color wheel. Because of the tonal similarities,
these schemes can create a very cohesive, unified feel, without
the monotony of a monochrome scheme.
4. Triadic
Color psychology
Every color has its unique tones and meanings. By carefully
selecting your colors, you can reinforce the overall message
of a site.
Red
This vibrant, aggressive color can convey a variety of meanings
depending on context, but it does it all with power and flair.
Combine it with black for a masculine, aggressive feel perfect
for a sports car. Pair it with whites and golds, and it speaks
of love and passion. Red also represents danger — think stop
signs — and blood — think The Red Cross.
Orange
Warm, but less aggressive than red, orange is hard to miss —
which explains its use in construction, safety, and hunting
equipment. It also practically screams fall, pumpkins, and
Halloween. Orange’s warmth can evoke a fun and energetic
atmosphere.
Yellow
Yellow represents the sun, warmth, and summertime. It’s also
the most visible color on the spectrum, so it really jumps out at
you. It’s especially eye-catching when combined with white or
black, as it is in safety equipment, school buses, and taxis. Be
careful with yellow, though, as many people find it irritating.
Blue
Blue evokes the celestial, the tropical, and — oddly — the
professional. Given its long association with water, we think
Green
As the color of most plant life, green conveys a sense of growth
and health, making it perfect for organic, environmentally
friendly, and healthy products. Combine it with blues and
browns to capture nature. Green also represents wealth and
finance in the U.S.
Brown
You won’t see much brown on the web, probably because it
implies dirtiness. But it’s perfect if you’re looking to create a
sense of earthiness and luxury, perhaps for a sophisticated
fashion site.
Purple
In ancient Rome, only the rich could afford purple (the dye
was made from snail shells). That association remains strong
all these centuries later, making purple an ideal hue for
luxury brands. When combined with red, it can feel intimate
and romantic. With whites and pinks, it becomes playful and
child-like.
White
White is all about purity, innocence, and sterility. You’ll see it in
sites focused on weddings, healthcare, science, and spirituality.
It also connotes a sense of cleanliness and freshness, like freshly
laundered and folded sheets.
Black
Black implies strength, luxury, evil, death, and the unknown.
The battle between good and evil is represented as white
versus black — just look at Darth Vader and Luke Skywalker’s
usual costumes.
Use color correctly, and your site will feel more natural and
put together. Now that you have the basics down, I encourage
you to keep walking further down the path into color theory.
But most of all, make sure to look at beautiful examples of color
used right, and to practice, practice, practice.
Happy designing.
VISUAL DESIGN
Web
typography
Your quick and easy intro to typography
in web design.
Typography matters
I’ll cover all of these aspects in more detail, but let’s start with
one of the most important decisions: the fonts themselves.
Sans Serif – As the name suggests, sans serif fonts lack serifs.
They've become the standard for the web because early
computer screens had a hard time rendering serifs crisply.
Examples: Arial, Verdana, Droid Sans
Don’t get me wrong. Serif fonts remain relevant on the web, but
they’re better suited for headings and other short, large-set
blocks of text. Due to their more ornate appearance, serifs can
TL;DR: Lean towards sans serif fonts for your body text to
maximize legibility, and consider using serifs for headings and
shorter content. But keep in mind that a serif might be just
right for your brand or industry.
Every font has its own tone, whether it’s professional, playful,
classic, or aggressive. That means using the wrong font in the
wrong place can lead to silly results:
the content and its medium? You’ll also want to try them out
with friends, colleagues, and people in your target audience.
TL;DR: Trust your eye, and match the tone to the content. Ask
others to look at the font in context and tell you what tone they
set. Their answers might surprise you.
Playing matchmaker:
creating the perfect font pairing
When you use more than one font on a page, you need to
consider how they pair up. Some fonts will just clash, while
others look like they were made to be together (and sometimes,
literally were).
For more on font pairing, check out how to pick the nicest
font for your site. Otherwise, experiment with a few different
pairings in your designs and see how they look together.
Typegenius can be super handy for this.
Pro tips: Be careful mixing sans serif and serif fonts unless
you’re confident in your pairing abilities, as they can easily
clash. You’ll also want to steer clear of pairing two fonts of the
same type (i.e., two sans serifs, or two serifs), as they're often
too similar to be easily distinguishable.
Just don’t get carried away with your font pairing endeavors:
stick to a maximum of three different fonts in your designs.
Anything more tends to look busy and can confuse users
about your hierarchy.
On contrast
Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Suspendisse varius enim in adipiscing elit. Suspendisse varius enim in
eros elementum tristique. Duis cursus, mi eros elementum tristique. Duis cursus, mi
quis viverra ornare, eros dolor interdum quis viverra ornare, eros dolor interdum
nulla, ut commodo diam libero vitae erat. nulla, ut commodo diam libero vitae erat.
Aenean faucibus nibh et justo cursus id Aenean faucibus nibh et justo cursus id
rutrum lorem imperdiet. rutrum lorem imperdiet.
Left: Black text on a white background. Right: Dark grey text on a light grey background.
I find the text on the right a bit crisper and easier on the eyes.
Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Suspendisse varius enim in adipiscing elit. Suspendisse varius enim in
eros elementum tristique. Duis cursus, mi eros elementum tristique. Duis cursus, mi
quis viverra ornare, eros dolor interdum quis viverra ornare, eros dolor interdum
nulla, ut commodo diam libero vitae erat. nulla, ut commodo diam libero vitae erat.
Aenean faucibus nibh et justo cursus id Aenean faucibus nibh et justo cursus id
rutrum lorem imperdiet. rutrum lorem imperdiet.
Left: Black text on a white background. Right: White text on a black background.
The text on the right not only blurs a bit, but it's also a bit retina-burning.
Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Suspendisse varius enim in adipiscing elit. Suspendisse varius enim in
eros elementum tristique. Duis cursus, mi eros elementum tristique. Duis cursus, mi
quis viverra ornare, eros dolor interdum quis viverra ornare, eros dolor interdum
nulla, ut commodo diam libero vitae erat. nulla, ut commodo diam libero vitae erat.
Aenean faucibus nibh et justo cursus id Aenean faucibus nibh et justo cursus id
rutrum lorem imperdiet. rutrum lorem imperdiet.
The text on the right has a slight text shadow added, and I've darkened
the image. Better than the text on the left, but still not great.
Exo 2 features weights ranging from 100 to 900. Image taken from Google Fonts
But with responsive designs, it’s actually best to set all size and
spacing properties using relative units like ems and percentages,
rather than absolute units like pixels.
cursus id rutrum
elementum tristique. Duis cursus,
lorem imperdiet
mi quis viverra ornare, eros dolor
interdum nulla, ut commodo
Left: Font size of 16px, line height of 25px. Right: Font size of 32px, line height of 25px.
Spacing needs change with font size.
And you certainly will need to tweak, as pixel sizes vary wildly
across devices. For example, an iPhone can display a 16px font
at about 60% the size of a 16px font on a Macbook — making
it very difficult to read.
Word spacing
Text ascenders and descenders shown in red. The horizontal red line is called the “baseline.”
Size matters
Font size conveys relative importance, creates drama, and
plays a big part in determining readability.
It signals importance
It improves readability
Have you ever tried to read a book set in a 6pt font? I did.
It was Lord of the Rings: Return of the King. It strained my
eyes the entire time, and was impossible to read in anything
but ideal lighting. Luckily, I was 20 years old and didn’t need
glasses, but imagine what it would have been like for your
dear grandmother and her bifocals.
The web’s default font size for paragraphs is 16px, but the
most common sizes used on the internet are 12px, 13px, and
14px. I recommend never going below 14px for body text, as
anything less can make for tough reading.
Now get out there and make the Internet’s type something
to behold!
10 essential UI
(user-interface)
design tips
Memorize these 10 guidelines if you
want to build elegant, easy to use, and
human-centered user interface designs.
And the key to that is to think about your user first, foremost,
and always.
What are their goals? What stands in the way of them achieving
those goals? How can a website help them overcome or work
around those challenges?
Don't stop at knowing what your users want. Dig deeper and find
out what they need. After all, desires are just outgrowths of needs.
If you can address a user's deep-seated need, you'll address their
wants while also fulfilling more fundamental requirements.
People use websites and apps in two ways: directly (by interacting
with the interface elements of the product) and indirectly (by
interacting with ui elements external to the product).
• Tapping a button
• Swiping a card
Who your users are and what devices they use should deeply
inform your decisions here. If you’re designing for seniors or
others with limited manual dexterity, you wouldn’t want to
lean on swiping. If you’re designing for writers or coders, who
primarily interact with apps via the keyboard, you’ll want to
support all the common keyboard shortcuts to minimize time
working with the mouse.
3. Set expectations
Many interactions with a site or app have consequences:
clicking a button can mean spending money, erasing a website,
or making a disparaging comment about grandma’s birthday
cake. And any time there are consequences, there’s also anxiety.
So be sure to let users know what will happen after they click
that button before they do it. You can do this through design
and/or copy.
In InVision, clicking the trashcan icon doesn’t immediately delete a screen.
Instead, it asks if you're sure and lets you know it can't be undone.
4. Anticipate mistakes
To err is human; to forgive, divine.
—Alexander Pope, "An Essay on Criticism"
When you’re writing error messages, make sure they do two things:
Note that you can take a page from that same book for
non-error situations. For instance, if I delete something, but
it’s possible to restore it, let me know that with a line of copy
like “You can always restore deleted items by going to your
Trash and clicking Restore.”
All too often, digital interfaces fail to give much back, leaving
us wondering whether we should reload the page, restart the
laptop, or just fling it out the nearest available window.
MailChimp offers both feedback and encouragement when you schedule or send an email.
Make buttons and other “click targets” (like icons and text
links) big enough to easily see and click. This is especially
important with typography, menus, and other link lists, as
insufficient space will leave people clicking the wrong links
again and again.
Make the buttons for the most common actions larger and
more prominent.
This rule of thumb explains why Google Docs’ menu bar features
almost all the same options as Microsoft Word’s before Vista:
Up till fall 2013, the archive button was at the top left of the
screen — right where Android design specs said the “Up” button
should be. Pocket wanted to focus people on the reading
experience, and not duplicate an existing hardware control, but
the inconsistent placement caused new users to accidentally
close and archive the article they were reading, rather than
simply returning to their reading list as expected.
That said, it’s only logical that the simpler something is, the
easier it is to remember in the short term. So, whenever
possible, limit the number of things a person needs to
remember to use your interface efficiently and effectively.
You can facilitate this by chunking information, i.e., breaking
it into small, digestible chunks.
• Overall layouts
• Navigation menus
• Pricing pages
• Blog indexes
• Content feeds
The list goes on. But the upshot is: the simpler we make our
designs, the faster and easier it is for users to make the decisions
we want them to make. That’s exactly why landing pages and
non-newsletter emails should only have one call to action.
It’s a great combo of clear and engaging design, and plays close
attention to Fitts’ Law: it’s easiest to target links at the edge of
the screen. Circular navigation makes for an interesting option
when you don't want to imply hierarchy in your navigation.
Uniqlo redesign
Designing for
the mobile
world
Discover the differences between
responsive and adaptive design, plus
how to craft content for mobile.
We all know the web’s gone mobile. But it’s easy to underestimate
just how significant that is. These numbers from ComScore
should help drive the point home:
People don’t just browse the web on mobile when they need
to — they do it whenever, and wherever, it’s convenient. And
sometimes, they do it because they have to. Especially in
developing nations where a web-capable phone proves much
easier to get than a computer.
Now, that’s not to say it’s easy. But these tips should help.
Responsive design
That said, if you’re not careful with things like image optimization
and media queries, you can end up offering a laggy experience
to smartphone users.
• Easier maintenance
• Future friendliness
Adaptive design
• Faster performance
Always be testing
Pro tip: Take a cue from Google and ensure that your
search technology enables prediction. No matter how many
things people are getting used to doing on their phones,
typing still sucks.
And before you object that all these studies are about reading
books and other long-form content: point taken. But the more
comfortable we grow with reading long text on our phones,
the more comfortable we’ll become with all sorts of reading
on our phones. And what’s a marketing page but multimedia
long-form content with a reputation for being boring?
Check out The Wall Street Journal’s “The Rise of Phone Reading”
for more on this fascinating change in reading habits.
3. Current offers/specials/coupons
But it’s time for us all to make a choice for our user experience
over our more easily measured goals:
That’s why you don’t see any popups here on the Webflow
blog. We actually want you to read our articles.
How to design
interactions
effectively
Get 5 tips on building better interactions
and animations for your websites.
Animate subtly
They just glanced at it, and they liked it. It didn’t require thought.
But that’s the ideal end result with design. A fantastic design is
subtle. People shouldn’t even notice your animations consciously.
The best designs get out of the way and let people do what
they need to do as easily as possible.
Animate sparingly
You can’t be subtle or informative if everything has some
sort of animation. This is especially true if you make each
animation unique.
Just make them all the same. If you must add variety, have
page elements on the left of the page slide in from the left,
and those on the right slide in from the right. Animate similar
elements in a similar fashion.
And people don’t get any more patient after the site’s loaded.
After all, no one’s going to hover over a button for even half a
second, no matter how dramatic your rollover effect looks.
Okay, maybe some will — the first time. But what about the
third time? Or the twentieth? Think they’ll still have the ap-
preciation and patience for a slow animation then?
Building high-
performing
websites
The easy guide for designers
47% of your visitors expect your site to load within two seconds,
and 40% of them will leave if it takes more than three seconds.
Each second of delay decreases customer satisfaction by around
16%, and reduces your sales by 7%.
Images
Images are the vast majority of your site’s file size consumption,
and optimizing images to reduce their size can make your site
load several times faster. This is where you should focus the
majority of your performance optimization efforts.
Step one is to open your images in Photoshop then hit File >
Save for Web. This opens a special panel with everything
needed to optimize your images for reduced file sizes. (See
an example photo in the JPEG section below.)
JPEG, GIF, PNG, and SVG are the four main image file formats
used on the web, and each have their specific use cases. Let’s
go through them and learn how to optimize them.
JPEG
JPEG is the main file type that digital cameras use. It’s a “lossy”
image format, which means that simplifications are made to the
image data in order to drastically reduce the image’s file size. In
the process, image quality decreases (although by how much
is up to your settings). To balance between size and clarity, you
have the ability to set the image’s quality on a scale from 1-100.
Photoshop’s Save for Web panel (for a JPEG). Set the file format, quality,
resolution, and blur — then preview how it will look after optimization.
Pro tip: You can get sharper images at lower file sizes by using
a larger resolution with an even lower JPEG image quality.
For example:
The image on top is 500px wide with a quality of 60% and is 53KB.
The image below that is 1000px wide with a quality of 30% and is
also 53KB, and it's notably sharper when displayed at 1000px!
GIF
PNG
SVG
How is all this possible? Unlike other images that are made up
of specifically-defined pixels, vector graphics (SVGs) are made
up of a set of shapes created in XML (an HTML-like markup
language). Scaling a typical image reveals the underlying pixels
in their full ugly glory, but scaling an SVG preserves the base
shapes perfectly.
But they aren’t the perfect solution for every image. SVGs are
generally visually simplistic with just a few colors, suiting such
use cases as a company logo, a UI icon, or a simplistic illustration.
Hence, you can’t use SVG for photos, but you can make pretty
cool animated interface elements with them because they can
be programmatically controlled via CSS and JavaScript!
Image wrap-up
Here are the key points for optimizing images on your site:
Images aren’t the only type of design asset that can be put
on a diet — you can also significantly reduce the size of your
site’s text files through minifying.
Faster hosting
Beyond making a site smaller, there are two other ways to
increase a site’s load speed:
How can you keep your page snappy even after it’s been
loaded? It’s all about limiting the amount of processing work
the computer needs to do. Primarily, this means limiting
animations and UI flourishes:
How to design
landing pages
that convert
You’ve got a killer product or service. But
without a great landing page, no one will
ever know it.
You launch the site, and fire up the marketing machine. You
tweet. You share. You email “influencers.” You set up ads for
Facebook, Twitter, LinkedIn, and Adwords.
I just love how I know exactly what Acorn does after reading one sentence.
How many times have you seen a headline like, “Fakia will
revolutionize how you do business!” and thought:
Cool. How?
You never want visitors to ask that question. You know what
your business is and does, but your customers have no idea.
So explain:
A word on jargon
In most cases, you want to explain your product as simply
as possible, using everyday language. But it’s okay to use
industry-specific terms if you’re selling to a niche audience.
Just don’t assume every person who visits your page will
know what you’re talking about.
So make sure your calls to action (CTAs) stand out from the
rest of the page. Instead of a plain text link, use a button.
Then make it pop with a strong, high-contrast color.
another at the bottom of the page. You could also try making
a “sticky” CTA that follows people as they scroll down the
page, so they’re never without an easy way to convert.
3. Don’t be an infomercial
Dollar Shave Club may not be winning any design awards, but they sure sound like a regular guy.
Avoid being spammy, or you’ll scare people off and make your
brand and product look cheap. What’s “spammy?” Sounding
like a used car salesman. Or an infomercial.
HelpScout brings out the big gun — I mean, names — for its social proof.
Just make sure you get these people’s approval first. There’s
little weirder than stumbling across your face or words on a
website when you never approved it.
Pricing is key not only to the health of your business, but also
your conversion rate. And it’s not just about what your prices
are — how you display them matters too.
Plus, some people just like to have the best of the best. Offer
a premium version and they’ll jump at the opportunity. Just
don’t provide too many options, or you’ll leave people stuck
with analysis paralysis (the inability to make a choice that
stems from having too many things to choose from).
3. Use your social proof. Sway the unsure with a few words
from happy or famous customers.
How element
spacing works
The key to understanding web design
is understanding how spacing works
on the web.
Designers who don’t use Webflow will also get a lot of value from
learning about the box model, as it’ll give a strong foundation for
learning the entirety of HTML and CSS, if you want to. All this
and more is why we’re exploring nothing but the box model in
this post. You’re going to learn it in plain English, and you’re
going to walk away feeling more empowered as a designer.
Let’s do this.
The CSS box model describes the rectangular boxes that are
generated for elements in the document tree and laid out
according to the visual formatting model.
margin
border
padding
content
Every box consists of four areas that layer atop one another.
Below, they’re defined beginning from their innermost area to
their outermost area:
1. Content area
This is the area naturally occupied by the element’s
contents, that is: the words in a sentence, an image, or
the child elements contained within a parent element. In
other words, the content area is the meat of an element.
2. Padding area
Every box can optionally have padding that surrounds the
content area. This padding forces a distance between the
content area and the invisible boundary of the box that
dictates the element’s shape. To see this area, you could
add a solid background color to an element, and increase
the element's padding. You’d then see more color-filled
space at the edges of your content area. In other words,
more of the background color would spill outside the con-
tent area.
3. Border area
The size of the outline/border that surrounds the box. You
know how buttons sometimes have thick outlines? Those
outlines are the element's border area. In other words,
borders take up their own space that adds onto the core
content’s area — borders expand the overall dimensions of
an element.
4. Margin area
This is the transparent white space outside the box that
distances the box from its neighboring elements. Since
margin determines the space between an element and its
surroundings, you can think of margin as being responsible
for pushing elements away from each other. For example,
an element with a bottom margin of 20px will be spaced
20px away from the element below it. Negative margins
can also be used, and they act just as you’d expect: they
pull surrounding elements closer to the element that
contains the negative margin.
margin
border
padding Check our services
content
Notice how the padding area is still within the element. The
background of the element will extend to include the padding
area. In contrast, the border area and margin area extend past
the point that the background color is defined. That’s a special
behavior of the box model.
Display
In addition to the dimensions of a box, the browser must also
know how to display each element in relation to its nearby
elements. There are four popular display types that an element
can be set to using CSS (or within the Webflow Designer if
you're not coding by hand).
Webflow gives you all the display options CSS has to offer:
from block to flexbox, none to grid.
1. Block
An element with a display value of block begins on a new
line and takes up all the available width of that line.
By default, the content area of an element with a block
display value will be 100% of its parent element.
2. Flex
Like block, flex can lay out elements vertically, so that each
element starts on a new line and takes up the available
3. Grid
If you have experience in graphic design, the meaning of
grid display is probably pretty obvious: it arranges child
elements both horizontally and vertically, giving you all
the control you could want to build entire page layouts.
4. Inline
The element appears on the same line as its surrounding
elements, and only takes up as much space as its content,
padding, and border areas need.
5. Inline-block
Same as above, but the element now has the ability to
be given arbitrarily defined box area values, which is not
possible with the plain inline display property. The value
of this added ability is in being able to define the padding
and margin for elements that you don’t want to be forced
onto their own line.
6. None
The element is not visible and takes up no space on the
page — regardless of what dimensions you set it to. Note
that this only makes the page invisible: it doesn’t remove
it from the page’s code.
Elements with display: block are always laid out on their own
line, regardless of what their width is set to. Block elements are
generally large structural/content pieces such as containers,
paragraphs, lists, and headings.
Sizing elements for the web is not the same as sizing elements
in a static design environment, such as Photoshop or Illustrator.
Not only do the elements on a web page vary in dimensions
depending on the size of the user’s browser window, but the
position of one element can actually affect the position of
nearby elements! Let’s explore this concept a bit further.
.element {
display: none;
display: block;
display: inline;
display: inline-block;
display: flex;
display: grid;
}
You can use all of the web's display values in the Webflow Designer.
(In CSS, we first state the class name associated with the HTML
element that we’re defining CSS properties for. Then, within
brackets, we enumerate the box model styling properties we're
interested in alongside their respective values. If this looks
like complete gibberish to you, don’t worry — Webflow doesn’t
require you to understand this. If you are in fact looking to
fully learn CSS and web coding in general, then I highly suggest
taking a look at this fantastic book.)
// Explicit dimensions
.element {
width: 250px;
height: 100px;
}
// Relative dimensions
.element {
width: 50%;
height: 25%;
}
// Constrained dimensions
.element {
width: 50%;
min-width: 10px;
height: 100%;
max-height: 50px;
}
// Shorthand
padding: 10px 20px 30px 40px; // top right bottom left
.element {
margin-top: 10px; // similar to padding
}
Wrapping up
Having a deeper understanding of the box model allows you to
improve your design skills both in the browser and in your web
mockup tool of choice (whether it’s Figma, Sketch, or
Webflow) because it gives you a better understanding of how to
design for how the web actually works. The closer to that reality
you are, the fewer compromises will have to be made when
transitioning your design work to the live production work
that your customers ultimately see!
DESIGN PROCESS
When you know what content you have and/or need, it’s easier
to define your overall sitemap and build out a logical hierarchy.
If you know your client’s bloggers use quotes a lot, you can
design beautiful ways to showcase blockquotes and callouts. If
they’re fans of listicles, maybe a card or gallery-based design
would work better than a long list of numbered headings?
If you know your site will have a blog, help center, and marketing
pages, you can design your type hierarchy to work across all
three areas. That’ll help create a more consistent (and thus, easy
to learn) interface and keep you from having to create a bunch
of messy combo classes.
All too often, when design kicks off without content, the
development process devolves into an endless back-and-forth
between designer and stakeholders. Which usually means
lots of tiny, frustrating text changes that the designer has to
update mocks with, then save. (Granted, with Webflow, those
changes are much less laborious, but still.)
Let’s say you want to launch your very own food magazine
powered by Webflow CMS. You know that recipes will be a key
feature, because you’ve got your Grandma Cordello’s family
recipe book to mine.
2. Image: a big, bold closeup of the dish for the hero image.
4. Plain text: for the article title. You choose plain text for
this field because you want titles to display consistently,
without styling options on the CMS end.
5. Plain text: for the cuisine, which will link to a page listing
all the recipes for a particular cuisine (and double as a
category page)...
This might seem like a pain. But the benefit is that you’ll start
thinking of your sites in terms of their small components —
often called “modules” or “atoms” — and in terms of the
relationships between those elements.
Cuisine
Ingredients
For the next step, you’ll zoom in to map the content of each
of the content types above. The good news is that your map,
along with the connections you drew between each, will help
determine the content requirements of each block.
Hero Image
History
Recipes
{index grid}
Cuisine
Hero Image
Thumbnail Profile Photo
Recipe Name
Recipe Name Biography
Cuisine
Cuisine Recipes
Ingredients
Author Favorite Ingredient
Preparation
Index Author
Recipe
Hero Image
Preparation
Dietary Info
Recipes
Ingredients
Regular work with the most common content types will help
you shape both how you customize the CMS and how you
design its output--i.e., how that content appears on the page.
DESIGN PROCESS
Always choose
prototypes
over mockups
Discover the key to a more effective design
workflow and review process: responsive,
interactive prototypes designs.
5. More interesting and exciting for the client. You can add
engaging animations and UI flourishes to liven up the
design. Given Webflow's powerful Interactions features,
this is oftentimes a really fun, no-brainer add-on.
Let’s dive into these benefits and explain why they’re so valuable
to you, your client, and your general sanity as a designer. The
more you can appreciate live prototypes, the more you’ll get
into the habit of efficiently using them, and the much happier
There also won’t be any surprise for the client when things look
the same between the design and the final product, which
static mockups usually don’t completely articulate. Fonts are
particularly notorious for rendering differently in Photoshop
and the web, which oftentimes leads to last-minute font
changes that might not “feel right" to the client. This leads us to:
But you know that. That’s why you create a minimum of two
PSDs, one for mobile, and one for desktop, and maybe a couple
more for tablets, and landscape vs. portrait orientations.
That’s a huge improvement, but also a lot of work.
When you have your working prototype ready, you can easily
send your client a preview link to interact with in real-time.
This doesn’t push the site live — only you and whoever you
share the private link with will have access. This lets you work
with privacy, and receive feedback from any clients you choose.
Lastly, once you’re ready to go public, you can push the site
live through our hosting platform, or export pristine HTML
and CSS code to use anywhere. You’re not locked into using
our platform if you don’t want to be. Create the design, export
the code, modify/customize it as you wish, and host the site
anywhere. This is true professional web design from scratch.
Wrapping up
Working prototypes offer huge benefits over mockups, and
can significantly improve the designer workflow. With designs
that work from day one, you can reduce back-and-forth and
recapture what it is you love about design.
We’d love to hear from you: Do you give your clients working
prototypes? Tweet ‘em at us and tell us about your experiences.
DESIGN PROCESS
The essential
pre-launch
checklist for
your website
We know you’re excited to launch.
But before you go live, make sure
you’ve covered all your bases.
Even though nothing would make you happier than to get your
site out there, you owe it to yourself (and your site) to check
(and maybe double check) this 4-part new website checklist.
Cross-browser appearance
• Fonts
• Colors/gradients
• Images
• Logo
Cross-device appearance
Make sure your site looks and performs beautifully on any device.
Image optimization
Why? Because the heavier the image, the slower your page
will load, and the worse your user experience will be (which
also negatively affects SEO, which we’ll cover later on).
Integration testing
This one is super important, and can range from a quick task
to a giant one, depending on how many integrations you have.
Typically, I’ll create a list of integrations as I add them so I
don’t forget later on.
• Web forms (check that the forms work and that submitted
information goes to the right place)
• Autoresponders
• RSS feeds
• Ecommerce
• CRM
• CMS
Link testing
This one can be a doozy, simply because most sites have doz-
ens (if not hundreds) of links. More often than not, there’s a
link or two that goes nowhere, and it’s important to find them
before your end-users do.
• Footer links
Content editing
Content is king, and the testing process should be fit for one.
Typically this involves making sure that all content has been
updated and approved. I can’t tell you how many websites I’ve
found that still have a lorem ipsum paragraph somewhere.
It’s also important to note here that it’s okay for content to be
changed later on. Clients, team members, or you can always
adjust text through a CMS. The main goal here is to ensure
that your website content isn’t complete gibberish.
• p (paragraph tags)
You can also go above and beyond with some new HTML5
semantic tags:
These tags are important because they let you identify the
content that’s most relevant to users. In short: making it easy
for search engines makes it easier for users to find you.
Meta title
Your page’s meta title translates to the linked text people will
see on search engine result pages (SERPs). It also displays
on the browser tab when people click through to your page.
Some best practices include:
Meta description
The title and description follow the same rules as their SEO
counterparts, but instead of showing up in search results,
they appear as the default title and description on social me-
dia platforms when shared.
Analytics
Always be analyzing.
Once set up, you’ll be able to track visitors and user engagement
on your website almost instantly!