Wednesday, May 2, 2007


Sometimes,listening to music or enjoying tasty food to relax and indulge myself is so nccessary !

Learning Journal----CSS

After acquiring a deeper understanding about XHTML I focus my study on CSS which is another technology I plan to use in the project.
CSS is the language that can define the display/presentation of the web page. I think if XHTML is the technology for building the basic and essential frame of the web page, CSS is the technology for decorating the frame with creativity and imagination. Same frame can be decorated in different ways.
After learning XHTML , CSS is not quite difficult to understand. It’s related to XHTML closely. One very common type of selector is the HTML tag. Through referring to the tag I can let the browser know which part of the file (heading? a paragraph ?) I want to be displayed in this way. Class selector is also easy to understand and use. When I want to give some of the text on the pages specific attributes which make them different from others, I can simply create a customized HTML tag ---a style class. So all elements sharing same styles/attributes can be included in a common style class. ID selector is associated with a specific element in HTML file. After understanding the relationship between selectors, style property and value, the structure of CSS file and how CSS influence HTML file become much clearer to me . Then to me, learning CSS amounts to finding out style properties, understanding how to write them and assign a proper value to them. The more style properties I find out, the more deeply I realize that how powerful the technology is. By now I’ve just known limited style properties ( such as about defining font, colour , position, margin, padding ) , but I try to learn more about this to design my project in a free and creative way.