I have a site that used a small shadow on the left and right sides. I setup the css background shadow within the wrapper (bkgrdshad) and filling the content container (bodycontainer) background to white. The shadow image repeats along the y-axis with the image size of 900 x 13. Here is my code:
My questions is how do I get the shadow to resize itself to the full height of the content. Even with setting the container height it stills moves up or down depending on the browsers and operating platform.
Fixed it. Removed the bkgrdshad div and moved the repeat to the body. Here is my update. Now I want my footer to stick to the bottom of the page.
body { margin: 0; padding: 0; background: #FFFFFF; font: small Arial, Helvetica, sans-serif; background:url(images/bkgrdshad.jpg) top center repeat-y; text-align:center; }
Hello. I want to add shadow for the right and left borders for a web site that I made for my teacher. I use joomla cms and of course it has got css file for the template. How can I do this shadows? I mean do I have to create an image of a shadow first?
The shadow is one larger image behind the main content. It was a trick I had to search for too. If you have a 800 px content area, build your shadow with a 800 px white center with shadows on the edges. Repeat the shadow along the y-axis. You will need to apply the shadow to your main wrapper or the body. The above layout the shadow was applied to the body. Not sure if this helps.
thanks buddy. I think I am successful for my first trial. But 800 px of shadow doesnt match to 800 px of body. I mean , I could manage it by keeping the shadow image wider than the main body ;)