Friday, April 29, 2011

Week 4 Cascading Style Sheets

In this class we learnt how to take control of the style of your pages, including the colors and size of fonts, the width and colors of lines, and the amount of whitespace between items on the page. The cascading style sheets specification/CSS allowed me to specify rules for how the content of elements within your document appears. In fact, I learnt how to set different rules to control the appearance of every element in my page so as to make my page pop more. Honestly,at first this was realllly difficult for me as I had to be copy and pasting each time but as time went by I new various rules out my head which made me very happy as this proved I was learning!! This class taught me to pay strict attention to detail as if even a comma or colon was missing then that would result in everything being incorrect so it took me a while but I got it..eventually. Now,the CSS rule is made up of two parts the selector and the declaration-the selector indicates which element or elements the declaration applies to while the declaration sets out the styling of each element. The declaration can be broken down into two parts namely the property and the value- the property is the element which you would like to be affected by the value for example {font-size:22px}.I also had to take note of the fact that properties are kept inside the curly brackets. Another huge factor was that of the link element, here we learnt how to link the html/xhtml documents to the CSS, this element was vital so I had to stick it in my head. We touched more in depth on attributes and id selectors and how to apply each in the CSS. Week 4 was indeed a difficult but informative one :)

No comments:

Post a Comment