Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CSS Borders and Drop shadows

CSS Borders and Drop shadows
Thread Tools
Forum Regular
Join Date: Jul 2003
Location: United Kingdom
Status: Offline
Reply With Quote
May 6, 2005, 08:24 AM
 
Hey all.

I'm attempting to implement and inner and outer drop shadow (image) into a design I'm currently developing.

What I'd like is a drop shadow that runs vertically down either side of a the main content section (see image below), but I'm stumped as to how to do it.



I realise CSS 3 will support border images, but whats the work around for doing it with CSS 2.x?
widget : widget
icons + design :: macintosh + windows
magnum opus :: every piece of apple hardware ever made
     
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
May 6, 2005, 09:31 AM
 
Looks exactly like what I did with VanillaSoap.

The main gist of it is the main content has a background with the bg colour and shadow on it which is tiled vertically. The main box has padding on either side to allow the shadow to sit there (this is the outer shadow by the way - it's a PNG with transparency gradient for the shadows).

The inner shadows is achieved by cheating - it's just two absolutely position divs inside the main content made to stretch the whole length of the main content.

Dig round the code of VS if you want a better explanation of how exactly I did it (note: there's probably better ways, VS was coded on a drunken afternoon last weekend).
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2