shadow effect?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
KevinK

shadow effect?

Post by KevinK »

I have seen a lot of sites here lately, including this one, with a shadow effect around the outside of a page. How is that done?
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: shadow effect?

Post by Greg »

Download the 'Coolish' template from this website

http://www.gordonmac.com/downloads/html/index.php
Greg
sephir

Re: shadow effect?

Post by sephir »

Whereabouts in the layout.css can the location of the image borders be added?

many tks in advance :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: shadow effect?

Post by Dr.CSS »

in a box

    page_top.gif
      page_bg.gif
    page_bottom.gif

  :)  mark
alarach

Re: shadow effect?

Post by alarach »

What you mean in a box?
Do I have to insert a code like this?
In Layout stylesheet? or in the Template?

  background:  url(http://www.tupais.com/uploads/images/page_top.gif) repeat 0 0px; 
      background:  url(http://www.tupais.com/uploads/images/page_bg.gif) repeat 0 0px; 
    background:  url(http://www.tupais.com/uploads/images/page_bottom.gif) repeat 0 0px; 


I try a lot of things, but I'm confusing!
Can somebody here explain me more in detail?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: shadow effect?

Post by tsw »

here is a simple test page with shadow effect (this is not the best way to do it actually as it is not fluid)

http://tsw.backspace.fi/misc/testeja/shadow.html

doing this for cmsms is pretty simple.

edit your template and add div above content (you can name it something like page_top) and below your content div

then edit your css and add height and the background image to those divs and for the content div.

padding for text not overlapping shadow..
alarach

Re: shadow effect?

Post by alarach »

Can somebody here send me a copy of their layout and template?

Only to check the code?

You can see www.zizimawaterpark.com

This is what I have in Layout:
#pageup {
  width: 750px;
  margin: 10px auto 0 auto;
  padding: 0;
  background: url(uploads/images/page_bg.gif) repeat-y top;
  }
#pagetop {
  background: url(uploads/images/page_top.gif) no-repeat top;
  }
#page_bottom {
  clear: both;
  background: url(uploads/images/page_bottom.gif) no-repeat bottom;
  padding-bottom: 30px;
  }


This is what I have in template:





Last edited by alarach on Tue Apr 25, 2006 11:22 pm, edited 1 time in total.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: shadow effect?

Post by duplay »

Can anyone offer me any detailed help in inserting the shadow effect? I have the images, but am lost.


thanks,mjd
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: shadow effect?

Post by tsw »

Just apply css for your divs.

for container
(repeats image vertically)
background: url(uploads/images/page_bg.gif) repeat-y top;

for top
background: url(uploads/images/page_top.gif) no-repeat top;

and for bottom div
background: url(uploads/images/page_bottom.gif) no-repeat bottom;

then play around with padding so that text doesnt overlap the shadow
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: shadow effect?

Post by duplay »

So can I create a new cs for the shadow and add the above? ordo i had the above to the layout css?


thanks

mjd
cyberman

Re: shadow effect?

Post by cyberman »

Both options you ask should working  :) ...
Locked

Return to “Layout and Design (CSS & HTML)”