-onla at the ends
should be
- only at the ends
And the css for that outer wrapper coul look like this (you can also position the bg image):
div.borderContainer {background:url('thinImg.g
http://www.w3schools.com/c
Main Topics
Browse All TopicsHi all,
Im wondering if its possible to use CSS to make an image the border of a div?
Im trying to create a shadow border effect that you see on pages like www.news.com, any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
-onla at the ends
should be
- only at the ends
And the css for that outer wrapper coul look like this (you can also position the bg image):
div.borderContainer {background:url('thinImg.g
http://www.w3schools.com/c
Business Accounts
Answer for Membership
by: TNamePosted on 2007-03-15 at 04:27:25ID: 18725978
Not the border, but the background of a wrapper div, that looks like a border for the inner div...
/i/hdft/bo dy_bg.gif
You set a very thin (1px is enough) gif (or png) as background image of a div and repeat the image it vertically (or horizontally) and wrap another div (the one that will seem to "drop the shadow") inside the larger div with the background image.
Here you can see a very long 886px x 1px gif that's mostly transparent -onla at the ends there are gradient segments.
This bg. image causes the lateral "shadows" on the main content box:
http://i.i.com.com/cnwk.1d