@supports APICheck if a CSS feature is ready in a browser or not and apply code for both scenariosJan 23, 2026·2 min read
Using ::marker to display content before contentEver wanted a piece of content before the content ? Well …. there is ::before which is what it is used for. But there is another selector called ::marker which is used for displaying content before a list item. It is possible to display a non-list it...Nov 1, 2020·2 min read
Using the data URI scheme to reduce an HTTP requestEver wanted to include a 1px wide/high background image that repeats (one way), to your existing sprite image just to reduce that one HTTP request, even though it may not have that great an impact on speed ? Since the image repeats itself (repeat-x o...Jan 1, 2011·1 min read
FireFox Specific CSSThough the chances of wanting this is pretty slim, but if you want to target a set of CSS attributes just for FireFox instead of using JavaScript to alter the styles, its possible.Though most -moz- properties get deprecated & later removed, when the ...Dec 4, 2010·1 min read
Adjusting styles based on a languageTraditionally, language HTML files would be stored separately and load language specific CSS files.But now we just store the language strings separately and programmatically print the language strings within the same HTML file.Very often I find mysel...Nov 26, 2010·1 min read
CSS only Tabs using :targetIts highly unlikely that tabs using only CSS would replace JavaScript based ones. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <title>CSS Tabs</title> <style type...Oct 15, 2010·2 min read
Preventing Images From Being Saved on Right-ClickMore often than not, people have asked that if they uploaded their profile picture online, would it be possible to disable downloading of their profile photo by others. There is no full-proof method of preventing images from being saved by the end us...Oct 8, 2010·1 min read