{u'login_url': u'http://auth.bethel.edu/auth/getsession.cgi?siteid=100&amp;sendto=http%3a%2f%2fknowledgebase%2eits%2ebethel%2eedu%2farticles%2f424%2f', u'title': u'ITS KnowledgeBase - Article #424', u'hide_personalbar': u'no', u'breadcrumb': u'<a href="/">ITS KB</a> -> <a href="/articles/424/">Article #424</a>', u'analytics_code': u'UA-1888141-15', u'hide_welcome': u'no', u'logout_url': u'?bethelauthsession_100='}
 
  • BU Home | 
  • News | 
  • Events | 
  •  | 
  •  

ITS KnowledgeBase - Article #424

Welcome Guest: Login

Silva CSS Stylesheets

http://kb.its.bethel.edu/articles/424/

What is CSS?

 1. CSS stands for Cascading Style Sheets
    a. These style sheets define how to display HTML elements
    b. Style sheets were added to HTML 4.0 to solve a problem
    c. These external style sheets can save you a lot of work (I.E. Bethel Template)
    d.  External Style Sheets are stored in CSS files

 2. A demo of how style sheets work:

http://www.w3schools.com/css/demo_default.htm


3. Syntax

The CSS syntax is made up of three parts: a selector, a property, and a value: (i.e. selector {property: value})

The selector is normally the HTML element/tag you wish to define, the property is the attribute you wish to change, and each property can take a value. The property and value are separated by a colon, and surrounded by curly braces:
(i.e. body {color: black})

Note: If  the value is multiple words, put quotes around the value:
p {font-family: "sans serif"}

Note: If you wish to specify more than one property, you must separate each property with a semicolon. The example below shows how to define a center-aligned paragraph, with a red text color:

p
{
text-align: center;
color: black;
font-family: arial
}

4. Silva CSS

  •     To create a silva style sheet first create your index page and/or other pages.
  • Then from the content menu click “new”  “Silva Style Sheet” .  Do NOT change the ID, but you may change the Title of the stylesheet.  You may only have one stylesheet per publication, folder, or subfolder.
newstylesheet.gif
  •     From the style sheet edit the sector you would like.

    • Text Markup - assigns formatting to the standard silva buttons: bold, italic, subscript, superscript etc.
    • Formatting and Lists - style all kinds of lists
    • Headings - formatting for all the heading styles
    • Hyperlinks - formatting for all the link commands
    • Tables - formatting for tables
css-styleset.gif

Example 1: Hyperlink Style Set   ---  a:hover: changes

css-ahover.gif



Note: Much of the content above was taken from W3 Schools: http://www.w3schools.com

Keywords: No Keywords

Created: 2006-10-19 09:24:54

Updated: 2006-10-21 01:06:08

Targeted toward:

This is a technical article

Maintained by: