[thelist] dumb css questions for valid XHTML 1.0 Strict
Ricky Zhou
ricky.zhou at gmail.com
Sat May 26 15:08:39 CDT 2007
Meredith Tupper wrote:
> no border around linked images
a img { border: none; }
> external links should open in a new window.
This isn't really a job for CSS, as it doesn't deal with presentation.
However, I'd like to strongly discourage against making links open in
new windows- let users control/manage their own windows. That said, my
suggestion is to have an image/icon to denote external links- here is an
example of the CSS you might use (with an icon at /images/external.png):
a.external
{
background: url(/images/external.png) center right no-repeat;
padding-right: [width of icon + some offset];
}
Hope this helps,
Ricky
More information about the thelist
mailing list