Skip to: Content or Footer

Bauhaus inspired design with z-index and SVGs

Introduction

I’ve loved Bauhaus Design for many years and always jump at the chance to try out converting a layout to web design.

It was while I was thinking about recreating this design that I wrote the convert all glyphs of a font to individual SVG files article. This allowed me to easily grab the character glyphs that I needed.

Multi layering with z-index

A large part of the appeal is the layered effect of having the central image partially obscured by SVG glyphs. This is achieved with the z-index property. Add in a dash of box-shadow around the image and filter: drop-shadow() on the SVGs and we get the desired effect.

The Design

Dave at Ashton Court

Stuff I need to learn / get better at

The viewBox settings for the SVGs are not quite right and need tweaking to get the fit “just right.” There is currently too much space surrounding each glyph, and… the ‘A’ & ‘V’ characters need to be adjusted to the same width (or thereabouts) as the other characters.

If you have any advice (or constructive feedback) about SVG manipulation and how I could improve upon this from a technical standpoint, please let me know.

Download sample code

I’ve assembled all the parts so that you can play with them. The standard – software is provided “as is”, without warranty of any kind – applies here.

Download File
Zip Files Info
index.html
3.3KB
style.css
2.2KB
readme.txt
460 bytes
dave-ashton-court.webp
140.9KB
b-66.svg
328 bytes
e-69.svg
157 bytes
v-86.svg
154 bytes
r-82.svg
223 bytes
d-68.svg
283 bytes
a-65.svg
175 bytes
File: barrd-bauhaus-z-index.zip
Details: 10 files @ 152KB

That’s all folks

I intend to carry on working with this project but for the purpose of this exercise I’ll leave it at this basic version.

// End of Project

More Information

Dave Barr

Bristol based Scottish Expat who has 20+ years experience of Web Development and is continually on the look out to improve his skill sets. Learning new and innovative solutions for current requirements in the world of IT, WebDev and eCommerce.

About Dave Barr

Image for Dave Barr
Bristol based Scottish Expat who has 20+ years experience of Web Development and is continually on the look out to improve his skill sets. Learning new and innovative solutions for current requirements in the world of IT, WebDev and eCommerce.

Read more about Dave

Back to Top

Click to Copy