May18

Adding shadow to wp-codebox

Posted by: Brian Chan | Filed in: technology | Tags: , | 05:55 pm, May 18th, 2012 No Comments »

Too bad wp-codebox contains two divs namely wp_codebox_msgheader and wp_codebox, we cannot simply give the box-shadow to one single div. After playing with this a bit, here is my parameters. The css file is located at /your-wp-root/wp-content/plugins/wp-codebox/css/codebox.css.

1
2
3
4
5
6
.wp_codebox_msgheader {
        box-shadow: 6px 14px 11px #808083;
}
.wp_codebox {
        box-shadow: 7px 10px 10px #888;
}

The overlapped area seems smooth with this setting.

I also added bottom margin to the codebox, see if you like it.

1
2
3
.wp_codebox {
        margin-bottom: 20px;
}


Jun10

PSD to CSS

Posted by: Brian Chan | Filed in: technology | Tags: , , | 12:36 am, June 10th, 2010 No Comments »

I found this nice video tutorial recently. Say you hire someone or somehow you have a website design on a psd file, now you need to convert that to actual webpages. You can actually do that yourself without getting other people to do it. It might be much easier than you think!

I am assuming you already have some knowledge in HTML and CSS… if not… it’s a good idea to learn them! ;)

Step 1: Writing the Markup

Step 2: Coding the CSS



Apr15

CSS playground

Posted by: Brian Chan | Filed in: technology | Tags: | 07:03 pm, April 15th, 2010 No Comments »

At last! These guys did it! If you like CSS and you are playing with it, you will probably want to check out these two online mini CSS IDEs. They are JS Fiddle and CSS Desk. I will be placing these two at my tools page.