By: infotechalive April 6, 2018
CSS3 has been divided into several different sections which are known as modules. Each of these modules enters through the W3C in several different stages of the extensive process of recommendation. It is a simple process of several pieces of CSS3 which are to be adapted and executed in the browser by various web developers. As each and every module is worked on separately, there is a much broader range of browser support for the modules of CSS3.
You must make sure that you are evaluating the several different pages of CSS3 module in as many different browsers and operating systems as possible. You must remember that your main objective is not to develop similar kind of web pages but to make sure that whatever style you are utilizing, must look excellent in any browser that supports them and that they fall back in a graceful manner in any of the old browsers.
Three attribute selectors
- Beginning matches (foo^=”bar”) – This particular element contains an attribute known as foo which begins with bar.
- Ending matches (foo$=”bar”) – This particular element contains an attribute known as foo which ends with bar.
- Match(foo*=”bar”) – This particular element contains an attribute known as foo which has the string bar.
New Pseudo Classes
- :nth-child(n) – It is used to exact the child elements or utilize several variables to acquire alternative matches.
- :root – It is the root element of the document. It is always present in the HTML.
- nth-of-type(n) – It helps in matching the similar names which are counting up the bottom.
- first-of-type – It matches the first sibling of the element.
- last-of-type – It matches the last sibling of the element.
- empty – It matches that element which has no children involving the text nodes.
- enabled – It helps in matching the element whenever it is enabled.
- not(s) – It matches the element when it does not match with the simple selectors.
CSS3 has also introduced several new CSS properties. Several of such properties were used to develop different visual styles that would connect with a graphics program, for instance, Photoshop. There is no alteration in the box model of CSS3. However, a group of several new properties has been established to help the web developer stylize the background as well as place some borders for the boxes.
- Background origin – This particular property ascertains the placement of the background in specific boxes.
- Background clip – This particular property ascertains the ways of clipping the background images.
- Background size – This particular property ascertains the size of the background image.
The alterations in the existing background style properties are background-repeat, background-attachment and background.
The new border style properties are border radius, border image source, border image slice, border image width, border image outset, border image stretch and border image.
The three new properties for allowing to clearly define the number and width of your columns are column width, column count and columns.
The new properties for column rules and gaps are column gap, column rules colour, column rules style, column rules width and column rule.
Thus, these are the reasons for which we use CSS3 instead of CSS2 or CSS.
Leave a Reply