Featured Tutorials

photoshop tutorials, gradient filter, photo effects, brand image,gradient mapping,gradients in photoshop,gradient colours,photo gradients,gradient photo,gradient filter,photoshop filters Gradient Mapping

Gradient Mapping

How to transform a standard photograph for use with a specific colour scheme or brand imag..

css, learn css,css links,css classes,links in css,a tag css,a tag,css a,css tutorial,css help,a class,a tag Learn CSS: Link Classes & Properties

Learn CSS: Link Classes & Properties

Learn how to create and customise links or <a> tags in CSS. This detailed tutorial w..

photoshop,buttons,blending options,web 2.0,web20,stylish buttons,sleek buttons,shiny buttons,shiny effects,rss button,rss logo Sleek Web 2.0 Buttons using Photoshop's

Sleek Web 2.0 Buttons using Photoshop's "Blending Options"

This is one of the best looking buttons I've seen and have used this tutorial many times i..

3d studio max,3d studio,3ds max,3ds,diamond,ruby,modeling a diamond,modeling a ruby,modeling a ring,how to model,shape modeling Modeling a Ruby / Diamond in 3D Studio Max

Modeling a Ruby / Diamond in 3D Studio Max

This is a very detailed video tutorial that will teach you how to easily create a 3D ruby ..

photoshop grass,photoshop tutorial,grass texture,grassy texture,ground texture,textures,green texture,create textures,texture tutorial Grass Textures in Photoshop using Filters

Grass Textures in Photoshop using Filters

Its amazing what you can get from using a combination of different filter in Photoshop. Th..

Featured Videos

This video will show you in stages how to realistically color a b..

This tutorial will teach you how to create a dynamic drop down me..

This tutorial will teach you a very simple yet effective way to c..

One of the best computer based drawings I've seen, this video tak..

Heres a tutorial showing off a fancy new scripting feature in dre..

Learn CSS: Border Styles & Properties

There are many different types of border from solid one color to double line and even in and out set borders with different shades of color. The examples below show the code that you will need to use in the <style></style> tags of your div tags, images or form buttons.

 

Border Properties

Setting the width of a border is as simple as this:

<div style="border-width: 2px;"></div>

You can also use these next examples to change the color of a border:

<div style="border-color: #334455;"></div>

<div style="border-color: red;"></div>

 

Border Styles

Here are some examples of the various border types available with examples to show you how they appear.

border-width: 2px;border-style: solid; border-color: #f48039;

This is a solid border

 

border-width: 2px;border-style: dashed; border-color: #f48039;

This is a dashed border

 

border-width: 2px;border-style: dotted; border-color: #f48039;

This is a dotted border

 

border-width: 2px;border-style: double; border-color: #f48039;

This is a double border

 

border-width: 4px; border-style: groove; border-color: #f48039;

This is a groove border

 

border-width: 4px; border-style: ridge; border-color: #f48039;

This is a ridge border

 

border-width: 4px; border-style: inset; border-color: #f48039;

This is a inset border

 

border-width: 4px; border-style: outset;

This is a outset border

 

Shorthand CSS (for those who want their code to look a bit more pro)

Short hand in css is a way of writing many of the above examples in one line of property code, or in other words squeezing it all into one simple line, as follows:

<div style="border: 10px solid #f48039;"></div>

This is a outset border

 

More Web Design...

Other Content...

 Subscribe to our feed

Send to a friend