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 background too? After all, this would make it easier for your visitors to see which page they’re on. Continue reading »

 

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:

Continue reading »

 

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 saying!) as your pages will need to end with the .php extension. Continue reading »

 

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 familiar with them. Continue reading »

 

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. Continue reading »

© 2012 ElanManSuffusion theme by Sayontan Sinha

Page optimized by WP Minify WordPress Plugin