dea

Z’s Still Not Dead Baby, Z’s Still Not Dead

Andy Clarke digs deep into snow to find ways flat design can be brought back to life in CSS with the use of techniques to create a sense of depth. Like spring after an everlasting winter, perhaps it’s time to let a different style of design flourish. What a relief.


A reaction to overly ornamental designs, flat design has been the dominant aesthetic for almost a decade. As gradients, patterns, shadows, and three-dimensional skeuomorphism fell out of fashion, designers embraced solid colours, square corners, and sharp edges.

Anti-skeuomorphism no doubt helped designers focus on feature design and usability without the distraction of what some might still see as flourishes. But, reducing both product and website designs to a bare minimum has had unfortunate repercussions. With little to differentiate their designs, products and websites have adopted a regrettable uniformity which makes it difficult to distinguish between them.

Still, all fashions fade eventually. I’m hopeful that with the styling tools we have today, we’ll move beyond flatness and add an extra dimension. Here are five CSS properties which will bring depth and richness to your designs.

To illustrate how you might use them, I’ve made this design for the 1961 Austin Seven 850, the small car which helped define the swinging sixties.

The original Mini. Red, (British Racing) green, blue designs.

Transparency with alpha values

The simplest way to add transparency to a background colour, border, or text element is using alpha values in your colour styles. These values have been available in combination with RGB (red, green, blue) for years. In RGBA, decimal values below 1 make any colour progressively more transparent. 0 is the most transparent, 1 is the most opaque:

body {
  color: rgba(255, 0, 153, .75); 
}
Alpha values allow colour from a background to bleed through.

Alpha values also combine with HSL (hue, saturation, lightness) to form HSLA:

body {
  color: hsla(0, 0, 100, .75);
}

Currently a Working Draft, CSS Color Module Level 4 enables alpha values in RGB and HSL without the additional “A”:

body {
  color: rgb(255, 0, 153, .75);
  /* color: hsl(0, 0, 100, .75); */
}

This new module also introduces hexadecimal colours with alpha values. In this new value, the last two digits represent the transparency level, with FF producing 100% opacity and 00 resulting in 100% transparency. For the 75% opacity in my design, I add BF to my white hexadecimal colour:

body {
  color: #ffffffbf;
}

Although there’s already wide support for hexadecimal, HSL, and RGB with alpha values in most modern browsers, the current version of Microsoft Edge for Windows has lagged behind. This situation will no doubt change when Microsoft move Edge to Chromium.

2. Use opacity

Using the opacity property specifies the amount of opacity of any element (obviously) which allows elements below them in the stacking order to be all or partially visible. A value of 0 is most transparent, whereas 1 is most opaque.

Opacity tints images with colour from elements behind them.

This property is especially useful for tinting the colour of elements by allowing any colour behind them to bleed through. The British Motor Corporation logo in the footer of my design is solid white, but reducing its opacity allows it to take on the colour of the body element behind:

[src*="footer"] {
  opacity: .75; 
}

You might otherwise choose to use opacity values as part of a CSS filter. 0% opacity is fully transparent, while 100% is fully opaque and appears as if no filter has been applied. Applying a CSS filter is straightforward. First, declare the filter-function and then a value in parentheses:

[src*="footer"] {
  filter: opacity(75%); 
}

3. Start blending

Almost universally, contemporary browsers support the same compositing tools we’ve used in graphic design and photo editing software for years. Blend modes including luminosity, multiply, overlay, and screen can easily and quickly add depth to a design. There are two types of blend-mode.

background-blend-mode defines how background layers blend with the background colour behind them, and with each other. My layered design requires three background images applied to the body element:

body {
  padding: 2rem;
  background-color: #ba0e37;
  background-image:
    url(body-1.png),
    url(body-2.png),
    url(body-3.png);
  background-origin: content-box;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: contain;
}
From left: Three background images. Far right: How images combine in a browser.

You can apply different background-blend modes for each background image. Specify them in the same order as your background images and separate them with a comma:

body {
  background-blend-mode: multiply, soft-light, hard-light;
}
Six background-blend-mode variations.

When I need to apply an alternative colour palette, there’s no need to export new background assets. I can achieve results simply by changing the background colour and these background-blend modes.

Backgrounds blend behind this brilliant little car.

Sadly, there’s not yet support for blending modes in Edge, so provide an alternative background image for that browser:

@supports not (background-blend-mode: normal) {
  body {
    background-image: url(ihatetimvandamme.png); 
  }
}

mix-blend-mode, on the other hand, defines how an element’s content should blend with its ancestors.

From left: Screen, overlay, and soft-light mix-blend-mode.

