How to create a shaded border in WordPress

eileen 7th September 2010

Shaded Effect to Pages | WordPressIf you would like to add a shaded effect behind your page in WordPress you need to insert this piece of code into your style sheet.

Dashboard >Appearance >Editor > Style.CSS

Look for this:  /* You can add your own styles below this line. */

#page {
box-shadow: 10px 10px 10px #000;
-webkit-box-shadow: 10px 10px 10px #000;
-moz-box-shadow: 10px 10px 10px #000;
}

Note: change hex numbers to whatever you want.

To create a “call out box”, a piece of text that is highlighted in a special colored box, you will need to create a div code:

#beaches {
float:none;
height:600px;
background-color:#FFF3DF;
border-color:#FFF3DF;
border-style:none solid solid;
border-width:0 1px 1px;
font-family:Georgia,”Times New Roman”,Times,serif;
margin-bottom:10px;
margin-right: 0px;
margin-left:1px;
margin-top:15px;
padding:16px;
width600px;
box-shadow: 10px 10px 10px #000;
-webkit-box-shadow: 10px 10px 10px #A98A67;
-moz-box-shadow: 10px 10px 10px #A98A67;
}

Please modify the code according to your needs: height, width, font, margins, etc.  I called this one beaches, but you name it whatever is appropriate.

Put that code:

Dashboard >Appearance >Editor > Style.CSS

Look for this:  /* You can add your own styles below this line. */ add the code below this line

Then, go to the page where you want the call out box to appear.  Just before the text that you wish to appear in the box, insert this <div id=”beaches”> text here then when you are done with the box close the div tag </div>.

Adding Shading to a call out box in WordPress

Eileen Lonergan designs WordPress websites for small businesses.  She is based in MA but is lucky enough to have clients all over the world.  Questions on design or looking for a website, please call 508.317.7355 or email, eileen@eileenlonergan.com.


Related Posts with Thumbnails

2 Responses to “How to create a shaded border in WordPress”

  1. Beth Sears Says:

    Eileen,
    I always love reading your helpful posts. If only I could get around to implementing them. My blog could use a little spiffing up!

    – Beth

  2. eileen Says:

    Thank you Beth! I didn’t realize that you have been writing your blog for a year! I looked at it today, and I think it is elegant and calming – which makes me feel as if I am sitting near you while I read.

    I love the name, I hope that you have bought it (I use http://BlueHost.com for my domain names and hosting).

    I am guessing that you are on a free template (there are so many to choose from!) There are some templates that give you more flexibility than others, if you have options for your widgets you may want to show the titles of your recent posts, I find the titles are little juicy tidbits that are sometimes more compelling than the Archives list.

    Also, make sure you do a backup! The wp-database backup is an easy one that will allow you to schedule backups to be emailed to you on a regular basis.

    Another widget that some of my clients enjoy is LinkWithin.

    In the meantime, thanks for your post, please keep writing and keep us posted on your adventures in CA!

        
Facebook Like Button for Dummies