Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Drop shadow around fixed width page
Old 09-28-2007, 04:10 PM Drop shadow around fixed width page
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
I need to put a drop shadow on a site I am working on. It is a fixed width (775px) centered layout (css layout using a container div). I need the shadow to fall on the bottom and left side. I have been searching for hours on how to do this and I can't figure this out. I found plenty of tutorials on how to apply this effect to images, but nothing on how to apply it to a full page. I read this article: http://www.alistapart.com/articles/onionskin/ which seems to be what I want to accomplish, but I need it to go around my container div, not an image. I couldn't figure out how to adapt it either.

My brain hurts.

I really appreciate any help!
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-28-2007, 06:33 PM Re: Drop shadow around fixed width page
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
This would be easy to do with the CSS border property. You'd find the elemt that surrounds the whole page, and add the following CSS elements to it.

HTML Code:
SOMETHING {
border: 4px;
border-top-color: 777777;
border-right-color: 333333;
border-bottom-color: 333333;
border-left-color: 777777;
}
You can mess around the with the size of the border and stuff. If you want the shadow to go the other way simply switch all of the 777777's to 333333's and the other way around.

F.Y.I. If you don't like the colors that those numbers give, all of the HEX codes that are the same character repeating 6 times is on a grayscale...000000 being black and FFFFFF being white.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 09-29-2007, 01:19 PM Re: Drop shadow around fixed width page
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Borders wouldn't work well since what she's looking for is a semi-transparent shadow. A transparent PNG would work for most browsers, except of course IE 6.

My take on this - I'd add a background to the div you want to have the shadow. The background would be the width of the div including the shadow on the right side. I'd then put a shadowed footer div in there, also with a background that includes the shadow.

Something like what I did here: http://www.sanomsfreeedgesalon.com
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 10-01-2007 at 04:11 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-30-2007, 02:10 PM Re: Drop shadow around fixed width page
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
LadynRed, getting Server Not Found.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-30-2007, 02:29 PM Re: Drop shadow around fixed width page
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Quote:
Originally Posted by joder View Post
LadynRed, getting Server Not Found.
Same Here
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 09-30-2007, 10:35 PM Re: Drop shadow around fixed width page
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Thank you coolkbk585. I tried that method and it didn't really look like I wanted. I appreciate your help though!

I kind of get what you are saying LNR. I was thinking that I might have to add something to the side and footer. Let me know if you update that link. Seeing an example would help me out a lot.
Thanks!
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 10-01-2007, 02:00 PM Re: Drop shadow around fixed width page
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Maybe something like http://creativecoding.webforumz.com/...e-glamour.php?

The drop shadow I mean.
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 10-01-2007, 04:12 PM Re: Drop shadow around fixed width page
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Sorry, I fixed the link.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-02-2007, 02:56 PM Re: Drop shadow around fixed width page
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Well, I finally got it. I would not recommend putting drop shadows on your web page. It is a pain in the you-know-what.

Anyway, I ended up putting an image on top of my main container, another image under my container, then I wrapped my container in another div. This div (I called it shadow container) is 15 pixels larger than my regular container div. I put a background image that repeats vertically inside the shadow container, and added 15px of left margin to my original container.
Not the greatest code, but it works!

Thanks for all your help!
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Drop shadow around fixed width page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28665 seconds with 12 queries