CSS tricks

Titel*
Husk at skrive titel på det problem der skal løses

Beskrivelse*
Husk at skrive en kort beskrivelse af hvad det er for en problem der løses

Kode (css/html)*
Husk at skrive links til kilde eller hvor problemet kan læses

Brugerflade*
Ugyldig indtastning

Browsersupport*
Ugyldig indtastning


Titel:
Åben alle eksterne links i nyt vindue/tab

Beskrivelse:
jQuery kode til at åbne alle eksterne links i nye vinduer/tabs. Skal indsættes i index.php lige før -tag

Kode:

jQuery("a[href^='http://']").attr("target","_blank");

Link:
http://css-tricks.com/snippets/jquery/open-external-links-in-new-window/

Brugerflade:
Mac\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Windows

Browsersupport:
Chrome\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Safari\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Firefox\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Internet Explorer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Opera

Titel:
FONT-SMOOTHING

Beskrivelse:
fjerner pixeleret ujævnheder i font ("filter" = IE; "webkit" = Chrome)

Kode:
h1, h2, h3, h4, h5, h6, p, li, td {

-webkit-text-stroke: 0.35px;

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sb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
.do-not-smooth {
filter: none;
}

Link:
https://gist.github.com/DanielWright/1370958

Brugerflade:
Mac\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Windows

Browsersupport:
Chrome\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Internet Explorer

Resultater 1 - 2 ud af 2