background preloader


Facebook Twitter

Preventing attacks on a user's history through CSS :visited selectors. Web browsers remember what pages a user has visited recently.

Preventing attacks on a user's history through CSS :visited selectors

They use this history for a number of things, such as making links a different color if the page they link to was visited and providing autocompletion in the URL bar. It's been widely known for a while that CSS's ability to style visited links differently from unvisited ones, combined with other Web technology such as JavaScript or simply loading of background images, lets Web pages determine whether a URL is in the user's history very quickly and without any interaction from the user.

This is true in current versions of all major Web browsers. I have a solution that I believe fixes this problem, and therefore helps users keep their history private when they use a Web browser implementing that solution. CSS Circles. A while back I shared a clever technique for creating triangles with only CSS.

CSS Circles

Over the past year, I've found CSS triangles incredibly effective, especially when looking to create tooltips or design elements with a likewise pointer pattern. There's another common shape that's easy to create, and that is the circle. Using border-radius, you can create wonderful CSS circles. Setting the border-radius of each side of an element to 50% will create the circle display at any size: An Introduction To Object Oriented CSS (OOCSS) - Smashing Coding.

320 and up. Compass Documentation. Instant CSS Documentation Search. CSS3 Generator - By Eric Hoffman & Peter Funk. How To Create an IE-Only Stylesheet. Selectors. 5.1 Pattern matching In CSS, pattern matching rules determine which style rules apply to elements in the document tree.


These patterns, called selectors, may range from simple element names to rich contextual patterns. If all conditions in the pattern are true for a certain element, the selector matches the element.