MediaWiki talk:Vector.css

From The iPhone Wiki
Revision as of 04:47, 9 January 2012 by 5urd (talk | contribs)
Jump to: navigation, search

@thekirbylover, want to make it so instead of using images, it uses date uri's? just use this site and paste the data uri in place of the image. browsers that don't support data uri's are old, but you could keep the image as a backup. newer browsers will notice the data uri and use it instead of sending another request to the server for the image, while older browsers (even before IE 6) will see the data uri, not know how to parse it and use the image instead. ex:

#content{background:#C5CCD4 url(/wiki/images/d/d6/Pinstripes_loop.png) top left repeat !important;}

to

#content{
 background: #C5CCD4 url(/wiki/images/d/d6/Pinstripes_loop.png) top left repeat !important;
 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAABCAIAAACdaSOZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAABRJREFUGFdjOHrmChK6dPrSDSACALh0EOJgMOPvAAAAAElFTkSuQmCC);
}

--Cole Johnson 21:47, 8 January 2012 (MST)