Can someone please explain cascading style sheets for me. I find it really hard to understand for some reason?
Public Comments
- http://www.w3.org/Style/CSS/learning
- basically they just apply affects to html elements. for example you could have a table and if you want it to be blue you would go table {background-color:blue} then you can also add a class = "someclass" into the table so it doesn't apply the effect to all the tables, just the ones with that class. someclass.table {background-color:blue} the idea of css is that you can make one style sheet and import it into as many html documents as you want with <link rel="stylesheet" type="text/css" href="stylesheet.css"> then every page you put that into the header has the same style of the elements. more info is here: http://www.w3schools.com/css/default.asp if you want to learn css start here http://www.w3schools.com/css/css_syntax.asp
- css is a very broad topic. It'd be impossible to discuss CSS in depth in this forum. There is a website: www.csszengarden.com that can provide you some help. This site is actually a site to challenge CSS developers. There are several links that show redesigns of the same site. Every design has the exact same html - only the CSS has changed. you can look at the html and css for every design. What can really help you to learn css is to get the book title "the zen of css design" by shea/holzschlag This book goes through some of the designs at the site and describes in some detail how/why the designers did what they did with the css. I hope this helps - good luck.
Powered by Yahoo! Answers