954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

CSS Border's Shadow ???

Is there any code within CSS that allows me to have SHADOW around the "border-left" and "border-right" ???

Example of it can be seen from:

http://www.tristarwebdesign.co.uk/

Is it not possible to merely create one more "div" (such as "centerContentShadow") & have it in the background of the "centerContent". I was hoping to create a shadow in Fireworks (using gradient) & then adjust the width of the shadow in the way that shadow ONLY appears in the "border-left" and "border-right" of the "centerContent" ???

My related CSS code could be seen as:

#centerContentShadow
{
	background-image:url(content-shadow.jpg);
}

#centerContent
{
	background-image:url(contentbackground.jpg);
	width:700px; 
	margin-left:45px;
	float:left;
	border-left:1px solid #999999;
	border-right:1px solid #999999;
}


The HTML code would be (displaying BOTh "div"):

<div id="centerContentShadow">
<div id="centerContent">


My website itself can be seen at: http://darsh25.silverserve.co.uk/contact.php (the only link I've uploaded, at the moment)

Any help would be greatly appreciated, since the background is WHITE, so it looks rather deadly, at the moment & hopefully, having shadow would jazz it up a bit.

j4mes_bond25
Junior Poster in Training
90 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

Those effects are done with images. There is no "shadow" property with CSS.

This article on A List Apart nicely describes the technique.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You