More snazzy borders

22nd July 2006



The snazzy border container


This is the outer snazzy box containing the three snazzy boxes below.


Blah Blah Title

You are not currently logged in.

If you don't have a login you can register here.

If you have one, then LOGIN here.

If you don't know if you should have one - and need convincing that free, confidential, fast and useful is not enough then click here for a demo.

Blah Blah Title

You are not currently logged in.

If you don't have a login you can register here.

If you have one, then LOGIN here.

If you don't know if you should have one - and need convincing that free, confidential, fast and useful is not enough then click here for a demo.

Blah Blah Title

You are not currently logged in.

If you don't have a login you can register here.

If you have one, then LOGIN here.

If you don't know if you should have one - and need convincing that free, confidential, fast and useful is not enough then click here for a demo.


The end



Information

This is a continuation of the Snazzy borders theme and is based on a request by Mark Haller for a Snazzy border box with a coloured heading that can be easily styled in different colours.

The color change is held in a separate background class style for each color which is then combined with the standard snazzy box style.

The result is that you can combine the standard style and the background color style to give the required look.

This can be used for any number of different color combinations.

Cascading Style Sheet

	.xsnazzy h1, .zsnazzy h1 {
	margin:0; 
	font-size:1.2em; 
	padding:0 10px 5px 10px; 
	border-bottom:1px solid #444;
	}
	.xsnazzy p, .zsnazzy p {
	margin:0; 
	padding:5px 10px; 
	font-size:10px;
	}
	.xsnazzy {
	background: transparent; 
	width:240px; 
	float:left; 
	margin:0 3px;
	}

	.xtop, .xbottom {
	display:block; 
	background:transparent; 
	font-size:1px;
	}
	.xb1, .xb2, .xb3, .xb4 {
	display:block; 
	overflow:hidden;
	}
	.xb1, .xb2, .xb3 {
	height:1px;
	}
	.xb2, .xb3, .xb4 {
	background:#fff; 
	border-left:1px solid #444;
	border-right:1px solid #444;
	}
	.xb1 {
	margin:0 5px; 
	background:#444;
	}
	.xb2 {
	margin:0 3px;
	border-width:0 2px;
	}
	.xb3 {
	margin:0 2px;
	}
	.xb4 {
	height:2px; 
	margin:0 1px;
	}

	.xboxcontent {
	display:block; 
	border:0 solid #444; 
	border-width:0 1px; 
	height:auto;
	}
	* html .xboxcontent {
	height:1px;
	}

	.color_a {
	background:#c9ba65;
	color:#fff;
	}
	.color_b {
	background:#d4d8bd; 
	color:#000;
	}
	.color_c {
	background:#758279; 
	color:#fff;
	}
	.color_d {
	background:#b2ab9b; 
	color:#000;
	}
	

Typical xhtml

<div class="xsnazzy">
<b class="xtop"><b class="xb1"></b><b class="xb2 color_a">
</b><b class="xb3 color_a"></b><b class="xb4 color_a"></b></b>
<div class="xboxcontent">
<h1 class="color_a">Blah Blah Title</h1>
<p>You are not currently logged in.</p>
<p>If you don't have a login you can 
<a href="#nogo">register here</a>.</p>
<p>If you have one, then LOGIN <a href="#nogo">here</a>.</p>
<p>If you don't know if you should have one - and need convincing 
that free, confidential, fast and useful is not enough then click 
<a href="#nogo">here for a demo</a>.</p>
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b>
<b class="xb2"></b><b class="xb1"></b></b>
</div>


Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.



Please Support CSS play

Please note that if your donation is for a demo/menu then you will need to email me with the url of the demo/menu after making the donation

For more CSS demonstrations I recommend that you visit the Dynamic Drive CSS Library.


Free, practical CSS menus, layouts, and examples

Soft Geometry Creative Industries

Soft Geometry Creative Industries
is a music-based design company located in Bristol UK.
I create artwork for albums, singles, posters and t-shirts.
My work is influenced by punk and post-punk poster and flyer design,
lo-fi photocopy aesthetics,
Francis Bacon and Mark Rothko.

I can provide a start to finish service with my own art and photography, put together work from images provided by yourself, and collaborate on an idea.
softgeometrycreative{at}gmail.com

Follow CSS play


Facebook   Twitter   Facebook Fan Page