Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mislz28/public_html/wp-content/themes/css-faq-v2/timeweather/timeweather.php on line 19
  • Software
26 June 2008

Internet Explorer - New CSS Commands

The good news is there are a new commands for CSS commands can be utilize for 7th edition of Internet Explorer They are few but effective. The new CSS commands are actually friendly to other browsers but it is only now that Internet Explorer 7 starts recognizing them. No wonder there are times that Firefox and Google appears to be more efficient that Internet Explorer 7. These new commands have are stable and the contronger is stronger than an HTML, it does not include cumbersome and annoying use of ids and classes.

Child Selector
Even if Internet Explorer 6 never supported CSS child selector, because it hides CSS commands, Internet Explorer 7 on the contrary supports CSS child selector. The HTML structure is an example of CHILD SELECTOR:
div span {color: red;}

It simply explains the contents of the <span> will be red, to assure that <span> is nested inside a <div>. That <span> could be great grand child, a child or simply a grand child etc. of the <div>.

If we choose to use the CSS code presented below:
div>span {color: red;}

The text inside our <span> would not turn red. The reason here is because we’ve placed the child selector in between the span and div (greater than mathematical sign), which simply explains the span has to be a son of a div. The example above, that is the <span> is a grandson of the <div>.

After utilizing the child selector, the author can use the rules to HTML elements that’s a son (and not a grandson) of other elements. The author can say for example is the author would choose top margin to be placed to the first <div> in the body, but not to other elements. In the absence of the child selector the author would be assigning an id or class in this <div> and refer it to id or class in the command for CSS . Even if , we can refer this <div>, and the only <div>, without referencing for a id or class within the CSS:
body>div {margin-top: 10px;}

The data above may look taxing, because you will have to study a different language, but it worth the investment. Imagine yourself selling lots of website and your clients are very happy with their sites, and they kept on coming back for more.

Tags:

This entry was posted on 26 June 2008 at 1:49 PM and is filed under Software. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment