One Failing Unit Test

Currently I am working in a project as QA where we are doing re-modelling of SQL database to a new shiny Graph DB and writing a new rest service on top of it. Greenfield “yay” . I have been hearing a…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating a 3D Navbar

Oftentimes when making a basic site structure, your website can begin to look stale. There are some very basic changes you can make to make your site more interesting. For this tutorial, we’ll look at adding more depth to your site, using a gradient to create a 3D bevel effect on the navbar.

We’ll start with a basic nav bar with a background color and a lighter color for an active link (giving the impression, when a link is selected, that it’s been physically pressed in).

The easiest way to add depth to this is just to add a background gradient. Using the background gradient CSS rule, we can specify a direction and multiple colors with percentages representing positions and CSS will automatically generate a gradient.

With a very simple gradient, we can give the navbar a much better feeling of dimension. We’ll set the non-selected nav bar options to go light to dark, top to bottom. We’ll do the opposite for the selected option, again to give the impression that it is physically depressed.

Small details like this can go a long way in setting your website apart. If you want to add more colors to the gradient, it’s as easy as adding another percentage and color.

Add a comment

Related posts:

9 Signs You Need Help With Fresh Bros

Table of ContentsOur Packwoods Blunt — Gelato Freeze DiariesSee This Report on Packwoods Blunt — Gelato FreezeOur Packwoods Blunt — Gelato Freeze DiariesFacts About Packwoods Gelato Freeze 2g Rolled…

Sudah Saatnya Menjadi Partisipan Aktif Pemilih

Pemilu serentak 2019 semakin berada di depan mata. Pemilu pertama dalam sejarah ketatanegaraan Indonesia secara serentak ini diharapkan akan memantik antusiasme masyarakat untuk berpartisipasi…

When can I assert?

Testing UIs is tricky. One reason for this is the async nature of JavaScript, and of the SPA ecosystem in particular. This is what we’ll dive into today. We’ll look at how async code makes it…