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.
Jan
7
2009

How to make a custom box

Check out the “your tool box” box on the left sidebar. It’s a custom box I created with css that I placed in a text widget. This is how I created it.

Go to Dashboard —-> Appearance —->Widgets

I chose Sidebar 1 from the drop down menu

I added a text widget to the sidebar by clicking on “add” next to “text” I opened the text widget and inserted the following code…

<div id=”box1″> <h2>Your Tool Box</h2> <ul> <li class=”crayonImageHome”><a href=”http://www.febooti.com/products/iezoom/online-help/online-color-chart-picker.html”  title=”cool color picker app”><img src=”http://www.thesishacker.com/wp-content/themes/thesis/custom/images/colorchart.jpg” alt=”crayon image” />    </a></li>
<li class=”firebug”><a href=”http://getfirebug.com/”  title=”ananlyze code easily with this app”><img src=”http://www.thesishacker.com/wp-content/themes/thesis/custom/images/firebug.jpg” alt=”firebug image” />    </a></li>
<li class=”firefox”><a href=”http://www.mozilla.com/en-US/firefox/”  title=”The best browser for web development”><img src=”http://www.thesishacker.com/wp-content/themes/thesis/custom/images/firefox.jpg” alt=”firefox image” />    </a></li>
<li class=”aptana”><a href=”http://www.aptana.com”  title=”The best free code editor for all your needs”><img src=”http://www.thesishacker.com/wp-content/themes/thesis/custom/images/aptana.jpg” alt=”aptana” />    </a></li>
<li class=”smallhookmap”><a href=”http://www.thesishacker.com/?page_id=298″  title=”A map that shows where all the hooks go”><img src=”http://www.thesishacker.com/wp-content/themes/thesis/custom/images/smallhookmap.png” alt=”hookmap” />    </a></li>
<li class=”w3logo”><a href=”http://www.w3schools.com/default.asp”  title=”Learn web development here”><img src=”http://www.thesishacker.com/wp-content/themes/thesis/custom/images/w3logo.png” alt=”w3logo” />    </a></li> </ul> </div>

In your custom.ss file add the following code. You can put it anywhere you want but I recommend putting it at the top. Always describe what you’re doing by putting your descripton between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…

/*tool box */
.custom #box1 {
width: 11.4em;
position: relative;
padding: 1em;
background-color: #eeeedd;
margin-left: -.77em;
margin-top: .3em;
}
.custom #box1 ul {
margin:0;
padding: 0;
list-style: none;
}
.custom #box1 h2 {
text-align: center;
margin-bottom: 0.5em;
font-size: 1.5em;
}
.custom .crayonImageHome { margin: .5em 0 .5em .7em;}
.custom .firebug { margin: .5em 0 .5em .8em;}
.custom .firefox { margin: .5em 0 .5em .7em;}
.custom .aptana { margin-left: 2.3em; margin-bottom: -.5em;}
.custom .smallhookmap { margin-left: 3.3em;}
.custom .w3logo { margin: -1em 0 0 0em; }

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...

{ 1 comment… read it below or add one }

mario March 5, 2009 at 12:08 am

zq2Uha h1! nice site! oxyutelno

Reply

Leave a Comment

Previous post: How to make your header a clickable image map header

Next post: Add an avatar or picture next to your title and byline