To blend my Mini image with the background colours and images on the body, I add a value of hard-light, plus a filter which converts my full-colour picture to greyscale:

[src*="figure"] {
  filter: grayscale(100%);
  mix-blend-mode: hard-light; 
}

You can also use mix-blend-mode to add depth to text elements, like this headline and large footer paragraph in a green and yellow version of my design:

.theme-green h1,
.theme-green footer p:last-of-type {
  color: #f8Ef1c;
  mix-blend-mode: difference;
}
Text elements blend to add interest in my design.

4. Overlap with CSS Grid

Whereas old-fashioned layout methods reinforced a rigid structure on website designs, CSS Grid opens up the possibility to layer elements without positioning or resorting to margin hacks. The HTML for my design is semantic and simple:

<body>

<p>You’ve never seen a car like it</p>

<h1><em>1961:</em> small car of the year</h1>

<figure>
  <img src="figure.png" alt="Austin Seven 850">
  <figcaption>
    <ul>
      <li>Austin Super Seven</li>
      <li>Morris Super Mini-Minor</li>
      <li>Austin Seven Cooper</li>
      <li>Morris Mini-Cooper</li>
    </ul>
  <figcaption>
</figure>

<footer>
  <p>Today’s car is a Mini</p>
  <p>Austin Seven 850</p>
  <img src="footer.png" alt="Austin Seven 850">
<footer>

</body>

I begin by applying a three-column symmetrical grid to the body element:

@media screen and (min-width : 48em) {

  body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
  }

}
Three-column symmetrical grid with column and row lines over my design.

Then, I place my elements onto that grid using line numbers:

body > p {
  grid-column: 1 / -1; 
}

h1 {
  grid-column: 1 / 3; 
}

figure {
  grid-column: 1 / -1; 
}

footer {
  display: contents; 
}

footer div {
  grid-column: 1 / 3; 
}  

[src*="footer"] {
  grid-column: 3 / -1;
  align-self: end; 
}

As sub-grid has yet to see wide adoption, I apply a second grid to my figure element, so I may place my image and figcaption:

figure {
  display: grid;
  grid-template-columns: 1fr 3fr; 
}

figcaption {
  grid-column: 1; 
}

[src*="figure"] {
  grid-column: 2; 
}
Left: This conventional alignment lacks energy. Right: Overlapping content adds movement which makes my design more interesting overall.

Previewing the result in a browser shows me the energy associated with driving this little car is missing. To add movement to my design, I change the image’s grid-column values so it occupies the same space as my caption:

figcaption {
  grid-column: 1;
  grid-row: 3; 
}

[src*="figure"] {
  grid-column: 1 / -1; 
  grid-row: 3;
  padding-left: 5vw; 
}

5. Stack with z-index

In geometry, the x axis represents horizontal, the y axis represents vertical. In CSS, the z axis represents depth. Z-index values can be either negative or positive and the element with the highest value appears closest to a viewer, regardless of its position in the flow. If you give more than one element the same z-index value, the one which comes last in source order will appear on top.

Visualisation of z-index illustrates the depth in this design.

It’s important to remember that z-index is only applied to elements which have their position property set to either relative or absolute. Without positioning, there is no stacking. However, z-index can be used on elements placed onto a grid.

All techniques combined to form a design which has richness and depth.

As the previous figure image and figcaption occupy the same grid columns and row, I apply a higher z-index value to my caption to bring it closer to the viewer, despite it appearing before the picture in the flow of my content:

figcaption {
  grid-column: 1;
  grid-row: 3;
  z-index: 2; 
}

[src*="figure"] {
  grid-column: 1 / -1; 
  grid-row: 3;
  z-index: 1; 
}

Z’s not dead baby, Z’s not dead

While I’m not advocating a return to the worst excesses of skeuomorphism, I hope product and website designers will realise the value of a more vibrant approach to design; one which appreciates how design can distinguish a brand from its competition.


I’m incredibly grateful to Drew and his team of volunteers for inviting me to write for this incredible publication every year for the past fifteen years. As I closed my first article here on this day all those years ago, “Have a great holiday season!” Z’s still not dead baby, Z’s still not dead.


About the author

Andy Clarke is one of the world’s best-known website designers, consultant, speaker, and writer on art direction and design for products and websites. Andy founded Stuff & Nonsense in 1998 and for 20 years has helped companies big and small to improve their website and product designs. Andy’s the author of four web design books including ‘Transcending CSS,’ ‘Hardboiled Web Design’ and ‘Art Direction for the Web’. He really, really loves gorillas.

More articles by Andy




dea

An idea whose time has come

