free hit counters
If you are using Internet Explorer as your browser please be running at least IE 7 or above. This site does not support IE 6 or below. Go here for the latest free version including easy download and installation instructions If you want to make it real easy on yourself, download Firefox , the most popular browser in the world. It's free and simple. You'll be so glad you did.
Mar
15
2009

Add shadow border to your blog page

If you want to create a subtle 3d shadow border around your blog page…

134

Try this technique…

First thing I did is made an image in photoshop. Use any graphic program you want. It’s 1050 px wide X 100 px tall. I uploaded it to my server and placed it in the custom/images folder. This is what it looks like. It’s been shrunken down to fit within this blog post….

Shadow.png:

shadow

Next, put the image onto the background by placing the following code in the custom.css file and uploading it to your server. You can move the image from left to right with the first % value. Adjust it to create your desired effect.

body.custom {background: url(images/shadow.png) repeat-y scroll 50% 0 ;}

And that’s it!

Leaving a comment with code in it...

If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...

  1. Copy your code you want to show
  2. Click here to go to the site to escape the code
  3. Follow the directions, it's so easy
  4. Once you have the escaped code copied, paste it in the comments area where you want
  5. Now you can enjoy life


Go ahead, leave a comment...

{ 3 comments… read them below or add one }

allison April 16, 2009 at 8:44 pm

Thanks for this. So basically you just made two rectangles that were a solid line on the inside and then just blurred out a little? So where within the 1050 width, did you put these shadow pieces? I know they say the optimal width for a thesis header is 959, so how does that fit together with the 1050 width. Im a bit of a beginner here. Thanks alot for you information.

Reply

allison April 18, 2009 at 11:59 am

Well, I have tried this a number of ways and with no success. Ive been trying to create that image in Appleworks Painting. Maybe that program just wont work? Ive been contemplating buying Adobe Elements. Do you think I should be able to do this in Appleworks Painting? Thanks for your help. Appreciate all your tutorials.

Reply

allison April 18, 2009 at 12:29 pm

just thought Id let you know i figured it out. I had to make my image “transparent.” thanks!

Reply

Leave a Comment

Previous post: Change comments appearance

Next post: Add avatar to wordpress default