Solved

how to achieve nice shadow-type border

Posted on 2004-03-20
8
559 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 200 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
 
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now