My (mostly technical) blog

Posts Tagged ‘design

Clean CSS Form

Posted by: sabbour on: July 4, 2008

I shamelessly ripped of the form designed at this excellent blog to use a somehow modified CSS structure.

The CSS button classes are customizable to allow positive/negative action buttons with different CSS images.

body{
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}

p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}

form.cleanform{
margin:0 auto;
width:400px;
padding:14px;
border:solid 2px #b7ddf2;
background:#EAFFD5;
}

form.cleanform div.header {
border-bottom:solid 1px #b7ddf2;
font-size:11px;
margin-bottom:20px;
}

form.cleanform div.header h1 [...]

Tags: , ,

Clean CSS Buttons

Posted by: sabbour on: July 3, 2008

I made up this solution inspired by the post and comments on this excellent blog

<a href="#" class="button add">Add</a>
<a href="#" class="button delete">Delete</a>

a.button{
display:block;
background-position: 6px;
background-repeat:no-repeat;
font-weight:bold;
font-family: Trebuchet MS, Tahoma, sans-serif;
font-size: 0.7em;
text-decoration:none;
text-indent:30px;
color:#555555;
background-color:#EAEAD7;
border:#CCCCCC solid 1px;
height:30px;
width:190px;
line-height:30px;
}

a:hover{
background-color:#F3F3E9;
color:#737373;
}

.add {
background-image:url(add.png);
}

.delete {
background-image:url(delete.png);
}

any idea how can I put those buttons next to each other instead of below each other?
I tried removing the display:block from the but the [...]

Tags: , ,

Ahmed Sabbour's Facebook profile

 

November 2009
S M T W T F S
« Apr    
1234567
891011121314
15161718192021
22232425262728
2930  

Recently bookmarked