Search results
Results from the WOW.Com Content Network
CSS image replacement is a Web design technique that uses Cascading Style Sheets to replace text on a Web page with an image containing that text. It is intended to keep the page accessible to users of screen readers, text-only web browsers, or other browsers where support for images or style sheets is either disabled or nonexistent, while allowing the image to differ between styles.
packed All images aligned by having same height, justified, captions centered under images packed-overlay Like packed, but caption overlays the image, in a translucent box packed-hover Like packed-overlay, but caption is only visible on hover (degrades gracefully on screen readers, and falls back to packed-overlay if a touch screen is used)
: link. image – link from full image to image description page: link. internal – link to file itself (Media:), and links from thumbnail and magnifying glass icon to image description page (note that color and font size specified for a.internal are only applicable in the first case): link. new example ; default: example
See the 2003 version of Floppy disk for an example. Markup for images is quite complicated. This may be improved in the future: see meta:image pages. Here are some examples of typical markup ("image" for an image in the page, "media" for just a link):
Using the |link= option with the [[File:...]] syntax. Using the <imagemap>...</imagemap> syntax, provided by the ImageMap extension. The |link= syntax is easier to use and can create simple images that the imagemap syntax cannot, but it can only be used with plain pictures; it cannot be used with thumb images.
In this example, the \ + <linefeed> line terminators are a feature of CSS, indicating continuation on the next line. These would be removed by the CSS stylesheet processor, and the data URI would be reconstituted without whitespace, making it correct, since whitespace is not allowed within the data component of a data: URI.
Finally, you can link to one image from a thumbnail's small double-rectangle icon , but display another image using "|thumb=Displayed image name". This is intended for the rare cases when the Wikipedia software that reduces images to thumbnails does a poor job, and you want to provide your own thumbnail.
To get this link, go to the file page and click on the image to open it without the file description, then copy the URL. To remove a default icon, simply add the CSS with no URL. For example, to remove the padlock icon when viewing secure links: