{"id":32821,"date":"2016-09-15T02:14:12","date_gmt":"2016-09-15T02:14:12","guid":{"rendered":"http:\/\/rkenny.org\/?p=32821"},"modified":"2016-09-21T12:13:48","modified_gmt":"2016-09-21T12:13:48","slug":"eme6207-css","status":"publish","type":"post","link":"https:\/\/emeclasses.org\/?p=32821","title":{"rendered":"EME 6207 &#8211; Tech Ed: Cascading Style Sheets"},"content":{"rendered":"<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#004d4d;border-radius:3px;\"><div class=\"su-box-title\" style=\"background-color:#008080;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Textbook Reference(s):<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"><\/p>\n<p><span style=\"color: #800000;\"><strong>Chap 1: 12-12; Chpt 2: 13-13<\/strong><\/span><\/div><\/div>\n<p>The purpose of style sheets is to separate the semantics and content from the design.<\/p>\n<p>There are three types of style sheets:<\/p>\n<ol>\n<li><strong>Internal<\/strong> CSS\u2019s that affect the entire webpage<\/li>\n<li><strong>External<\/strong> CSS\u2019s that affect the entire website<\/li>\n<li><strong>Inline<\/strong> CSS\u2019s that affect the particular section of a Web page. \u00a0This is not recommended, because it doesn&#8217;t effectively separate the content and the design<\/li>\n<\/ol>\n<hr \/>\n<h3>Internal Style Sheets: The Set-up<\/h3>\n<span class=\"su-highlight\" style=\"background:#ddff99;color:#000000\">&nbsp;The &lt;style&gt; tags are (typically) located in the head of the HTML document:&nbsp;<\/span>\n<pre>&lt;html&gt;\r\n\r\n&lt;head&gt;\r\n\r\n&lt;style&gt;\r\n\r\nbody {background-color: white}\r\n\r\nh1 {color: red}\r\n\r\nfont {font-family: \"Arial\"; color: blue}\r\n\r\n&lt;\/style&gt;\r\n\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;h1&gt;WORLD CUP 2010!!!!&lt;\/h1&gt;\r\n\r\n&lt;font&gt;GOAAAAAAAAAAAAAAAAAAAAAAAALLLLL !&lt;\/font&gt;&lt;br\/&gt;\r\n\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;<\/pre>\n<p><div class=\"su-divider su-divider-style-default\" style=\"margin:15px 0;border-width:3px;border-color:#999999\"><\/div><br \/>\nIt will look like this (click the spoiler button to see):<br \/>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>See the Coding <\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\"><br \/>\n<span style=\"color: #ff0000;\"><strong>WORLD CUP 2010!!!!<\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>GOAAAAAAAAAAAAAAAAAAAAAAAALLLLL<\/strong><\/span><\/p>\n<p><\/div><\/div><\/p>\n<hr \/>\n<h3>External: The set-up<\/h3>\n<p>An external style sheet is the most common way to include CSS. \u00a0Instead of the <code>&lt;style&gt;&lt;\/style&gt;<\/code> tags shown above we link to the external file mystyle.css which is in a folder named css<\/p>\n<pre>&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"css\/mystyle.css\"&gt;<\/pre>\n<p>please keep in mind. \u00a0the same relative linking used for images is necessary as used with images<\/p>\n<h3>Inline Set-up<\/h3>\n<p>The code is inserted into the body each time it is used. This is more or less impractical. While it MAY save coding time, a simple copy\/paste works just as well, especially if it is used less often. Here is an example of a inline ccs that has to be repeated each page is resides:<\/p>\n<pre>&lt;strong style =\"font-family: Verdana, Geneva, sans-serif;color: #800000;\"&gt;\r\n\"Creating a community of avid readers, one video at a time&lt;sup&gt;\u00a9&lt;\/sup&gt;\"&lt;\/strong&gt;<\/pre>\n<p>Results in (click the spoiler button to see):<br \/>\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>See the Coding <\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\"><\/p>\n<h3><span style=\"color: #800000;\">&#8220;Creating a community of avid readers, one video at a time<sup>\u00a9<\/sup>&#8220;<\/span><\/h3>\n<p><\/div><\/div><br \/>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#00057f;border-radius:3px;\"><div class=\"su-box-title\" style=\"background-color:#0f38b2;color:#FFFFFF;border-top-left-radius:1px;border-top-right-radius:1px\">Do This<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:1px;border-bottom-right-radius:1px\"><a href=\"http:\/\/emeclasses.org\/wp-content\/uploads\/2013\/06\/dothis.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37098\" src=\"http:\/\/emeclasses.org\/wp-content\/uploads\/2013\/06\/dothis.gif\" alt=\"dothis\" width=\"60\" height=\"48\" \/><\/a><\/p>\n<p>Go to the following tutorial sites and take your pick.. both are pretty self explanatory. When you are satisfied you understand things, you can go on to the <a href=\"\/?p=32803\">lesson on Java Script<\/a>.<\/p>\n<h4>Tutorials<\/h4>\n<ul>\n<li><a href=\"http:\/\/www.w3schools.com\/css\/default.asp\">http:\/\/www.w3schools.com\/css\/default.asp<\/a><\/li>\n<li><a href=\"http:\/\/www.csstutorial.net\/\">http:\/\/www.csstutorial.net\/<\/a><\/li>\n<\/ul>\n<p><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The purpose of style sheets is to separate the semantics and content from the design. There are three types of style sheets: Internal CSS\u2019s that affect the entire webpage External CSS\u2019s that affect the entire website Inline CSS\u2019s that affect the particular section of a Web page. \u00a0This is not recommended, because it doesn&#8217;t effectively [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[96],"tags":[],"class_list":["post-32821","post","type-post","status-publish","format-standard","hentry","category-tech-ed-6207"],"_links":{"self":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32821"}],"version-history":[{"count":5,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32821\/revisions"}],"predecessor-version":[{"id":43313,"href":"https:\/\/emeclasses.org\/index.php?rest_route=\/wp\/v2\/posts\/32821\/revisions\/43313"}],"wp:attachment":[{"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emeclasses.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}