Ritu Beri revisits khadi with her new collection called Vichar Vastra




dea

What’s the deal with Indian food?

One simple step to modify our perfectly balanced native diet to suit today’s lifestyle




dea

The reel deal: Unconventional Tamil Instagram influencers on their rapid success

Meet the Tamil influencers who rely on staying grounded, as they cook, eat and work out, drawing massive follower counts along the way




dea

Editorial. Retrograde idea

Karnataka jobs Bill should be scrapped




dea

Editorial. A big deal

New competition rules for M&A are pragmatic




dea

Naidu sets June deadline for completion of new terminal building at Vijayawada airport

Chief Minister suggests changes in the design of the expansion works to reflect Andhra Pradesh’s culture and heritage




dea

Child mauled to death by stray dogs in A.P.’s NTR district

Vijayawada Parliament Member, Kesineni Sivanath, SCPCR Chairman Kesali Appa Rao expressed concern over the death of the boy, directs VMC, Panchayat Raj officials to take steps to prevent dog menace




dea

Ideals, varieties, and algorithms [electronic resource] : an introduction to computational algebraic geometry and commutative algebra / David A. Cox, John Little, Donal O'Shea

New York : Springer, 2007




dea

Rape and murder of 8-year-old girl in Mangaluru: Three accused sentenced to death




dea

Death of 47-year-old woman sparks protest by residents in Mangaluru




dea

Body of man found on railway track in Mulky; wife and son found dead in room

Mangaluru police claim 32-year-old resident of Mulky allegedly killed his 27-year-old wife and their four-year-old son before ending his life on a railway track




dea

Udupi police to handover Sunday’s lock up death case to CID




dea

PSI, head constable suspended in Brahmavar lock up death case




dea

Indian Sign Language: So the deaf can hear music

Experience of profound deaf individual at live concert with Indian Sign Language interpreters, highlighting ISL expansion and community empowerment




dea

‘Vinaro Bhagyamu Vishnu Katha’ movie review: A concoction of absurd ideas

The twists and turns notwithstanding, it’s tough to sit through the Telugu film ‘Vinaro Bhagyamu Vishnu Katha’




dea

‘Balagam’ movie review: Death and drama, wrapped in humour

‘Balagam’, first-time director Venu Yeldandi’s Telugu indie-style drama starring Priyadarshi, is outrageously funny while holding a mirror to fractured familial ties and human behaviour




dea

“Indians find Ireland ideal”




dea

The Teen’s Ultimate Guide to Making Money When You Can’t Get a Job: 199 Ideas for Earning Cash On Your Own Terms

Whether it was in a department store, fast-food chain, or kiosk in the mall, everyone remembers his or her first job — even more so, you probably remember that first paycheck. But with the current job crisis, it has become harder and harder to enjoy the fruits of your labor. As of October 2011, the […]




dea

Correction: Sustainable polymeric adsorbents for adsorption-based water remediation and pathogen deactivation: a review

RSC Adv., 2024, 14,35104-35104
DOI: 10.1039/D4RA90129K, Correction
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Huda Alkhaldi, Sarah Alharthi, Salha Alharthi, Hind A. AlGhamdi, Yasmeen M. AlZahrani, Safwat A. Mahmoud, Lamiaa Galal Amin, Nora Hamad Al-Shaalan, Waleed E. Boraie, Mohamed S. Attia, Samera Ali Al-Gahtany, Nadiah Aldaleeli, Mohamed Mohamady Ghobashy, A. I. Sharshir, Mohamed Madani, Reem Darwesh, Sana F. Abaza
The content of this RSS Feed (c) The Royal Society of Chemistry




dea

Assam floods claim 8 more lives, death toll 46

Three persons reported missing as rising waters affect 16.25 lakh people across 29 districts




dea

Assam floods: Six more dead as toll mounts to 52; over 21 lakh people affected

At least seven districts of Arunachal Pradesh cut off due to landslides; eight persons, including two children, killed in rain-induced landslides and floods in Manipur, Mizoram and Tripura




dea

Wild elephant tramples four to death in Chhattisgarh’s Jashpur

The jumbo was being tracked by forest officials when it entered the village




dea

Kolkata doctor rape and murder: Victim had 10 injuries, death due to throttling and smothering

Signs of sexual assault evident in inquest and post-mortem report




dea

Three budding hockey players struck dead by lightning in Jharkhand

The players were going to participate in a hockey competition in Jhapla of the Tutikela Panchayat, and they stood under a tree to avoid the rain




dea

Naga tribes body issues deadline to Nagaland government for feedback on autonomous territory

The Eastern Nagaland People’s Organisation wants the creation of Frontier Nagaland Territory comprising six districts of the northeastern State bordering Myanmar




