?
Solved

how to achieve nice shadow-type border

Posted on 2004-03-20
8
Medium Priority
?
595 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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

765 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