“Mobile is a magnifying glass for your usability problems.”
Josh Brewer
<meta name="viewport" content="width=device-width">
flex-wrap
allows your layout to become vertical if there's no spaceflex
is relative. Any positive flex
value makes the element stretchflex-wrap
is your friend
@media (max-width: 300px) {
body {
background: yellow;
}
}
@media (min-width: 600px) {
body {
background: red;
}
}
width
and height
of the viewport.and
and not
operators, and commas for OR
@media (min-width: 300px) {
body { background-color: deeppink; }
@media (min-height: 500px) {
body {
background-image:
linear-gradient(
to right,
gold,
transparent
);
}
}
}
vh
vw
vmin
vmax
max-width
over width
@page {
size: letter landscape;
margin: .8in 1in;
}
Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce attack dog, run away and pretend to be victim, if human is on laptop sit on the keyboard.
I like fish meowzer for chew the plant be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day
Behind the couch i'm going to lap some water out of my master's cup meow. Annoy the old grumpy cat, start a fight and then retreat to wash when i lose. Thinking longingly about tuna brine. Kitten is playing with dead mouse i show my fluffy belly but it's a trap!
Hunt anything that moves making sure that fluff gets into the owner's eyes lick the other cats so flee in terror at cucumber discovered on floor. Leave fur on owners clothes leave fur on owners clothes.
Pet my belly, you know you want to; seize the hand and shred it! fall over dead (not really but gets sypathy).
@page :left {
margin-right: 2in;
}
@page :right {
margin-left: 2in;
}
Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce attack dog, run away and pretend to be victim, if human is on laptop sit on the keyboard.
I like fish meowzer for chew the plant be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day
Behind the couch i'm going to lap some water out of my master's cup meow. Annoy the old grumpy cat, start a fight and then retreat to wash when i lose. Thinking longingly about tuna brine.
Kitten is playing with dead mouse i show my fluffy belly but it's a trap!
Hunt anything that moves making sure that fluff gets into the owner's eyes lick the other cats so flee in terror at cucumber discovered on floor. Leave fur on owners clothes leave fur on owners clothes.
Pet my belly, you know you want to; seize the hand and shred it! fall over dead (not really but gets sypathy).
@media print {
body {
font-size: 12pt;
}
}
@media screen
@media print {
.ad, nav, footer {
display: none;
}
}
Heading 1
Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce attack dog, run away and pretend to be victim, if human is on laptop sit on the keyboard.
I like fish meowzer for chew the plant be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day
Behind the couch i'm going to lap some water out of my master's cup meow.
Heading 2
Hunt anything that moves making sure that fluff gets into the owner's eyes lick the other cats so flee in terror at cucumber discovered on floor. Leave fur on owners clothes leave fur on owners clothes.
Pet my belly, you know you want to; seize the hand and shred it! fall over dead (not really but gets sypathy).
h2 {
break-after: avoid-page;
}
Heading 1
Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce attack dog, run away and pretend to be victim, if human is on laptop sit on the keyboard.
I like fish meowzer for chew the plant be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day
Behind the couch i'm going to lap some water out of my master's cup meow.
Heading 2
Hunt anything that moves making sure that fluff gets into the owner's eyes lick the other cats so flee in terror at cucumber discovered on floor. Leave fur on owners clothes leave fur on owners clothes.
Pet my belly, you know you want to; seize the hand and shred it! fall over dead (not really but gets sypathy).
Title
Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce attack dog, run away and pretend to be victim, if human is on laptop sit on.
I like fish meowzer for chew the plant be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day
Annoy the old grumpy cat, start a fight and then retreat to wash
Hunt anything that moves making sure that fluff gets into the owner's eyes lick the other cats so flee in terror at cucumber discovered on floor. Leave fur on owners clothes leave fur on owners clothes.
Pet my belly, you know you want to; seize the hand and shred it! fall over dead (not really but gets sypathy).
li {
break-inside: avoid-page;
}
Title
Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce attack dog, run away and pretend to be victim, if human is on laptop sit on.
I like fish meowzer for chew the plant be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day
Annoy the old grumpy cat, start a fight and then retreat to wash
Hunt anything that moves making sure that fluff gets into the owner's eyes lick the other cats so flee in terror at cucumber discovered on floor. Leave fur on owners clothes leave fur on owners clothes.
Pet my belly, you know you want to; seize the hand and shred it! fall over dead (not really but gets sypathy).
@media print {
a[href^="http"]::after {
content: "(" attr(href) ")";
}
}
Design that does not exclude on the basis of:
@media (prefers-reduced-motion) {
.fancy {
animation: none;
}
}
Now I'm imagining a skirt-clad Rafael Viñoly traversing the catwalks of the architecture school he designed for @CityCollegeNY pic.twitter.com/F6Kw9dStDo
— John Hill (@archidose) June 27, 2018
If you have ever had a problem grasping the importance of diversity in tech and its impact on society, watch this video pic.twitter.com/ZJ1Je1C4NW
— Chukwuemeka Afigbo (@nke_ise) August 16, 2017
margin-inline-start
instead of margin-left
)translate
attributeUm, my name may be weird but it IS valid! Can't we have a better #ErrorMessage here? #Apostrophes ARE valid. #UX #UXfail #IrishDiaspora pic.twitter.com/7h2kSGKqIa
— LeslieO (@LeslieO) February 7, 2017
Dropdown for last name? That's a new one. #uxfail pic.twitter.com/gLrCb3uX3b
— Jane Marusaik (@janemarusaik) November 10, 2018
Dear @DHSgov there is nothing invalid about spelling cities and regions by their actual name. Ever heard of Unicode? #uxfail pic.twitter.com/T18ersQCox
— Joackim Pennerup (@JoackimPennerup) November 11, 2019
Wow, in 2022 @sittercity assumes all members of a family have the same surname. Wow.
— Lea Verou (@LeaVerou) March 8, 2022
Um no, we are not the “Verou family”, because my spouse has a last name of his own, and our child has both, thank you very much. pic.twitter.com/flmCSqbKMG
At my kids school, they only allow two parental accounts. I’m a stepdad so I simply can’t create an account
— Jon Stuebe (@jonstuebe) March 8, 2022
“If your bloated images are eating up people’s data plan, then you are literally making them work more hours — and that it is hugely discourteous.”
Bruce Lawson
<img loading="lazy">
(although support is limited)