Highlight ‘Current Page’ Link

In your typical page navigation, you might have a ‘normal’ state and a ‘hover’ state using the :hover pseudo-class. For example, all nav links have a blue background which changes to a red background when the mouse hovers over them. What if you decide that you’d like the ‘current page’ link to have a red [...]

Highlight Current Page Using PHP Includes

If you’re already using css to highlight the ‘current page’ in your navigation but then decide that you want to include your navigation using a PHP Include, a problem becomes apparent:

Simple PHP Style-Switcher

If you want to give your visitors the option of viewing your site with several pre-defined styles that you’ve created, a simple bit of PHP is just what you’re after. Before you start, you’ll need to have some alternative stylesheets ready to go and a web host that supports PHP (hopefully, that bit goes without [...]

Know Your Css Selectors

After you’ve shortened your css, it’s time to get to know your css selectors. The following selectors are all in the css2.1 specifications and should work in all modern browsers (in case you’re wondering, Internet Explorer 6 is not a modern browser!). I haven’t covered the class and id selectors as I assume you’re already [...]

Linking To Content On The Same Page

Using Your Element Ids A very simple feature to add to your web page is a link to content that isn’t currently visible. This can be very handy if your page is particularly long and you want to save your users from manually scrolling with their mouse.