dea

NSCN (I-M) seeks third-party intervention to break talks deadlock

Accusing the Centre of betraying the Framework Agreement of 2015, the Naga extremist group led by Thuingaleng Muivah threatened to return to violent ways




dea

Former high jump world champion Freitag found dead in South Africa

Freitag won world championships at youth, junior, and senior levels. He took gold in the high jump at the 2003 World Championships in Paris




dea

Hurricane Milton leaves 16 dead and millions without power in Florida

The hurricane, among the most intense in the Atlantic, has incurred a lowered insurance cost estimate of $30 to $60 billion.




dea

Nijjar killing: Canadian PM Trudeau admits he had no hard proof when he alleged Indian agents' involvement

Trudeau admits intelligence, not evidence, behind claims of Indian involvement in Nijjar’s killing.




dea

At least 126 dead and missing in massive flooding, landslides in Philippines

Weather has cleared in many areas on Saturday, allowing cleanup work in most areas




dea

European banks to extend dealing with Indian clearing firms

Europe’s authorities set the deadline last year after their request for co-supervision of European trades settled through Indian clearing houses was denied by the Reserve Bank of India



  • Money &amp; Banking

dea

COP29 host Azerbaijan promoted fossil fuel deals ahead of climate summit, NGO says 

In a secretly recorded video, CEO of the COP29 talks offers to introduce a representative of a fake oil and gas company, to the Azeri national oil and gas company SOCAR




dea

Many supporters of Khalistan in Canada, but they do not represent Sikh Community: PM Trudeau

His comments came during Diwali celebrations at Ottawa’s Parliament Hill recently amid an ongoing diplomatic row with India over the killing of Khalistan extremist Hardeep Singh Nijjar




dea

Trudeau warns US tariffs on Canada would ‘hurt American workers’

The Canadian leader appealed in his comments directly to the interests of Donald Trump, whose strategy throughout his election campaign was to win over blue-collar workers




dea

Real Madrid Liga match against Valencia postponed due to deadly floods

Villarreal's home match against Rayo Vallecano was also suspended after the devastating flash floods in eastern Spain




dea

Making sense of death

Untimely death is scary because it may shatter the lives of the living




dea

BJP made money from heaps of dead bodies during COVID-19, claims Dinesh Gundu Rao




dea

Oil firms hike commission paid to dealers, no rise in fuel prices

Petrol and diesel prices will come down in States such as Odisha, Chhattisgarh, and Himachal Pradesh due to a rationalisation of intra-state freight. Oil Minister Hardeep Singh Puri welcomes move.




dea

TCS signs multi year deal with Air France-KLM to modernise the airline group’s data

Over the next three years, TCS will modernise the airline group’s data by moving it to cloud, promoting the next generation of data-driven aviation. 




dea

Israel signs deal to acquire 25 F-15 fighter jets from Boeing Co

Delivery of the F-15 aircraft will begin in 2031, with 4-6 aircraft to be supplied annually




dea

Kerala vlogger couple found dead at home in Parassala

The Youtube couple was found dead by their son, who works as a home nursing trainee in Ernakulam.




dea

Forensic expert testifies paraquat poisoning led to Sharon Raj’s death

Victim had suffered from no prior co-morbidities, says Dhanya Raveendran, forensic surgeon of the Thiruvananthapuram police




dea

Kannur ADM death: Court grants bail to Kerala CPI(M) leader P.P. Divya

P.P. Divya, who had been in custody at a women’s jail for 11 days, argued that her cooperation with investigation justified her release on bail




dea

Dead lizard found in meal sparks agitation at Digital University Kerala; mess temporarily closed

The contractor responsible for providing food to over 200 students has claimed to have purchased the pickle from outside




dea

Do online distributors selling direct funds offer better deal?

Clearfunds CEO on how he plans to give best advice at lowest possible cost to investors




dea

How are lubricant firms dealing with oil price rise?

To pass on the rise in input costs to customers, the industry has taken price increases




dea

Handbook of research methods in behavioural economics [electronic resource] : an interdisciplinary approach / edited by Morris Altman (Dean, University of Dundee School of Business, and Chair Professor of Behavioural and Institutional Economics and Co-ope

Cheltenham, UK ; Northampton, MA, USA : Edward Elgar Publishing, [2023]




dea

Bihar News: Railway Employee Crushed To Death After Getting Trapped Between Engine & Bogie

It took rescue personnel nearly two hours to retrieve the body of the deceased railway employee, leaving an atmosphere of shock and grief at the station.




dea

Egyptian court cancels death sentence of Morsi, Badie