Archive for the ‘CSS’ Category

Rounded corners - look no images =)

Wednesday, August 13th, 2008

The CSS:

.b1h, .b2h, .b3h, .b4h, .b2bh, .b3bh, .b4bh{font-size:1px; overflow:hidden; display:block;}

.b1h {height:1px; background:#939393; margin:0 5px;}

.b2h, .b2bh {height:1px; background:#7FB539; border-right:2px solid #939393; border-left:2px solid #939393; margin:0 3px;}

.b3h, .b3bh {height:1px; background:#7FB539; border-right:1px solid #939393; border-left:1px solid #939393; margin:0 2px;}

.b4h, .b4bh {height:2px; background:#7FB539; border-right:1px solid #939393; border-left:1px solid #939393; margin:0 1px;}

.b2bh, .b3bh, .b4bh {background: #FFFFFF;}

.headh {background: #7FB539; border-right:1px solid #939393; border-left:1px solid #939393;}

.headh h3 {margin: 0px 10px 0px 10px; padding-bottom: 3px;}

.contenth {background: #FFFFFF; border-right:1px solid #939393; border-left:1px solid #939393; border-top:1px solid #939393;}

.contenth div {margin-left: 12px; padding-top: 5px;}

The HTML:

<b class=”b1h”></b><b class=”b2h”></b><b class=”b3h”></b><b class=”b4h”></b>

<div class=”headh”>

<h3>Header Goes Here</h3>

</div>

<div class=”contenth”>

<div>Content Goes Here</div>

</div>

<b class=”b4bh”></b><b class=”b3bh”></b><b class=”b2bh”></b><b class=”b1h”></b>

The source:

http://blog.yosle.com/2007/09/20/css-round-corners/

» The latest CSS tools

Sunday, August 10th, 2008

 

Check this out: the latest in CSS templating.  It is a listing of common styles for reuse.

» Toolbox CSS

Also check out Meyer’s resets.  These ensure that browsers have the same defaults for the styles of many elements:

http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

Google’s hartija print style sheet is totally worth a look too:

http://code.google.com/p/hartija/

- and if you find CSS frameworks useful, check out Blueprint et al:

http://webtecker.com/2008/04/17/list-of-css-frameworks/

If you need to roll up  your sleeves and get down and dirty and target browsers, check this out:

http://en.wikipedia.org/wiki/CSS_filter

For choosing fonts:

How many machines have certain fonts? http://www.codestyle.org/css/font-family/sampler-CombinedResults.shtml

Windows/Mac equivalent fonts http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

Embed fonts: http://www.alistapart.com/articles/cssatten

For working with grids:

column calculator: http://www.29digital.net/grid/

Dean Edwards’ script that makes IE behave:

http://code.google.com/p/ie7-js/

Link style generator:

http://www.accessify.com/tools-and-wizards/developer-tools/list-o-matic/default.php?step=1