Category: CSS

A Browser Sniffer/Screen Resolution Sniffer that swaps stylesheets

This is based on two javascripts, combined. This script contains a browser sniffer that will test for Mac or PC, and will also test if the PC is 800×600 or a higher resolution. I figure most macs are set to a decent resolution, but have found much to my dismay that many PC’s here are still set to 1997 standards.

This will swap style sheets depending on what is “sniffed”.

I’ve included the locations for the original scripts, which contain other options you may wish to include.

Continue reading

Dreamweaver, Lists, and CSS

Dreamweaver sometimes has trouble assigning styles consistently. When you select some text in Design View, and apply a CSS style, Dreamweaver seems to make a guess as to which element the style should be applied to, and doesn’t always guess right.

For example – try this:
Paste this into the BODY area of a new Dreamweaver HTML document.

Download Code Here

It should look like this:

noListcode.jpg

Continue reading