PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Just looking for a little help with code clean up. Been hacking around with this and it works great but it looks too sloppy. I was wondering if there might be a better way of doing this. Here's the story, the people access the site have a high percentage of elderly. To make the site more accessible, I added a button that then loads an alternative CSS file with basically just larger fonts. Loads the preference in a session and follows them around while they are on the site. Like I said, I got it working but there must be a better way of doing it... Any suggestions? Here is how I got it working.
I use two stylesheets on my website also. One to add the navigtion to the right side of the page, and one to add the navigation to the left. I actually use JavaScript to do this, but PHP would be much cleaner.