Information
Nothing fancy or complicated this time. Just a simple way of producing drop shadows that are fluid and require NO graphics.
Cascading Style Sheet
.out {
display:block;
background:#bbb;
border:1px solid #ddd;
position:relative;
margin:1em 0;
}
.in {
text-align:center;
background:#fff;
border:1px solid #555;
position:relative;
padding:5px;
font-weight:normal;
}
.ltin {
left:-5px;
}
.tpin {
top:-5px;
}
.narrow {width:8em;} /* change to suit */
h4 {font-weight:bold; color:#000;}
xhtml
<div class="out narrow">
<div class="in ltin tpin">
<h4>Narrow</h4>
<p>This is the text that goes in the middle.</p>
</div>
</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.
Recommended Sites
- Web design in Dorset
Bournmouth based web design agency - VPS Hosting
Virtuozzo VPS Hosting - $19.95/mo - web hosting, dedicated servers
web reseller, managed servers - Create Free Flash website
Create amazing websites with Wix.com - SEO
First Rate - Australian SEO Company - CSS Menus
A CSSplay develoment
"The
web site uses
CSS Play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."
Damon Clark - Brandwidth
CSS play pages




