David Salter
Doobries Domain - A blog by David Salter

Doobries Domain - A blog by David Salter

Practising CSS - Cloning a website

Practising CSS - Cloning a website

David Salter's photo
David Salter
·Aug 20, 2020·

3 min read


I've almost finished my second week of learning CSS, with the main (beginner) topics that are left are flexbox and responsive design. My plan is to get to them next week. To finish this week off though, I've decided to make a clone of the Hyde Jekyll template.

This article is part of my 30 Days of CSS. You can follow my progress on Twitter at @cloudblogaas.


Hyde is a theme that can be used within Jekyll websites, the main feature being the strong left hand side bar (which can be on the right if you want) and clean content. You can see an image of it below.

Alt Text

In making a copy of this, I've not looked at the CSS for the original (apart from obtaining the names of the fonts). I've tried to make a similar clone, but not an exact copy.

Welcoming Seek - The Clone of Hyde

Looking at my clone below, you can see that its very similar. Its not a 100% copy, for example the padding is a bit different in places, but this is my first experience of copying a web site design and I'm very pleased with how it turned out.

Alt Text

I'm not going to go through the entire codebase of how I developed this, but here are some of the keypoints.

  • To make things easier, I did all the HTML first and then styled it after.
  • The layout is based on a floating column to the left of the screen.
  • The floating column contains a div with a position: fixed attribute. This allows the left hand side to remain constant whilst the rest of the page is scrolled.
  • The navigation components in the sidebar are all stored within a html nav element as a ul. From what I can read, this seems to be a standard way of doing navigation links.
  • All the sizes are fixed and do not change when the page is resized. The page isn't responsive. This is on my list to implement.

You can get the full source code for this on my CodePen.

See the Pen Seek by davey (@cloudblogaas) on CodePen.

What did I learn doing this?

The main thing that I learned was that watching no amount of videos will make you good at CSS. You have to practice. There are no complicated images or effects in this page, it's more of an exercise in CSS layout.

You need to understand CSS Selector precedence. Doing this has shown me the sort of problems you can experience with css precedence if you're not careful with naming and ordering of elements.

Above all, I enjoyed doing this, and am looking forward to my next attempt.


Hyde Theme

Photo by Bimata Prathama

Share this