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
Solved

Vertical shadows on table or div...

Posted on 2004-10-03
6
437 Views
Last Modified: 2011-10-03
I have seen a lot of posts about drop shadows for tables and div, however, I haven't seen anything specific to what I am looking for.  I am wanting vertical shadows running down the sides of a centered table or div.  Here is a site that has an example of what I need: http://www.squidfingers.com

Notice that it is a gradient shadow, not just a block of color.  I have my suspicions that that particular site uses an image that just gets centered, but I would like to know if it is possible to do with javaScript or some other web language.  Thanks.
0
Comment
Question by:kearnguy
  • 3
  • 2
6 Comments
 
LVL 49

Assisted Solution

by:Roonaan
Roonaan earned 50 total points
ID: 12215311
IE only, you could look for some css filters and adjust them...
http://www.fred.net/dhark/demos/css/css_filter_examples.html

But using a plain image would be easier.

-r-
0
 
LVL 3

Accepted Solution

by:
OutsideTheBox earned 200 total points
ID: 12216766
Hi kearnguy,

Your suspicions are pretty much right.

The way it was done the example site (squid fingers) was like this:

They created a gif in Photoshop that became this:

http://www.squidfingers.com/images/bkgd_body.gif

Then they caused this to be part of the body background with some css styling :

http://www.squidfingers.com/includes/css/style.css

body {
      font-family: verdana,sans-serif;
      font-size: 11px;
      color: #785A3C;
      background-color: #785A3C;
      background-image: url(/images/bkgd_body.gif);
      background-repeat: repeat-y;
      background-position: center;
      text-align: center;
      margin: 0 auto 0 auto;
      padding: 0;
}

This styling tells the viewer's browser to center this gif on the background, then repeat it all the way to the bottom (repeat-y) and it looks like one solid picture.

Then the div was centered inside.

It is pretty easy doing it this way. Are you just after this styling or is there some dynamic functionality reason you want to use JavaScript to accomplish this?

Cheers!
0
 

Author Comment

by:kearnguy
ID: 12219597
OutsideTheBox,

No, I don't need any dynamic functionality.  I think what you have said will work...I am trying it out now.  I will get back to you once I have tested it.

Thanks again everyone for your help.
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Author Comment

by:kearnguy
ID: 12219864
I thought I understood, but I can't get it to work.  There are obviously things I don't understand about div.  Could you please give me an example of the code.

I have a table with the main content that is set to automatically center.  Does this table need to be in the div?  So the css would be in the head tag and then my content in a table on a layer and it should all work right?

Thanks for being patient with a newbie CSS guy!
0
 

Author Comment

by:kearnguy
ID: 12221713
Nevermind...I figured out what I was doing wrong...

Everything worked wonderful!  I am raising the points to give 50 points to Roonaan for the great resource.  The original points go to OutsideTheBox for the great solution.

Thanks again!
0
 
LVL 3

Expert Comment

by:OutsideTheBox
ID: 12222685
Glad I could help, thanks for the points
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

840 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