12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Web Authoring <strong>Boot</strong> <strong>Camp</strong><br />

allowed break points, like hyphens. If break-word is used, a word can be broken where<br />

needed to fit the given space and prevent overflowing.<br />

Rounded Corners<br />

Border-radius adds curved corners to HTML elements without background images. You<br />

need to add lines to incorporate for Safari /Chrome(-webkit), for Mozilla Firefox (-moz),<br />

and Konqueror (khtml).<br />

H1 span {<br />

color: #990000;<br />

padding: .5em;<br />

-webkit-border-radius: 5px;<br />

-moz-border-radius: 5px;<br />

-khtml-border-radius: 5px;<br />

border-radius: 5px;<br />

}<br />

Box Shadow<br />

The box-shadow property adds shadows to HTML elements without extra markup or<br />

background images.<br />

#shadow {<br />

-moz-box-shadow: 8px 8px 4px #777;<br />

-webkit-box-shadow: 8px 8px 4px #777;<br />

box-shadow: 8px 8px 4px #777;<br />

}<br />

Special Fonts<br />

Most common fonts are used on the web because most computers have them preinstalled.<br />

With CSS3, you can use unique fonts as they can be called from an internet-enabled location<br />

such as the server your website is hosted. @font-face feature.<br />

@font-face {<br />

font-family: Frutiger;<br />

src: url(‘http://example.com/fonts/ Frutiger.ttf’);<br />

}<br />

240

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!