Css Fore Tec

Embed Size (px)

Citation preview

  • 8/10/2019 Css Fore Tec

    1/8

    1 @charset "UTF-8";2 body {3 font:100%/1.4 Verdana, Arial, Helvetica, sans-serif;4 background-color:#666;5 margin:0;6 padding:0;7 color:#000;8 }9

    0 /* ~~ Element/tag selectors ~~ */1 ul, ol, dl {/* Due to variations between browsers, it's best practices to z

    padding and margin on lists. For consistency, you can either specify the

    amounts you want here, or on the list items (LI, DT, DD) they contain. Remem

    that what you do here will cascade to the .nav list unless you write a more

    specific selector. */2 padding:0;3 margin:0;4 }5

    h1, h2, h3, h4, h5, h6, p {6 margin-top:0; /* removing the top margin gets around an issue where

    margins can escape from their containing div. The remaining bottom margin wi

    hold it away from any elements that follow. */7 padding-right:15px;8 padding-left:15px;/* adding the padding to the sides of the elements

    within the divs, instead of the divs themselves, gets rid of any box model

    math. A nested div with side padding can also be used as an alternate method

    */9 }

    0 a img {/* this selector removes the default blue border displayed in somebrowsers around an image when it is surrounded by a link */

    1 border:none;2 }3

    4 /* ~~ Styling for your site's links must remain in this order - including th

    group of selectors that create the hover effect. ~~ */5 a:link {6 color:#797379;7

    text-decoration:underline;/* unless you style your links to lookextremely unique, it's best to provide underlines for quick visual

    identification */8 }9 a:visited {0 color:#909396;1 text-decoration:underline;2 }3 a:hover, a:active, a:focus {/* this group of selectors will give a keyboard

    navigator the same hover experience as the person using a mouse. */

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 1/8

  • 8/10/2019 Css Fore Tec

    2/8

    4 text-decoration:none;5 }6

    7 /* ~~ this container surrounds all other divs giving them their percentage-

    based width ~~ */8 .gridContainer {9 width:88.5%;0 max-width:1232px;1 padding-left:0.75%;2 padding-right:0.75%;3 margin:auto;4 }5

    6 .container {7 width:100%;8 max-width:1260px;/* a max-width may be desirable to keep this layout fr

    getting too wide on a large monitor. This keeps line length more readable. I

    does not respect this declaration. */9

    min-width:780px;/* a min-width may be desirable to keep this layout frogetting too narrow. This keeps line length more readable in the side columns

    IE6 does not respect this declaration. */0 background-color:#FFF;1 margin:0 auto;/* the auto value on the sides, coupled with the width,

    centers the layout. It is not needed if you set the .container's width to 10

    */2 }3

    4 /* ~~ the header is not given a width. It will extend the full width of your

    layout. It contains an image placeholder that should be replaced with your olinked logo ~~ */

    5 .header {6 background-color:#B01F23;7 width:100%;8 }9

    0 .divTable1 {2

    display: table;3 width:100%;4 background-color:#B01F23;5

    6 border-spacing:5px;/*cellspacing:poor IE support for this*/7 /* border-collapse:separate;*/8 }9

    0 .divRow1 {

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 2/8

  • 8/10/2019 Css Fore Tec

    3/8

    2 display:table-row;3 width:100%;4 height:145px;5

    6 }7

    8 .divCell19 {0 float:left;/*fix for buggy browsers*/1 display:table-column;2 width:203 %;4 background-color:#B01F23;5 padding-right:10px;6 color:fff;7 vertical-align:middle;8

    9 }0

    .divCell21 {2 float:left;/*fix for buggy browsers*/3 display:table-column;4 width:80%;5 background-color:#B01F23;6 color:fff;7 height:145px;8 vertical-align:middle;9 text-shadow:5px 6px 3px #000;

    0 color:#FFF;1 text-align:center;2 font-size:30px;3 }4

    5

    6

    7

    8

    9

    /* ~~ These are the columns for the layout. ~~0

    1 1) Padding is only placed on the top and/or bottom of the divs. The elements

    within these divs have padding on their sides. This saves you from any "box

    model math". Keep in mind, if you add any side padding or border to the div

    itself, it will be added to the width you define to create the *total* width

    You may also choose to remove the padding on the element in the div and plac

    second div within it with no width and the padding necessary for your design2

    3 2) No margin has been given to the columns since they are all floated. If yo

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 3/8

  • 8/10/2019 Css Fore Tec

    4/8

    must add margin, avoid placing it on the side you're floating toward (for

    example: a right margin on a div set to float right). Many times, padding ca

    be used instead. For divs where this rule must be broken, you should add a

    "display:inline" declaration to the div's rule to tame a bug where some

    versions of Internet Explorer double the margin.4

    5 3) Since classes can be used multiple times in a document (and an element ca

    also have multiple classes applied), the columns have been assigned class na

    instead of IDs. For example, two sidebar divs could be stacked if necessary.

    These can very easily be changed to IDs if that's your preference, as long ayou'll only be using them once per document.

    6

    7 4) If you prefer your nav on the left instead of the right, simply float the

    columns the opposite direction (all left instead of all right) and they'll

    render in reverse order. There's no need to move the divs around in the HTML

    source.8

    9 */0

    .sidebar1 {1 float:left;2 width:25%;3 background-color:#999;4 padding-bottom:10px;5 height:100%;6 }7 #newcontent {8 width:100%;9 background:#999;

    0 }1 .content {2 padding:10px 0;3 width:75%;4 float:right;5 background-color:#FFF;6 }7

    8 .youtube {9

    display:block;0 margin-left:auto;1 margin-right:auto2 }3

    4 /* ~~ This grouped selector gives the lists in the .content area space ~~ */5 .content ul, .content ol {6 padding:0 15px 15px 40px;/* this padding mirrors the right padding in

    headings and paragraph rule above. Padding was placed on the bottom for spac

    between other elements on the lists and on the left to create the indention.

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 4/8

  • 8/10/2019 Css Fore Tec

    5/8

    These may be adjusted as you wish. */7 }8

    9 /* ~~ The navigation list styles (can be removed if you choose to use a prem

    flyout menu like Spry) ~~ */0 ul.nav {1 list-style:none;/* this removes the list marker */2 border-top:1px solid #666;/* this creates the top border for the links

    all others are placed using a bottom border on the LI */3 margin-bottom:15px;/* this creates the space between the navigation on

    the content below */4 }5 ul.nav li {6 border-bottom:1px solid #666;/* this creates the button separation */7 }8 ul.nav a, ul.nav a:visited {/* grouping these selectors makes sure that you

    links retain their button look even after being visited */9 padding:5px 5px 5px 15px;0

    display:block;/* this gives the link block properties causing it to fithe whole LI containing it. This causes the entire area to react to a mouse

    click. */1 text-decoration:none;2 background-color:#999;3 color:#000;4 }5 ul.nav a:hover, ul.nav a:active, ul.nav a:focus {/* this changes the

    background and text color for both mouse and keyboard navigators */6 background-color:#CCC;

    7 color:#FFF;8 }9

    0 /* ~~ The footer ~~ */1 .footer {2 padding:10px 0;3 background-color:#B01F23;4 position:relative;/* this gives IE6 hasLayout to properly clear */5 clear:both;/* this clear property forces the .container to understand

    where the columns end and contain them */6 text-align:center;7 color:#fff;8 font-size:smaller;9 }0

    1 .pseudo_column a:link {color:#FFF;}2 .pseudo_column a:visited {color:#333;}3 .pseudo_column a:hover {color:#CCC;}4 .pseudo_column a:focus {color:#000;}

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 5/8

  • 8/10/2019 Css Fore Tec

    6/8

    5 .pseudo_column a:active {color:#999;}6

    7

    8 /* ~~ miscellaneous float/clear classes ~~ */9 .fltrt { /* this class can be used to float an element right in your page.

    floated element must precede the element it should be next to on the page. *0 float:right;1 margin-left:8px;2 }3 .fltlft {/* this class can be used to float an element left in your page. T

    floated element must precede the element it should be next to on the page. *4 float:left;5 margin-right:8px;6 }7 .clearfloat {/* this class can be placed on a
    or empty div as the fi

    element following the last floated div (within the #container) if the #foote

    is removed or taken out of the #container */8 clear:both;9

    height:0;0 font-size:1px;1 line-height:0px;2 }3

    4 /* BeginOAWidget_Instance_2125523: #twitter */5

    6 .twitter {7 height:300px;8 width:200px;

    9 vertical-align:middle;0

    1 }2

    3 /* begin styles for RSS Feed */4

    5 .rss-box {6 margin:0.5em;7 width:80%;8

    background-color:#CCC;9 border:7px solid #eeeeee;0

    1 }2 .rss-items {3 margin-top:0px;4 padding:0.5em;0.5em;5 margin-left:0px;6 color:#000000;7 }

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 6/8

  • 8/10/2019 Css Fore Tec

    7/8

    8 p.rss-title {padding:0.5em;}9 .rss-title {0 text-decoration:none;1 font-family:small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucid

    Grande", lucida, helvetica, sans-serif;2 font-size:12px;3 background-color:#ffffff;4 color:black;5 font-weight:bold;6 margin:0px;7 padding:0em;8 text-align:left;9 }0

    1 .rss-item {2 font-family:small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "Lucida

    Grande", lucida, helvetica, sans-serif;3 font-size:10px;4

    font-weight :normal;5 list-style:none;6 padding-bottom:1em;7 }8

    9 .rss-item a {0 text-decoration :none;1 color:#C00;2 font-size:12px;3 font-weight:light;

    4 font-family:small tahoma, "Bitstream Vera Sans", "Trebuchet MS", "LucidaGrande", lucida, helvetica, sans-serif;

    5 }6

    7 .rss-item a:visited {8 color:red;9 }0

    1 .rss-date {2

    font-size:85%;3 font-weight :normal;4 color:#cc0000;5 }6 /* buttons modeled from http://www.wellstyled.com/css-inline-buttons.html */7

    8 .pod-play {9 _width:12em;0 margin:0 0.2em;padding:0.1em 0;_padding:0;1

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641.css: 7/8

  • 8/10/2019 Css Fore Tec

    8/8

    2 white-space:nowrap;3 text-decoration:none;4 vertical-align:middle;5 background:#fb6;6 color:black;7 }8 .pod-play em {9 _width:1em;_cursor:hand;0 font-style:normal;1 margin:0;padding:0.1em 0.5em;2 background:white;3 color:#222;4 }5 .pod-play span {6 _width:1em;_cursor:hand;7 margin:0;padding:0.1em 0.5em 0.1em 0.3em;8 }9 .pod-play:hover {0

    background:#666;1 color:white;2 }3 .pod-play:hover em {4 background:black;5 color:white6 }7

    acintosh HD:Users:kurthargis:Desktop:Graduate School:641:website:assets:etec641 css: 8/8