- » Nov 30, 2009
- » How To
» Wordpress
How To: Use CSS Sliding Doors With Wordpress Navigation
For people who don’t already know this famous hack, here’s a quick example. We want a navigation menu on our site. To make this menu prettier, we want to add a background image for our links. And here is the big problem:
We must add a fixed width to the links, otherwise the image will be truncated if the link is too short, or the link will overflow the image if its width is too long. That’s why sliding doors are very useful. With some php code, you can bypass this problem.
To use the “Sliding doors” technique in wordpress, you have to paste the following code where you want your code to appear.
This is it. If you enjoyed this article, please consider sharing it!





![Appulo.us Troll Bridge [Question/ Answers]](http://www.zlwo.com/wp-content/uploads/2009/11/appulous-preview-150x150.jpg)
![New iPhone Virus Spy Out Personal Data [WARNING]](http://www.zlwo.com/wp-content/uploads/2009/11/iphone-virus-150x150.jpg)


![Free Vector Graphic and illustration Resources [ZLWOlist]](http://www.zlwo.com/wp-content/uploads/2009/12/free-vector-150x150.jpg)
Learn How To Create a Wordpress Theme in Photoshop
You might also like: