12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

What’s Working?<br />

HTML5 and CSS3<br />

Opacity<br />

Opacity is a method of making elements transparent in CSS 3. It is not supported in all<br />

browsers. You can change the opacity of your elements so that they fade in and out. Here<br />

is an example of how we would add 80% opacity to a div using additional lines to support<br />

IE and Mozilla Firefox versions:<br />

div {<br />

opacity: 0.8;<br />

filter: alpha(opacity=80);<br />

-moz-opacity: 0.80;<br />

}<br />

Multi-Column Layout<br />

You can create multi-column layouts without having to use multiple divs. The browser interprets<br />

the properties and create the columns, giving the text a newspaper-like flow. You<br />

can define the number of columns (column-count), the width of each column (columnwidth)<br />

and the gap between columns (column-gap). If column-count is not set, the browser<br />

accommodates as many columns that fit in the available width. You need to add lines to<br />

incorporate for Safari/Chrome (-webkit), for Mozilla Firefox (-moz), etc.<br />

.index #content div {<br />

-webkit-column-count : 4;<br />

-webkit-column-gap : 15px;<br />

-moz-column-count : 4;<br />

-moz-column-gap : 15px;<br />

}<br />

To add a vertical separator between columns, use the column-rule property, which acts<br />

like a border property:<br />

div {column-rule: 1px solid #00000;}<br />

Word Wrap<br />

The word-wrap property is used to prevent long words from overflowing. It can have one<br />

of two values: normal and break-word. The default normal value breaks words only at<br />

239

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

Saved successfully!

Ooh no, something went wrong!