Warning: include(/ssi/prev.maha) [function.include]: failed to open stream: No such file or directory in /homepages/12/d123634311/htdocs/asolis/article/cssSelectors.maha on line 1

Warning: include() [function.include]: Failed opening '/ssi/prev.maha' for inclusion (include_path='.:/usr/lib/php5') in /homepages/12/d123634311/htdocs/asolis/article/cssSelectors.maha on line 1

CSS Selectors

This article is meant to give a basic understanding of the CSS selectors to those new to CSS. Selectors are amazing and provide developers and even users, through user stylesheets, the ability to modify webpages to look basically anyways they want.

First there are the Universal selectors which are automatically applied when using a Simple selector.

E.g.
*.maha { width:150%; }
Is the equivalent of:
.maha { width:150%; }

Next the Child, Descendant, and Type selectors.
A Type selector is based off of the element you want to modify. Let's say you want to modify a <div> element, you would use div { height:2em; }.


Warning: include(/ssi/after.maha) [function.include]: failed to open stream: No such file or directory in /homepages/12/d123634311/htdocs/asolis/article/cssSelectors.maha on line 20

Warning: include() [function.include]: Failed opening '/ssi/after.maha' for inclusion (include_path='.:/usr/lib/php5') in /homepages/12/d123634311/htdocs/asolis/article/cssSelectors.maha on line 20