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.

Styling Code, Part 1<br />

• Attribute: The part of the declaration that is the attribute of the HTML tag: p<br />

{color:red;}<br />

• Value: The style choice made for the selector/tag and its attribute: p {color:red;}<br />

• All property/value pairs need a semi colon to ‘finish’ it. p {color:red;}<br />

CS Embedding in Head Section<br />

In order to create cascading styles through the web page, you need to include the meta<br />

tag:<br />

<br />

<br />

<br />

You also need to add a style opening and closing tag in the head section. Between these<br />

tags you would then code the style rules you would like to impact the entire page.<br />

<br />

<br />

/* This is the CSS style for commenting - use only inside section.<br />

*/<br />

body {background-image:url(folder/imagename.ext);}<br />

p {font-family:arial;}<br />

td {vertical-align:top;}<br />

<br />

<br />

CS Results in Body Section<br />

<br />

<br />

This text will appear as Arial<br />

<br />

151

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

Saved successfully!

Ooh no, something went wrong!