Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Vertical shadows on table or div...

Posted on 2004-10-03
6
Medium Priority
?
443 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
[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
  • 3
  • 2
6 Comments
 
LVL 49

Assisted Solution

by:Roonaan
Roonaan earned 200 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 800 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
Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

715 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