How To Use Highlights In Web Design

by Matt on December 15, 2008 · 28 comments

in How-To,Web Design Tips

One of the big trends in web design right now is using highlights and bevels to separate colors. This is a very good technique, as it provides a smooth contrast between two colors and makes for a great clean look. Even I have used this technique on the Spoonfed background. Notice how I used a 1 pixel line to separate the blue and the gray colors.

How/When To Use Highlights

Using this technique is a great way to separate background colors to make the design flow better. It gives off a very professional feeling when used in CSS.  It is best to use this highlight technique as a separator between two different background colors, or between headers and menus. Although these highlights are only 1 or 2 pixels high, they can really make a big difference.

Style 1 – 1 Pixel White Line

This trick isn’t at all hard and it is very easy to accomplish. The easiest and simplest highlight is just using a 1 pixel white line extending across the whole page. This style looks best on grays and lighter colors.

In Photoshop, use the horizontal Single Row Marquee tool to select a 1 px line where two colors meet. Then fill the select area with white.

The image below shows how I used a thin white line to divide the light blue and gray in the background. Take a look at the background to see how it looks when incorporated with the rest of the site.

Here is where I used a single white line in the Spoonfed Design background. Notice that I also used some shading above the line to add emphasis to the effect. Shading might be something to consider, but you would have to play around with it to see how it looks.

Style 2 – Bevel

Bevels, 2 pixel lines consisting of a dark and light line, are another excellent way to contrast between two different colors. If you want to separate two similar colors, such as a white and a light gray, use a bevel to make a distinct divider. This isn’t the only place to use it, though.

Here I used a bevel as a divider between gray and white. I kept the single white line, but added a line above the white line. Notice that the second bevel line is a darker gray than the other gray color. It is important to have a slight contrast to make the bevel more distinct and flow better.

Using the bevel with a gray and white can create a professional minimalist look but at the same time, it is simple and easy.

Style 3 – Highlight On Bright Colors

So far I have explained how to use this effect on minimalistic colors, but what do you do with bright colors with high contrasts?  When making a divider between two bright colors you can’t use white because it wouldn’t flow nicely. To solve this problem, you must use a lighter shade of the bottom color. For example, I used a bright green above the darker green to separate the green and dark gray.

Here is the highlight in use. If I had used white instead of the light green, it would look out of place. Although small, the highlight can add a lot of energy to the design. These are the colors Envato used in their corporate page: http://envato.com/.

Some Examples of Bevels

Here are a few examples of how bevels in highlights were used. Make sure to visit the website to see the highlights in better detail.

Envato

The guys over at Envato use this technique at least once in each of their sites. I think they influenced this becoming such a big trend.

Freelance Switch

Take a look at Freelance Switch to see how Envato uses bright highlights and bevels.

CSS Mania

CSS Mania uses a single line highlight across the top of the background. It is a great example of the single line technique.

Donor Tools

Donor Tools uses the bevel on the bottom of the navigation. See how they used a bevel as a separator because the background color was white.

Designchuchi

Designchuchi uses a few bevels and highlights to make for an excellent clean look. The highlights help the blues and grays to flow together.

Throw In Your Two Cents.

Please, feel free to leave a comment about your thoughts, opinions, or whatever.


Spread the Love:

{ 27 comments… read them below or add one }

Leon Poole December 15, 2008 at 9:01 pm

Good post – this highlight technique has also become a lot more seen in ‘web 2.0′ styled designs. A soft gradient either side of the highlight also works really well. For me the main purpose of this effect is to better define a specific area, most often the header.

Matt December 15, 2008 at 9:07 pm

@ Leon Poole

Thanks, and you’re right, it is certainly a web 2.0 trend.

If used correctly, soft gradients can be an awesome way to add to this technique too.

adelle December 15, 2008 at 9:28 pm

Oooh nice post! I like to see details like this, awesome!

Lee Munroe December 15, 2008 at 9:36 pm

Nice pointers, attention to detail like this just gives a design that extra fulfillment.

Matthew December 15, 2008 at 9:50 pm

Great pointers! I’d really love to see more short simple tutorials like this, it helps anyone perfect their web design skills!

Eli December 15, 2008 at 10:44 pm

Great and helpful Photoshop tutorial. Bookmarked on Delicious (:

Chris December 15, 2008 at 11:36 pm

Love your tutorial. Keep them coming…

Dulce December 15, 2008 at 11:57 pm

Thanks for sharing some other examples of this technique. I’m fond of using this style in some of my designs.

Linda December 16, 2008 at 9:44 pm

Excellent post. I’m going to implement this technique in my designs because I love it!!

michael December 17, 2008 at 9:26 am

Thank u r information

Rob December 18, 2008 at 12:13 pm

Nice… I’d always thought I was missing something from my designs. I think this could just be it.

Michael December 18, 2008 at 4:08 pm

Good post. Increase the line-height on your site’s body text to at-least 1.7em .. It is difficult to read quickly at 1.4em …

Keep up the good work!

Ben Good December 18, 2008 at 5:53 pm

Nice post. Envato definitely rocks this technique!

Chris O'Donnell December 18, 2008 at 8:03 pm

Thanks! Quite a useful post, despite the simplicity of the subject…

@Michael
How so? 1.4em is sufficient for most books, websites, etc. I’m not sure it’s necessary unless the paragraphs being written get quite a bit longer.

Sebastian December 19, 2008 at 4:00 am

simple but very good!

whiskeyfrances December 28, 2008 at 12:44 am

Incredible, isn’t it? The power of just one pixel!

Nice article!

pete dooley January 1, 2009 at 3:55 pm

Subtle little things that take you from the basic to impressive. Many tuts are weak in description, yours is concise and so helpful.
Thanks

myhieu January 2, 2009 at 5:13 am

Very helpful
Thx for sharing your knowledge ^^

Krystian January 3, 2009 at 3:28 am

Added to PSD Showcase

just to let you know…

Chiang Mai Web Design January 27, 2009 at 2:43 am

Good tips. thx.

Freelancer Ahmedabad February 7, 2009 at 5:58 am

Really useful tip dude!

Keep posting…

raf January 17, 2011 at 7:36 am

raf

It’s very informative. Thanks for sharing.

Prince Pal June 16, 2011 at 6:43 am

Nice post and website :) keep up the good work

Bicycle Exporters India September 12, 2011 at 2:45 am

Thanks for the information and its good i will share these content among social media.

Garments Exporters Kolkata September 12, 2011 at 6:59 am

This is awesome – thank you for curating all this valuable information.

Umberto June 20, 2012 at 1:59 pm

Haha thats funny that i stumbled across this.
I just use the one pixel line or highlight as you call it for one of my clients website. I was so impressed on how good it looked… and now i read this… just great! Thanks for sharing

fueled January 17, 2014 at 12:08 am

I’m really impressed with your writing skills and also with the layout on
your weblog. Is this a paid theme or did you modify it yourself?
Anyway keep up the excellent quality writing, it is rare to see a nice
blog like this one today.

Leave a Comment

{ 1 trackback }

Previous post:

Next post: