Mike’s Experiments - PHP: Font Sizer

Using PHP and CSS, create an accessible and interactive way site visitors can change their text or font size in case they don’t know they can do it with their browser. Setting a cookie with this function allows the user’s preference to be recalled and applied on their next visit.
Get the XHTML, CSS, PHP, source. Go to back to the Mike’s Experiments index.


Set Your Font Size

Select and set your preferred text-size on this site (paragraph below only in this case).

Example Text: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi varius. Integer viverra venenatis urna. Nulla justo arcu, elementum eu, pellentesque semper, suscipit vitae, turpis. Cras lobortis erat sit amet turpis. Donec felis. Mauris ultricies aliquet neque. Vestibulum luctus viverra odio. Sed vulputate enim at erat. Etiam in lectus in magna posuere pretium. Sed consectetuer blandit ante. Ut justo tellus, accumsan ac, interdum quis, pulvinar id, turpis. Etiam laoreet fringilla wisi. In hac habitasse platea dictumst. Mauris scelerisque pretium sapien. Suspendisse aliquam lectus. Integer dui eros, varius sed, rutrum quis, consectetuer sit amet, augue. Proin non tellus. Vivamus pretium augue id lorem. Phasellus odio. Nam risus purus, aliquam sit amet, vehicula in, faucibus id, sem. Nulla rutrum elit a metus. Curabitur consectetuer accumsan mi.