Friday, May 21, 2010

Hiding dotted lines around links in Firefox

This is just simple and brilliant:

http://sonspring.com/journal/removing-dotted-links

/* this removes the dotted line around everything linked item */

:-moz-any-link:focus {
outline: none;
}

Friday, May 14, 2010

Adding shadows to divs

Safari and Firefox also have different ways of adding shadows to divs:

// safari
-webkit-box-shadow: 1px 1px 3px #888;
//mozilla
-moz-box-shadow: 1px 1px 3px #888;

Adding gradients to divs

Safari and Firefox require different css to create gardients:

#myDiv{
//Safari:
background-image: -webkit-gradient(linear,left top,left bottom, from(#666), to(#000));
//Mozilla:
background: -moz-linear-gradient(top, #666, #000);
}

Tuesday, May 4, 2010

How to delete a post from a Wordpress database

For some reason the data that I inserted into a post got corrupted and I was unable to delete or edit it within the Wordpress console. So to manually delete a post from the database just do this update:

update (name of posts table) set post_status = 'trash' where id = (ID of offending post)