{"id":1434,"date":"2012-02-20T13:52:23","date_gmt":"2012-02-20T20:52:23","guid":{"rendered":"http:\/\/wip2.websitespot.com\/?p=162"},"modified":"2012-02-20T13:52:23","modified_gmt":"2012-02-20T20:52:23","slug":"cascading-style-sheets","status":"publish","type":"post","link":"https:\/\/www.websitespot.com\/blog\/cascading-style-sheets\/","title":{"rendered":"Cascading Style Sheets"},"content":{"rendered":"<p>Cascading Style Sheets, CSS, is a file that is made up HTML and XHTML and allows web designers the capability to certain colors, fonts, layout, etc from a centralized file. Separating this file from each web page allows you to control each web page from a single file.<\/p>\n<p>I use CSS on this website to define the colors, the font the text along with the size of the text. The benefit is that if I should choose to change any of these things I wouldn't need to update each page. I could simply update the CSS file, upload it to my server and every page on my site is updated.<\/p>\n<h2>Use Of CSS<\/h2>\n<p>You can control nearly any part of your website using CSS as a matter of fact the topic is so in-depth that there are many entire websites devoted to CSS.<\/p>\n<p>I'm only going to touch on some basic information so I would recommend visiting sites such as <a href=\"http:\/\/www.w3.org\/Style\/CSS\/\" target=\"_blank\">W3.org<\/a>, <a href=\"https:\/\/www.w3schools.com\/Css\/default.asp\" target=\"_blank\"> W3Schools.com<\/a> and <a href=\"http:\/\/www.csszengarden.com\" target=\"_blank\"> CSSZenGarden.com<\/a> for in depth information on CSS.<\/p>\n<h2>Benefits Of CSS<\/h2>\n<p>There are quite a few benefits to using CSS in addition to the ease of updating your website.<\/p>\n<ul>\n<li><strong>Faster Download<\/strong> - A website using CSS cuts down on a lot of repetitive HTML that a web browser would need to read.<\/li>\n<li><strong>Search Engine Friendly<\/strong> - Again, there is much less code to make up your web pages so search engines are able to more accurately determine the content on your website.<\/li>\n<li><strong>Maintenance<\/strong> - Maintaining a website is much easier using CSS as you have your more common functions in your CSS file so updating a website is much easier.<\/li>\n<\/ul>\n<h2>Sample CSS Code<\/h2>\n<p>Below you'll find the first few lines of my CSS file. It's not an sort of trade secret, you can access just about anyone's CSS file if you know it's location. It's no different than if you were to view the 'source code' on a specific webpage.<\/p>\n<p><span style=\"color: #990000;\"> body, table{ font-family:verdana; font-size:13px; color:#000000;}<br \/>\nbody{ margin:0; padding:0; background-color:#A4A4A4;}<br \/>\na{ text-decoration:none;}<br \/>\na:hover{ text-decoration:underline;}<br \/>\n<\/span><\/p>\n<p>a:link {color: #0000ff; text-decoration: underline; }<br \/>\na:active {color: #0000ff; text-decoration: underline; }<br \/>\na:visited {color: #0000ff; text-decoration: underline; }<br \/>\na:hover {color: #990000; text-decoration: none; }<\/p>\n<h2>Explaining The CSS Code Above<\/h2>\n<p>In the first line I'm saying that I want all of the text in a Verdana font. I'm saying that I want it 13px tall and that I want the text to be black (#00000). Please keep in mind that in a separate area of my CSS file I define the headers that I use with different sizes and colors.<\/p>\n<p>The second snippet of code defines how I want links to appear. If you take a look at the links on this page you'll see that I defined them as underlined blue text. The 'a:hover' tag defines the color that I want the link to display when you place your mouse over a text link.<\/p>\n<h2>In Depth CSS Information<\/h2>\n<p>As I mentioned in the beginning of this article this is just very basic information and rather than going on and on I figured that I'd refer you to some authoritative websites that are devoted to CSS and can answer nearly any question that you may have with in-depth explanations.<\/p>\n<p>Along with just searching on your favorite search engine for 'CSS' or 'cascading style sheets' I'd recommend researching CSS at <a href=\"http:\/\/www.w3.org\/Style\/CSS\/\" target=\"_blank\">W3.org<\/a>, <a href=\"https:\/\/www.w3schools.com\/Css\/default.asp\" target=\"_blank\"> W3Schools.com<\/a> and <a href=\"http:\/\/www.csszengarden.com\" target=\"_blank\"> CSSZenGarden.com<\/a>.<\/p>\n<h2>Webmaster Forum<\/h2>\n<p>I invite you to visit my <a href=\"http:\/\/www.justwebtalk.com\">webmaster forum<\/a>, it's a great place to discuss websites and ask questions to fellow webmasters regarding topics that you may still have questions on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cascading Style Sheets, CSS, is a file that is made up HTML and XHTML and allows web designers the capability to certain colors, fonts, layout, etc from a centralized file. Separating this file from each web page allows you to control each web page from a single file. I use CSS on this website to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-1434","post","type-post","status-publish","format-standard","hentry","category-website-building-101"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts\/1434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/comments?post=1434"}],"version-history":[{"count":0,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts\/1434\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/media?parent=1434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/categories?post=1434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/tags?post=1434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}