Horizontal list items

Updated Answer I’ve noticed a lot of people are using this answer so I decided to update it a little bit. No longer including support for now-unsupported browsers.

What would be the best method to code heading/title for ul or ol, Like we have caption in table?

Though this is old, I’m updating it for others who might find this question when searching later. @Matt Kelliher: Using the css :before and a data-* attribute for the list is a great idea, but can be modified slightly to be more handicap accessible as well: HTML: CSS: This will make a list with the “header” pseudo element … Read more

CSS background images in WordPress

PHP code cannot run in .css file, however you can use inline style, such as: or The above would be useful when working with custom fields for dynamic image paths. If the image is located in the theme directory, PHP won’t be needed, let’s say the image folder is directly under the theme folder /theme-name/images, and the stylesheet … Read more

CSS fill remaining width

You can realize this layout using CSS table-cells. Modify your HTML slightly as follows: Just remove the wrapper element around the two .button elements. Apply the following CSS: Apply display: table to .container and give it 100% width. For .logoBar, #searchBar, .button, apply display: table-cell. For the #searchBar, set the width to 90%, which force all the other elements to compute a shrink-to-fit width and the … Read more