22 June 2012

CSS ? - Cascading Style Sheets, CSS3?



HTML5 Powered with CSS3 / StylingBack to 10 years ago, it never been an important knowledge for web backend developer to know how CSS work. When I was a developers years back in a company who have a designer team setup, there are a guy called “Ah Beng” who always work  out lots of design template for me. And I always work very closely with him on getting web site up with colourful and nice design.

Then people realize that getting CSS to control on the web layout using DIV tag is better, CSS become an important for backend developer to know how to get the web site display dynamic way as like template setup with CSS styling. I had some lecture from “Ah Beng” as well, he was generous in term of guiding me on how to get used with CSS technology but not meal. I always pay the bill.

Here is some of the CSS code example: - 

1
2
#column1 {float: left; width: 100px; padding: 10px; }
#column2 {float: left; width: 100px; padding: 10px; }

Some of developers are not sure on when CSS was started, Styles were added to HTML 4.0 to solve a problem. It became quite important for developer to know how it plug into a web site and get it styled.
External Style Sheets is always a common thing for developer nowadays as can save a lot of work and are stored in CSS files.

Then CSS allow web developer to work out on printing layout as this is because some of the people would like to have their printing format differently. example:-

1
2
3
4
5
6
7
<style type="text/css" media="print">
label {
float: left;
display: block;
width: 3cm;
}
</style>

With multiple size of screen come into picture as tablet and mobile phone are able to surf internet and access web site they like, CSS further enhance it standard to enable developer to detect user agent screen size, this allow developer to style their web accordingly. 


1
2
3
4
<style type="text/css">
@media screen and (max-device-width: 480px) {
}
</style>

Story come more interesting when HTML5 is in picture. CSS3has become part HTML5, it allow developer to make the web site look more interesting with more animation allowed.

There are lots of web site that provide some tools to generate CSS3 like http://www.css3maker.com/http://css3generator.com/ and so on. You can get it from searching through google.com

Sad to say that CSS3 is still need sometimes because some of the browsers still working on their capability to support the standard. you can check on the css3 supported browser at caniuse.com. hopefully browser provider can speed up their development on supporting these features. 

I have to agree that with CSS web site been look more interesting.


0 comments:

Post a Comment