?
Solved

how to achieve nice shadow-type border

Posted on 2004-03-20
8
Medium Priority
?
603 Views
Last Modified: 2006-11-17
If you look at web page
http://www.rogershelp.com/help/home.shtml
you can see on the left side news bulletin with shadow red border, so my question is How to achieve like this shadow-like border around element ?
0
Comment
Question by:amakalski
  • 4
  • 2
  • 2
8 Comments
 
LVL 6

Expert Comment

by:bvinson
ID: 10642887
I think this page will show you exactly what you need.

bvinson
0
 
LVL 6

Expert Comment

by:bvinson
ID: 10642888
Hmmm,

How about a link??

http://www.alistapart.com/articles/cssdropshadows/

Sorry,
bvinson
0
 
LVL 15

Accepted Solution

by:
Daydreams earned 800 total points
ID: 10644143
Greetings amakaski!

Take a look at this (I gave it some color to make it easier to see):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<title>table drop shadow</title>
<style type="text/css">
body{background-color:#ffffff;font-family:Times New Roman, Verdana, Arial;}
.box { float: left; width:100px; height:100px;}
#boxContent { border: none; background: #fcf;  position: relative; left: -3px; top: -3px;}
#boxContainer { position: relative; background: #ff0000; margin: 4px;}
</style>
</head>
<body>
<div class="box" id="boxContainer">
<div class="box" id="boxContent">
<table><tr><td>this is a table</td></tr><tr><td>with a drop shadow.</td></tr></table>
</div>
</BODY>
</HTML>
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Expert Comment

by:Daydreams
ID: 10644473
amakalski, just so you know, you don't have to use a table. You can, for example, change:

<table><tr><td>this is a table</td></tr><tr><td>with a drop shadow.</td></tr></table>

To:

<p>This has a dropshadow</p>

You can also change the color of:

#boxContainer { position: relative; background: #ff0000; margin: 4px;}

..to any background-color you like.
0
 

Author Comment

by:amakalski
ID: 10646807
Greetings Daydreams,
1.I noticed there is one </div> tag missing, should I put it before </body> tag ??
2. Do you know what browsers are going to support this code ?
0
 
LVL 15

Expert Comment

by:Daydreams
ID: 10647998
amakalski,
1. You are very observant! Yes, you should add the closing </div> tag before the </body> tag.
2. This is fine in IE and Mozilla. Should be fine in modern browsers with CSS support.

0
 

Author Comment

by:amakalski
ID: 10683604
@Daydreams,
:-) It's my Dreamweaver editor who found this.
Thanks, I give you the points
0
 
LVL 15

Expert Comment

by:Daydreams
ID: 10683643
amakalski,

Glad to help, and thanks for the A:)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question