<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mindbee&#039;s Blog</title>
	<atom:link href="http://mindbee.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mindbee.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 11 Sep 2009 04:05:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mindbee.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mindbee&#039;s Blog</title>
		<link>http://mindbee.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mindbee.wordpress.com/osd.xml" title="Mindbee&#039;s Blog" />
	<atom:link rel='hub' href='http://mindbee.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Css Properties</title>
		<link>http://mindbee.wordpress.com/2009/09/11/css-properties/</link>
		<comments>http://mindbee.wordpress.com/2009/09/11/css-properties/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 04:05:19 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Css properties]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/?p=72</guid>
		<description><![CDATA[Syntax Used in Property Definitions &#60;Foo&#62; Value of type Foo. Common types are discussed in the Units section. Foo A keyword that must appear literally (though without case sensitivity). Commas and slashes must also appear literally. A B C A must occur, then B, then C, in that order. A &#124; B A or B [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=72&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Syntax Used in Property Definitions</h2>
<p>&lt;Foo&gt;<br />
Value of type Foo. Common types are discussed in the Units section.<br />
Foo<br />
A keyword that must appear literally (though without case sensitivity). Commas and slashes must also appear literally.<br />
A B C<br />
A must occur, then B, then C, in that order.<br />
A | B<br />
A or B must occur.<br />
A || B<br />
A or B or both must occur, in any order.<br />
[ Foo ]<br />
Brackets are used to group items together.<br />
Foo*<br />
Foo is repeated zero or more times.<br />
Foo+<br />
Foo is repeated one or more times.<br />
Foo?<br />
Foo is optional.<br />
Foo{A,B}<br />
Foo must occur at least A times and at most B times.</p>
<h2>Font Properties</h2>
<p>* Font Family<br />
* Font Style<br />
* Font Variant<br />
* Font Weight<br />
* Font Size<br />
* Font</p>
<h2>Font Family</h2>
<p>Syntax:     font-family: [[&lt;family-name&gt; | &lt;generic-family&gt;],]* [&lt;family-name&gt; | &lt;generic-family&gt;]<br />
Possible Values:     &lt;family-name&gt;</p>
<p>* Any font family name may be used</p>
<p>&lt;generic-family&gt;</p>
<p>* serif (e.g., Times)<br />
* sans-serif (e.g., Arial or Helvetica)<br />
* cursive (e.g., Zapf-Chancery)<br />
* fantasy (e.g., Western)<br />
* monospace (e.g., Courier)</p>
<p>Initial Value:     Determined by browser<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>Font families may be assigned by a specific font name or a generic font family. Obviously, defining a specific font will not be as likely to match as a generic font family. Multiple family assignments can be made, and if a specific font assignment is made it should be followed by a generic family name in case the first choice is not present.</p>
<p>A sample font-family declaration might look like this:</p>
<p>P { font-family: &#8220;New Century Schoolbook&#8221;, Times, serif }</p>
<p>Notice that the first two assignments are specific type faces: New Century Schoolbook and Times. However, since both of them are serif fonts, the generic font family is listed as a backup in case the system does not have either of these but has another serif font which meets the qualifications.</p>
<p>Any font name containing whitespace must be quoted, with either single or double quotes.</p>
<p>The font family may also be given with the font property.</p>
<h2>Font Style</h2>
<p>Syntax:     font-style: &lt;value&gt;<br />
Possible Values:     normal | italic | oblique<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The font-style property defines that the font be displayed in one of three ways: normal, italic or oblique (slanted). A sample style sheet with font-style declarations might look like this:</p>
<p>H1 { font-style: oblique }<br />
P  { font-style: normal }</p>
<h2>Font Variant</h2>
<p>Syntax:     font-variant: &lt;value&gt;<br />
Possible Values:     normal | small-caps<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The font-variant property determines if the font is to display in normal or small-caps. Small-caps are displayed when all the letters of the word are in capitals with uppercase characters slightly larger than lowercase. Later versions of CSS may support additional variants such as condensed, expanded, small-caps numerals or other custom variants. An example of a font-variant assignment would be:</p>
<p>SPAN { font-variant: small-caps }</p>
<h2>Font Weight</h2>
<p>Syntax:     font-weight: &lt;value&gt;<br />
Possible Values:     normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The font-weight property is used to specify the weight of the font. The bolder and lighter values are relative to the inherited font weight, while the other values are absolute font weights.</p>
<p>Note: Since not all fonts have nine possible display weights some of the weights may be grouped together in assignment. If the specified weight is not available, an alternate will be chosen on the following basis:</p>
<p>* 500 may be switched with 400, and vice versa<br />
* 100-300 may be assigned to the next lighter weight, if any, or the next darker weight otherwise<br />
* 600-900 may be assigned to the next darker weight, if any, or the next lighter weight otherwise</p>
<h3>Some example font-weight assignments would be:</h3>
<p>H1 { font-weight: 800 }<br />
P  { font-weight: normal }</p>
<h2>Font Size</h2>
<p>Syntax:     font-size: &lt;absolute-size&gt; | &lt;relative-size&gt; | &lt;length&gt; | &lt;percentage&gt;<br />
Possible Values:</p>
<p>* &lt;absolute-size&gt;<br />
o xx-small | x-small | small | medium | large | x-large | xx-large<br />
* &lt;relative-size&gt;<br />
o larger | smaller<br />
* &lt;length&gt;<br />
* &lt;percentage&gt; (in relation to parent element)</p>
<p>Initial Value:     medium<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The font-size property is used to modify the size of the displayed font. Absolute lengths (using units like pt and in) should be used sparingly due to their weakness in adapting to different browsing environments. Fonts with absolute lengths can very easily be too small or too large for a user.</p>
<h3>Some example size assignments would be:</h3>
<p>H1     { font-size: large }<br />
P      { font-size: 12pt }<br />
LI     { font-size: 90% }<br />
STRONG { font-size: larger }</p>
<p>Authors should be aware that Microsoft Internet Explorer 3.x incorrectly treats em and ex units as pixels, which can easily make text using these units unreadable. The browser also incorrectly applies percentage values relative to its default font size for the selector, rather than relative to the parent element&#8217;s font size. This makes rules like</p>
<p>H1 { font-size: 200% }</p>
<p>dangerous in that the size will be twice IE&#8217;s default font size for level-one headings, rather than twice the parent element&#8217;s font size. In this case, BODY would most likely be the parent element, and it would likely define a medium font size, whereas the default level-one heading font size imposed by IE would probably be considered xx-large.</p>
<p>Given these bugs, authors should take care in using percentage values for font-size, and should probably avoid em and ex units for this property.</p>
<h2>Font</h2>
<p>Syntax:     font: &lt;value&gt;<br />
Possible Values:     [ &lt;font-style&gt; || &lt;font-variant&gt; || &lt;font-weight&gt; ]? &lt;font-size&gt; [ / &lt;line-height&gt; ]? &lt;font-family&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The font property may be used as a shorthand for the various font properties, as well as the line height. For example,</p>
<p>P { font: italic bold 12pt/14pt Times, serif }</p>
<p>specifies paragraphs with a bold and italic Times or serif font with a size of 12 points and a line height of 14 points.</p>
<h2>Color and Background Properties</h2>
<p>* Color<br />
* Background Color<br />
* Background Image<br />
* Background Repeat<br />
* Background Attachment<br />
* Background Position<br />
* Background</p>
<h2>Color</h2>
<p>Syntax:     color: &lt;color&gt;<br />
Initial Value:     Determined by browser<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The color property allows authors to specify the color of an element. See the Units section for color value descriptions. Some example color rules include:</p>
<p>H1 { color: blue }<br />
H2 { color: #000080 }<br />
H3 { color: #0c0 }</p>
<p>To help avoid conflicts with user style sheets, background and color properties should always be specified together.</p>
<h2>Background Color</h2>
<p>Syntax:     background-color: &lt;value&gt;<br />
Possible Values:     &lt;color&gt; | transparent<br />
Initial Value:     transparent<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The background-color property sets the background color of an element. For example:</p>
<p>BODY { background-color: white }<br />
H1   { background-color: #000080 }</p>
<p>To help avoid conflicts with user style sheets, background-image should be specified whenever background-color is used. In most cases, background-image: none is suitable.</p>
<p>Authors may also use the shorthand background property, which is currently better supported than the background-color property.<br />
Background Image<br />
Syntax:     background-image: &lt;value&gt;<br />
Possible Values:     &lt;url&gt; | none<br />
Initial Value:     none<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The background-image property sets the background image of an element. For example:</p>
<p>BODY { background-image: url(/images/foo.gif) }<br />
P    { background-image: url(http://www.htmlhelp.com/bg.png) }</p>
<p>When a background image is defined, a similar background color should also be defined for those not loading images.</p>
<p>Authors may also use the shorthand background property, which is currently better supported than the background-image property.<br />
Background Repeat<br />
Syntax:     background-repeat: &lt;value&gt;<br />
Possible Values:     repeat | repeat-x | repeat-y | no-repeat<br />
Initial Value:     repeat<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The background-repeat property determines how a specified background image is repeated. The repeat-x value will repeat the image horizontally while the repeat-y value will repeat the image vertically. For example:</p>
<p>BODY { background: white url(candybar.gif);<br />
background-repeat: repeat-x }</p>
<p>In the above example, the image will only be tiled horizontally.</p>
<p>Authors may also use the shorthand background property, which is currently better supported than the background-repeat property.</p>
<h2>Background Attachment</h2>
<p>Syntax:     background-attachment: &lt;value&gt;<br />
Possible Values:     scroll | fixed<br />
Initial Value:     scroll<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The background-attachment property determines if a specified background image will scroll with the content or be fixed with regard to the canvas. For example, the following specifies a fixed background image:</p>
<p>BODY { background: white url(candybar.gif);<br />
background-attachment: fixed }</p>
<p>Authors may also use the shorthand background property, which is currently better supported than the background-attachment property.<br />
Background Position<br />
Syntax:     background-position: &lt;value&gt;<br />
Possible Values:     [&lt;percentage&gt; | &lt;length&gt;]{1,2} | [top | center | bottom] || [left | center | right]<br />
Initial Value:     0% 0%<br />
Applies to:     Block-level and replaced elements<br />
Inherited:     No</p>
<p>The background-position property gives the initial position of a specified background image. This property may only be applied to block-level elements and replaced elements. (A replaced element is one for which only the intrinsic dimensions are known; HTML replaced elements include IMG, INPUT, TEXTAREA, SELECT, and OBJECT.)</p>
<h4>The easiest way to assign a background position is with keywords:</h4>
<p>* Horizontal keywords (left, center, right)<br />
* Vertical keywords (top, center, bottom)</p>
<p>Percentages and lengths may also be used to assign the position of the background image. Percentages are relative to the size of the element. Although lengths are allowed, they are not recommended due to their inherent weakness in dealing with differing display resolutions.</p>
<p>When using percentages or lengths, the horizontal position is specified first, followed by the vertical position. A value such as 20% 65% specifies that the point 20% across and 65% down the image be placed at the point 20% across and 65% down the element. A value such as 5px 10px specifies that the upper left corner of the image be placed 5 pixels to the right of and 10 pixels below the upper left corner of the element.</p>
<p>If only the horizontal value is given, the vertical position will be 50%. Combinations of lengths and percentages are allowed, as are negative positions. For example, 10% -2cm is permitted. However, percentages and lengths cannot be combined with keywords.</p>
<h3>The keywords are interpreted as follows:</h3>
<p>* top left = left top = 0% 0%<br />
* top = top center = center top = 50% 0%<br />
* right top = top right = 100% 0%<br />
* left = left center = center left = 0% 50%<br />
* center = center center = 50% 50%<br />
* right = right center = center right = 100% 50%<br />
* bottom left = left bottom = 0% 100%<br />
* bottom = bottom center = center bottom = 50% 100%<br />
* bottom right = right bottom = 100% 100%</p>
<p>If the background image is fixed with regard to the canvas, the image is placed relative to the canvas instead of the element.</p>
<p>Authors may also use the shorthand background property, which is currently better supported than the background-position property.</p>
<h2>Background</h2>
<p>Syntax:     background: &lt;value&gt;<br />
Possible Values:     &lt;background-color&gt; || &lt;background-image&gt; || &lt;background-repeat&gt; || &lt;background-attachment&gt; || &lt;background-position&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The background property is a shorthand for the more specific background-related properties. Some examples of background declarations follow:</p>
<p>BODY       { background: white url(http://www.htmlhelp.com/foo.gif) }<br />
BLOCKQUOTE { background: #7fffd4 }<br />
P          { background: url(../backgrounds/pawn.png) #f0f8ff fixed }<br />
TABLE      { background: #0c0 url(leaves.jpg) no-repeat bottom right }</p>
<p>A value not specified will receive its initial value. For example, in the first three rules above, the background-position property will be set to 0% 0%.</p>
<p>To help avoid conflicts with user style sheets, background and color properties should always be specified together.<br />
Text Properties</p>
<p>* Word Spacing<br />
* Letter Spacing<br />
* Text Decoration<br />
* Vertical Alignment<br />
* Text Transformation<br />
* Text Alignment<br />
* Text Indentation<br />
* Line Height</p>
<h2>Word Spacing</h2>
<p>Syntax:     word-spacing: &lt;value&gt;<br />
Possible Values:     normal | &lt;length&gt;<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The word-spacing property defines an additional amount of space between words. The value must be in the length format; negative values are permitted.</p>
<h3>Examples:</h3>
<p>P EM   { word-spacing: 0.4em }<br />
P.note { word-spacing: -0.2em }</p>
<h2>Letter Spacing</h2>
<p>Syntax:     letter-spacing: &lt;value&gt;<br />
Possible Values:     normal | &lt;length&gt;<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The letter-spacing property defines an additional amount of space between characters. The value must be in the length format; negative values are permitted. A setting of 0 will prevent justification.</p>
<h3>Examples:</h3>
<p>H1     { letter-spacing: 0.1em }<br />
P.note { letter-spacing: -0.1em }</p>
<h2>Text Decoration</h2>
<p>Syntax:     text-decoration: &lt;value&gt;<br />
Possible Values:     none | [ underline || overline || line-through || blink ]<br />
Initial Value:     none<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The text-decoration property allows text to be decorated through one of five properties: underline, overline, line-through, blink, or the default, none.</p>
<p>For example, one can suggest that links not be underlined with</p>
<p>A:link, A:visited, A:active { text-decoration: none }</p>
<h2>Vertical Alignment</h2>
<p>Syntax:     vertical-align: &lt;value&gt;<br />
Possible Values:     baseline | sub | super | top | text-top | middle | bottom | text-bottom | &lt;percentage&gt;<br />
Initial Value:     baseline<br />
Applies to:     Inline elements<br />
Inherited:     No</p>
<p>The vertical-align property may be used to alter the vertical positioning of an inline element, relative to its parent element or to the element&#8217;s line. (An inline element is one which has no line break before and after it, for example, EM, A, and IMG in HTML.)</p>
<p>The value may be a percentage relative to the element&#8217;s line-height property, which would raise the element&#8217;s baseline the specified amount above the parent&#8217;s baseline. Negative values are permitted.</p>
<p>The value may also be a keyword. The following keywords affect the positioning relative to the parent element:</p>
<p>* baseline (align baselines of element and parent)<br />
* middle (align vertical midpoint of element with baseline plus half the x-height&#8211;the height of the letter &#8220;x&#8221;&#8211;of the parent)<br />
* sub (subscript)<br />
* super (superscript)<br />
* text-top (align tops of element and parent&#8217;s font)<br />
* text-bottom (align bottoms of element and parent&#8217;s font)</p>
<p>The keywords affecting the positioning relative to the element&#8217;s line are</p>
<p>* top (align top of element with tallest element on the line)<br />
* bottom (align bottom of element with lowest element on the line)</p>
<p>The vertical-align property is particularly useful for aligning images. Some examples follow:</p>
<p>IMG.middle { vertical-align: middle }<br />
IMG        { vertical-align: 50% }<br />
.exponent  { vertical-align: super }</p>
<h2>Text Transformation</h2>
<p>Syntax:     text-transform: &lt;value&gt;<br />
Possible Values:     none | capitalize | uppercase | lowercase<br />
Initial Value:     none<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The text-transform property allows text to be transformed by one of four properties:</p>
<p>* capitalize (capitalizes first character of each word)<br />
* uppercase (capitalizes all characters of each word)<br />
* lowercase (uses small letters for all characters of each word)<br />
* none (the initial value)</p>
<h3>Examples:</h3>
<p>H1 { text-transform: uppercase }<br />
H2 { text-transform: capitalize }</p>
<p>The text-transform property should only be used to express a stylistic desire. It would be inappropriate, for example, to use text-transform to capitalize a list of countries or names.<br />
Text Alignment<br />
Syntax:     text-align: &lt;value&gt;<br />
Possible Values:     left | right | center | justify<br />
Initial Value:     Determined by browser<br />
Applies to:     Block-level elements<br />
Inherited:     Yes</p>
<p>The text-align property can be applied to block-level elements (P, H1, etc.) to give the alignment of the element&#8217;s text. This property is similar in function to HTML&#8217;s ALIGN attribute on paragraphs, headings, and divisions.</p>
<p>Some examples follow:</p>
<p>H1          { text-align: center }<br />
P.newspaper { text-align: justify }</p>
<h2>Text Indentation</h2>
<p>Syntax:     text-indent: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt;<br />
Initial Value:     0<br />
Applies to:     Block-level elements<br />
Inherited:     Yes</p>
<p>The text-indent property can be applied to block-level elements (P, H1, etc.) to define the amount of indentation that the first line of the element should receive. The value must be a length or a percentage; percentages refer to the parent element&#8217;s width. A common use of text-indent would be to indent a paragraph:</p>
<p>P { text-indent: 5em }</p>
<h2>Line Height</h2>
<p>Syntax:     line-height: &lt;value&gt;<br />
Possible Values:     normal | &lt;number&gt; | &lt;length&gt; | &lt;percentage&gt;<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The line-height property will accept a value to control the spacing between baselines of text. When the value is a number, the line height is calculated by multiplying the element&#8217;s font size by the number. Percentage values are relative to the element&#8217;s font size. Negative values are not permitted.</p>
<p>Line height may also be given in the font property along with a font size.</p>
<p>The line-height property could be used to double space text:</p>
<p>P { line-height: 200% }</p>
<p>Microsoft Internet Explorer 3.x incorrectly treats number values and values with em or ex units as pixel values. This bug can easily make pages unreadable, and so authors should avoid provoking it wherever possible; percentage units are often a good choice.<br />
Box Properties</p>
<p>* Top Margin<br />
* Right Margin<br />
* Bottom Margin<br />
* Left Margin<br />
* Margin<br />
* Top Padding<br />
* Right Padding<br />
* Bottom Padding<br />
* Left Padding<br />
* Padding<br />
* Top Border Width<br />
* Right Border Width<br />
* Bottom Border Width<br />
* Left Border Width<br />
* Border Width<br />
* Border Color<br />
* Border Style<br />
* Top Border<br />
* Right Border<br />
* Bottom Border<br />
* Left Border<br />
* Border<br />
* Width<br />
* Height<br />
* Float<br />
* Clear</p>
<h2>Top Margin</h2>
<p>Syntax:     margin-top: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt; | auto<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The margin-top property sets the top margin of an element by specifying a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative margins are permitted.</p>
<p>For example, the following rule would eliminate the top margin of a document:</p>
<p>BODY { margin-top: 0 }</p>
<p>Note that adjoining vertical margins are collapsed to use the maximum of the margin values.<br />
Right Margin<br />
Syntax:     margin-right: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt; | auto<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The margin-right property sets the right margin of an element by specifying a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative margins are permitted.</p>
<h3>Example:</h3>
<p>P.narrow { margin-right: 50% }</p>
<p>Note that adjoining horizontal margins are not collapsed.<br />
Bottom Margin<br />
Syntax:     margin-bottom: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt; | auto<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The margin-bottom property sets the bottom margin of an element by specifying a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative margins are permitted.</p>
<h3>Example:</h3>
<p>DT { margin-bottom: 3em }</p>
<p>Note that adjoining vertical margins are collapsed to use the maximum of the margin values.<br />
Left Margin<br />
Syntax:     margin-left: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt; | auto<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The margin-left property sets the left margin of an element by specifying a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative margins are permitted.</p>
<h3>Example:</h3>
<p>ADDRESS { margin-left: 50% }</p>
<p>Note that adjoining horizontal margins are not collapsed.<br />
Margin<br />
Syntax:     margin: &lt;value&gt;<br />
Possible Values:     [ &lt;length&gt; | &lt;percentage&gt; | auto ]{1,4}<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The margin property sets the margins of an element by specifying between one and four values, where each value is a length, a percentage, or auto. Percentage values refer to the parent element&#8217;s width. Negative margins are permitted.</p>
<p>If four values are given, they apply to top, right, bottom, and left margin, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.</p>
<p>Examples of margin declarations include:</p>
<p>BODY { margin: 5em }             /* all margins 5em */<br />
P    { margin: 2em 4em }         /* top and bottom margins 2em,<br />
left and right margins 4em */<br />
DIV  { margin: 1em 2em 3em 4em } /* top margin 1em,<br />
right margin 2em,<br />
bottom margin 3em,<br />
left margin 4em */</p>
<p>Note that adjoining vertical margins are collapsed to use the maximum of the margin values. Horizontal margins are not collapsed.</p>
<p>Using the margin property allows one to set all margins; alternatively, the properties margin-top, margin-bottom, margin-left, and margin-right may be used.<br />
Top Padding<br />
Syntax:     padding-top: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt;<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The padding-top property describes how much space to put between the top border and the content of the selector. The value is either a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative values are not permitted.<br />
Right Padding<br />
Syntax:     padding-right: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt;<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The padding-right property describes how much space to put between the right border and the content of the selector. The value is either a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative values are not permitted.<br />
Bottom Padding<br />
Syntax:     padding-bottom: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt;<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The padding-bottom property describes how much space to put between the bottom border and the content of the selector. The value is either a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative values are not permitted.<br />
Left Padding<br />
Syntax:     padding-left: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt;<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The padding-left property describes how much space to put between the left border and the content of the selector. The value is either a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative values are not permitted.<br />
Padding<br />
Syntax:     padding: &lt;value&gt;<br />
Possible Values:     [ &lt;length&gt; | &lt;percentage&gt; ]{1,4}<br />
Initial Value:     0<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The padding property is a shorthand for the padding-top, padding-right, padding-bottom, and padding-left properties.</p>
<p>An element&#8217;s padding is the amount of space between the border and the content of the element. Between one and four values are given, where each value is either a length or a percentage. Percentage values refer to the parent element&#8217;s width. Negative values are not permitted.</p>
<p>If four values are given, they apply to top, right, bottom, and left padding, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.</p>
<p>For example, the following rule sets the top padding to 2em, the right padding to 4em, the bottom padding to 5em, and the left padding to 4em:</p>
<p>BLOCKQUOTE { padding: 2em 4em 5em }</p>
<h2>Top Border Width</h2>
<p>Syntax:     border-top-width: &lt;value&gt;<br />
Possible Values:     thin | medium | thick | &lt;length&gt;<br />
Initial Value:     medium<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-top-width property is used to specify the width of an element&#8217;s top border. The value may be one of three keywords, which are not affected by font size, or a length, which can be used to achieve relative widths. Negative values are not allowed.</p>
<p>One may also use the border-top, border-width, or border shorthand properties.<br />
Right Border Width<br />
Syntax:     border-right-width: &lt;value&gt;<br />
Possible Values:     thin | medium | thick | &lt;length&gt;<br />
Initial Value:     medium<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-right-width property is used to specify the width of an element&#8217;s right border. The value may be one of three keywords, which are not affected by font size, or a length, which can be used to achieve relative widths. Negative values are not allowed.</p>
<p>One may also use the border-right, border-width, or border shorthand properties.<br />
Bottom Border Width<br />
Syntax:     border-bottom-width: &lt;value&gt;<br />
Possible Values:     thin | medium | thick | &lt;length&gt;<br />
Initial Value:     medium<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-bottom-width property is used to specify the width of an element&#8217;s bottom border. The value may be one of three keywords, which are not affected by font size, or a length, which can be used to achieve relative widths. Negative values are not allowed.</p>
<p>One may also use the border-bottom, border-width, or border shorthand properties.<br />
Left Border Width<br />
Syntax:     border-left-width: &lt;value&gt;<br />
Possible Values:     thin | medium | thick | &lt;length&gt;<br />
Initial Value:     medium<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-left-width property is used to specify the width of an element&#8217;s left border. The value may be one of three keywords, which are not affected by font size, or a length, which can be used to achieve relative widths. Negative values are not allowed.</p>
<p>One may also use the border-left, border-width, or border shorthand properties.<br />
Border Width<br />
Syntax:     border-width: &lt;value&gt;<br />
Possible Values:     [ thin | medium | thick | &lt;length&gt; ]{1,4}<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-width property is used to set the border width of an element by specifying between one and four values, where each value is a keyword or a length. Negative lengths are not permitted.</p>
<p>If four values are given, they apply to top, right, bottom, and left border width, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.</p>
<p>This property is a shorthand for the border-top-width, border-right-width, border-bottom-width, and border-left-width properties.</p>
<p>One may also use the border shorthand property.<br />
Border Color<br />
Syntax:     border-color: &lt;value&gt;<br />
Possible Values:     &lt;color&gt;{1,4}<br />
Initial Value:     The value of the color property<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-color property sets the color of an element&#8217;s border. Between one and four color values are specified. If four values are given, they apply to top, right, bottom, and left border color, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.</p>
<p>One may also use the border shorthand property.</p>
<h2>Border Style</h2>
<p>Syntax:     border-style: &lt;value&gt;<br />
Possible Values:     [ none | dotted | dashed | solid | double | groove | ridge | inset | outset ]{1,4}<br />
Initial Value:     none<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-style property sets the style of an element&#8217;s border. This property must be specified for the border to be visible.</p>
<p>Between one and four keywords are specified. If four values are given, they apply to top, right, bottom, and left border style, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.</p>
<p>One may also use the border shorthand property.</p>
<h2>Top Border</h2>
<p>Syntax:     border-top: &lt;value&gt;<br />
Possible Values:     &lt;border-top-width&gt; || &lt;border-style&gt; || &lt;color&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-top property is a shorthand for setting the width, style, and color of an element&#8217;s top border.</p>
<p>Note that only one border-style value may be given.</p>
<p>One may also use the border shorthand property.</p>
<h2>Right Border</h2>
<p>Syntax:     border-right: &lt;value&gt;<br />
Possible Values:     &lt;border-right-width&gt; || &lt;border-style&gt; || &lt;color&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-right property is a shorthand for setting the width, style, and color of an element&#8217;s right border.</p>
<p>Note that only one border-style value may be given.</p>
<p>One may also use the border shorthand property.</p>
<h2>Bottom Border</h2>
<p>Syntax:     border-bottom: &lt;value&gt;<br />
Possible Values:     &lt;border-bottom-width&gt; || &lt;border-style&gt; || &lt;color&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-bottom property is a shorthand for setting the width, style, and color of an element&#8217;s bottom border.</p>
<p>Note that only one border-style value may be given.</p>
<p>One may also use the border shorthand property.</p>
<h2>Left Border</h2>
<p>Syntax:     border-left: &lt;value&gt;<br />
Possible Values:     &lt;border-left-width&gt; || &lt;border-style&gt; || &lt;color&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border-left property is a shorthand for setting the width, style, and color of an element&#8217;s left border.</p>
<p>Note that only one border-style value may be given.</p>
<p>One may also use the border shorthand property.</p>
<h2>Border</h2>
<p>Syntax:     border: &lt;value&gt;<br />
Possible Values:     &lt;border-width&gt; || &lt;border-style&gt; || &lt;color&gt;<br />
Initial Value:     Not defined<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The border property is a shorthand for setting the width, style, and color of an element&#8217;s border.</p>
<h3>Examples of border declarations include:</h3>
<p>H2        { border: groove 3em }<br />
A:link    { border: solid blue }<br />
A:visited { border: thin dotted #800080 }<br />
A:active  { border: thick double red }</p>
<p>The border property can only set all four borders; only one border width and border style may be given. To give different values to an element&#8217;s four borders, an author must use one or more of the border-top, border-right, border-bottom, border-left, border-color, border-width, border-style, border-top-width, border-right-width, border-bottom-width, or border-left-width properties.</p>
<h2>Width</h2>
<p>Syntax:     width: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | &lt;percentage&gt; | auto<br />
Initial Value:     auto<br />
Applies to:     Block-level and replaced elements<br />
Inherited:     No</p>
<p>Each block-level or replaced element can be given a width, specified as a length, a percentage, or as auto. (A replaced element is one for which only the intrinsic dimensions are known; HTML replaced elements include IMG, INPUT, TEXTAREA, SELECT, and OBJECT.) The initial value for the width property is auto, which results in the element&#8217;s intrinsic width (i.e., the width of the element itself, for example the width of an image). Percentages refer to the parent element&#8217;s width. Negative values are not allowed.</p>
<p>This property could be used to give common widths to some INPUT elements, such as submit and reset buttons:</p>
<p>INPUT.button { width: 10em }</p>
<h2>Height</h2>
<p>Syntax:     height: &lt;value&gt;<br />
Possible Values:     &lt;length&gt; | auto<br />
Initial Value:     auto<br />
Applies to:     Block-level and replaced elements<br />
Inherited:     No</p>
<p>Each block-level or replaced element can be given a height, specified as a length or as auto. (A replaced element is one for which only the intrinsic dimensions are known; HTML replaced elements include IMG, INPUT, TEXTAREA, SELECT, and OBJECT.) The initial value for the height property is auto, which results in the element&#8217;s intrinsic height (i.e., the height of the element itself, for example the height of an image). Negative lengths are not allowed.</p>
<p>As with the width property, height can be used to scale an image:</p>
<p>IMG.foo { width: 40px; height: 40px }</p>
<p>In most cases, authors are advised to scale the image in an image editing program, since browsers will not likely scale images with high quality, and since scaling down causes the user to download an unnecessarily large file. However, scaling through the width and height properties is a useful option for user-defined style sheets in order to overcome vision problems.</p>
<h2>Float</h2>
<p>Syntax:     float: &lt;value&gt;<br />
Possible Values:     left | right | none<br />
Initial Value:     none<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The float property allows authors to wrap text around an element. This is identical in purpose to HTML 3.2&#8242;s ALIGN=left and ALIGN=right for the IMG element, but CSS1 allows all elements to &#8220;float,&#8221; not just the images and tables that HTML 3.2 allows.</p>
<h2>Clear</h2>
<p>Syntax:     clear: &lt;value&gt;<br />
Possible Values:     none | left | right | both<br />
Initial Value:     none<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The clear property specifies if an element allows floating elements to its sides. A value of left moves the element below any floating element on its left; right acts similarly for floating elements on the right. Other values are none, which is the initial value, and both, which moves the element below floating elements on both of its sides. This property is similar in function to HTML 3.2&#8242;s &lt;BR CLEAR=left|right|all|none&gt;, but it can be applied to all elements.<br />
Classification Properties</p>
<p>* Display<br />
* Whitespace<br />
* List Style Type<br />
* List Style Image<br />
* List Style Position<br />
* List Style</p>
<h2>Display</h2>
<p>Syntax:     display: &lt;value&gt;<br />
Possible Values:     block | inline | list-item | none<br />
Initial Value:     block<br />
Applies to:     All elements<br />
Inherited:     No</p>
<p>The display property is used to define an element with one of four values:</p>
<p>* block (a line break before and after the element)<br />
* inline (no line break before and after the element)<br />
* list-item (same as block except a list-item marker is added)<br />
* none (no display)</p>
<p>Each element typically is given a default display value by the browser, based on suggested rendering in the HTML specification.</p>
<p>The display property can be dangerous because of its ability to display elements in what would otherwise be an improper format. The use of the value none will turn off display of the element to which it is assigned, including any children elements!</p>
<h2>Whitespace</h2>
<p>Syntax:     white-space: &lt;value&gt;<br />
Possible Values:     normal | pre | nowrap<br />
Initial Value:     normal<br />
Applies to:     All elements<br />
Inherited:     Yes</p>
<p>The white-space property will determine how spaces within the element are treated. This property takes one of three values:</p>
<p>* normal (collapses multiple spaces into one)<br />
* pre (does not collapse multiple spaces)<br />
* nowrap (does not allow line wrapping without a &lt;BR&gt; tag)</p>
<h2>List Style Type</h2>
<p>Syntax:     list-style-type: &lt;value&gt;<br />
Possible Values:     disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none<br />
Initial Value:     disc<br />
Applies to:     Elements with display value list-item<br />
Inherited:     Yes</p>
<p>The list-style-type property specifies the type of list-item marker, and is used if list-style-image is none or if image loading is turned off.</p>
<h3>Examples:</h3>
<p>LI.square { list-style-type: square }<br />
UL.plain  { list-style-type: none }<br />
OL        { list-style-type: upper-alpha }  /* A B C D E etc. */<br />
OL OL     { list-style-type: decimal }      /* 1 2 3 4 5 etc. */<br />
OL OL OL  { list-style-type: lower-roman }  /* i ii iii iv v etc. */</p>
<h2>List Style Image</h2>
<p>Syntax:     list-style-image: &lt;value&gt;<br />
Possible Values:     &lt;url&gt; | none<br />
Initial Value:     none<br />
Applies to:     Elements with display value list-item<br />
Inherited:     Yes</p>
<p>The list-style-image property specifies the image that will be used as list-item marker when image loading is turned on, replacing the marker specified in the list-style-type property.</p>
<h3>Examples:</h3>
<p>UL.check { list-style-image: url(/LI-markers/checkmark.gif) }<br />
UL LI.x  { list-style-image: url(x.png) }</p>
<h2>List Style Position</h2>
<p>Syntax:     list-style-position: &lt;value&gt;<br />
Possible Values:     inside | outside<br />
Initial Value:     outside<br />
Applies to:     Elements with display value list-item<br />
Inherited:     Yes</p>
<p>The list-style-position property takes the value inside or outside, with outside being the default. This property determines where the marker is placed in regard to the list item. If the value inside is used, the lines will wrap under the marker instead of being indented. An example rendering is:</p>
<h2>Outside rendering:</h2>
<p>* List item 1<br />
second line of list item</p>
<h2>Inside rendering:</h2>
<p>* List item 1<br />
second line of list item</p>
<h2>List Style</h2>
<p>Syntax:     list-style: &lt;value&gt;<br />
Possible Values:     &lt;list-style-type&gt; || &lt;list-style-position&gt; || &lt;url&gt;<br />
Initial Value:     Not defined<br />
Applies to:     Elements with display value list-item<br />
Inherited:     Yes</p>
<p>The list-style property is a shorthand for the list-style-type, list-style-position, and list-style-image properties.</p>
<h3>Examples:</h3>
<p>LI.square { list-style: square inside }<br />
UL.plain  { list-style: none }<br />
UL.check  { list-style: url(/LI-markers/checkmark.gif) circle }<br />
OL        { list-style: upper-alpha }<br />
OL OL     { list-style: lower-roman inside }</p>
<h2>Units</h2>
<p>* Length Units<br />
* Percentage Units<br />
* Color Units<br />
* URLs</p>
<h2>Length Units</h2>
<p>A length value is formed by an optional + or -, followed by a number, followed by a two-letter abbreviation that indicates the unit. There are no spaces in a length value; e.g., 1.3 em is not a valid length value, but 1.3em is valid. A length of 0 does not require the two-letter unit identifier.</p>
<p>Both relative and absolute length units are supported in CSS1. Relative units give a length relative to another length property, and are preferred since they will better adjust to different media. The following relative units are available:</p>
<p>* em (ems, the height of the element&#8217;s font)<br />
* ex (x-height, the height of the letter &#8220;x&#8221;)<br />
* px (pixels, relative to the canvas resolution)</p>
<p>Absolute length units are highly dependent on the output medium, and so are less useful than relative units. The following absolute units are available:</p>
<p>* in (inches; 1in=2.54cm)<br />
* cm (centimeters; 1cm=10mm)<br />
* mm (millimeters)<br />
* pt (points; 1pt=1/72in)<br />
* pc (picas; 1pc=12pt)</p>
<h2>Percentage Units</h2>
<p>A percentage value is formed by an optional + or -, followed by a number, followed by %. There are no spaces in a percentage value.</p>
<p>Percentage values are relative to other values, as defined for each property. Most often the percentage value is relative to the element&#8217;s font size.<br />
Color Units</p>
<p>A color value is a keyword or a numerical RGB specification.</p>
<p>The 16 keywords are taken from the Windows VGA palette: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.</p>
<p>RGB colors are given in one of four ways:</p>
<p>* #rrggbb (e.g., #00cc00)<br />
* #rgb (e.g., #0c0)<br />
* rgb(x,x,x) where x is an integer between 0 and 255 inclusive (e.g., rgb(0,204,0))<br />
* rgb(y%,y%,y%) where y is a number between 0.0 and 100.0 inclusive (e.g., rgb(0%,80%,0%))</p>
<p>The examples above all specify the same color.</p>
<p>Douglas R. Jacobson has also developed a handy quick reference RGB Color Chart (61 kB).<br />
URLs</p>
<p>A URL value is given by url(foo), where foo is the URL. The URL may be optionally quoted with either single (&#8216;) or double (&#8220;) quotes and may contain whitespace before or after the (optionally quoted) URL.</p>
<p>Parentheses, commas, spaces, single quotes, or double quotes in the URL must be escaped with a backslash. Partial URLs are interpreted relative to the style sheet source, not to the HTML source.</p>
<p>Note that Netscape Navigator 4.x incorrectly interprets partial URLs relative to the HTML source. Given this bug, authors may wish to use full URLs where possible.</p>
<h3>Examples:</h3>
<p>BODY { background: url(stripe.gif) }<br />
BODY { background: url(http://www.htmlhelp.com/stripe.gif) }<br />
BODY { background: url( stripe.gif ) }<br />
BODY { background: url(&#8220;stripe.gif&#8221;) }<br />
BODY { background: url(\&#8221;Ulalume\&#8221;.png) } /* quotes in URL escaped */</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=72&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/11/css-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>
	</item>
		<item>
		<title>Sexy Drop down Menu</title>
		<link>http://mindbee.wordpress.com/2009/09/04/sexy-drop-down-menu/</link>
		<comments>http://mindbee.wordpress.com/2009/09/04/sexy-drop-down-menu/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:19:41 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Sexy Drop down Menu]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[drop down menu]]></category>
		<category><![CDATA[jquery drop down menu]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/?p=69</guid>
		<description><![CDATA[Step1. HTML First create an unordered list for your base top navigation. Then simply nest another unordered list for your sub navigation. &#60;ul&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Home&#60;/a&#62;&#60;/li&#62; &#60;li&#62; &#60;a href=&#8221;#&#8221;&#62;Tutorials&#60;/a&#62; &#60;ul&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Sub Nav Link&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Sub Nav Link&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/li&#62; &#60;li&#62; &#60;a href=&#8221;#&#8221;&#62;Resources&#60;/a&#62; &#60;ul&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Sub Nav Link&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Sub Nav Link&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;About [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=69&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><span style="text-decoration:underline;">Step1. HTML</span></h1>
<p>First create an unordered list for your base top navigation. Then simply nest another unordered list for your sub navigation.</p>
<p>&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Tutorials&lt;/a&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Sub Nav Link&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Sub Nav Link&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;<br />
&lt;li&gt;<br />
&lt;a href=&#8221;#&#8221;&gt;Resources&lt;/a&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Sub Nav Link&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Sub Nav Link&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;About Us&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Advertise&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Submit&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<h1><span style="text-decoration:underline;">Step2. CSS</span></h1>
<p>Next, it’s time to style the navigation wireframe with CSS.</p>
<p>ul.topnav {<br />
list-style: none;<br />
padding: 0 20px;<br />
margin: 0;<br />
float: left;<br />
width: 920px;<br />
background: #222;<br />
font-size: 1.2em;<br />
background: url(topnav_bg.gif) repeat-x;<br />
}<br />
ul.topnav li {<br />
float: left;<br />
margin: 0;<br />
padding: 0 15px 0 0;<br />
position: relative; /*&#8211;Declare X and Y axis base for sub navigation&#8211;*/<br />
}<br />
ul.topnav li a{<br />
padding: 10px 5px;<br />
color: #fff;<br />
display: block;<br />
text-decoration: none;<br />
float: left;<br />
}<br />
ul.topnav li a:hover{<br />
background: url(topnav_hover.gif) no-repeat center top;<br />
}<br />
ul.topnav li span { /*&#8211;Drop down trigger styles&#8211;*/<br />
width: 17px;<br />
height: 35px;<br />
float: left;<br />
background: url(subnav_btn.gif) no-repeat center top;<br />
}<br />
ul.topnav li span.subhover {background-position: center bottom; cursor: pointer;} /*&#8211;Hover effect for trigger&#8211;*/<br />
ul.topnav li ul.subnav {<br />
list-style: none;<br />
position: absolute; /*&#8211;Important &#8211; Keeps subnav from affecting main navigation flow&#8211;*/<br />
left: 0; top: 35px;<br />
background: #333;<br />
margin: 0; padding: 0;<br />
display: none;<br />
float: left;<br />
width: 170px;<br />
border: 1px solid #111;<br />
}<br />
ul.topnav li ul.subnav li{<br />
margin: 0; padding: 0;<br />
border-top: 1px solid #252525; /*&#8211;Create bevel effect&#8211;*/<br />
border-bottom: 1px solid #444; /*&#8211;Create bevel effect&#8211;*/<br />
clear: both;<br />
width: 170px;<br />
}<br />
html ul.topnav li ul.subnav li a {<br />
float: left;<br />
width: 145px;<br />
background: #333 url(dropdown_linkbg.gif) no-repeat 10px center;<br />
padding-left: 20px;<br />
}<br />
html ul.topnav li ul.subnav li a:hover { /*&#8211;Hover effect for subnav links&#8211;*/<br />
background: #222 url(dropdown_linkbg.gif) no-repeat 10px center;<br />
}</p>
<h1><span style="text-decoration:underline;">Step3. jQuery</span></h1>
<p>The following script contains comments explaining which jQuery actions are being performed.</p>
<p>$(document).ready(function(){</p>
<p>$(&#8220;ul.subnav&#8221;).parent().append(&#8220;&lt;span&gt;&lt;/span&gt;&#8221;); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)</p>
<p>$(&#8220;ul.topnav li span&#8221;).click(function() { //When trigger is clicked&#8230;</p>
<p>//Following events are applied to the subnav itself (moving subnav up and down)<br />
$(this).parent().find(&#8220;ul.subnav&#8221;).slideDown(&#8216;fast&#8217;).show(); //Drop down the subnav on click</p>
<p>$(this).parent().hover(function() {<br />
}, function(){<br />
$(this).parent().find(&#8220;ul.subnav&#8221;).slideUp(&#8216;slow&#8217;); //When the mouse hovers out of the subnav, move it back up<br />
});</p>
<p>//Following events are applied to the trigger (Hover events for the trigger)<br />
}).hover(function() {<br />
$(this).addClass(&#8220;subhover&#8221;); //On hover over, add class &#8220;subhover&#8221;<br />
}, function(){    //On Hover Out<br />
$(this).removeClass(&#8220;subhover&#8221;); //On hover out, remove class &#8220;subhover&#8221;<br />
});</p>
<p>});</p>
<p><a title="Sexy drop down menu" href="http://www.sohtanaka.com/web-design/examples/drop-down-menu/" target="_self">View Demo of Sexy Drop Down Menu</a></p>
<p><!--Session data--></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=69&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/04/sexy-drop-down-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>
	</item>
		<item>
		<title>Css3 Advantages</title>
		<link>http://mindbee.wordpress.com/2009/09/02/css3-advantages/</link>
		<comments>http://mindbee.wordpress.com/2009/09/02/css3-advantages/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 14:39:00 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Css3 advantages]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/?p=65</guid>
		<description><![CDATA[CSS3 Advantages Having got a detailed idea of CSS3 and its features with some of the vital attributes of CSS3 let us see the advantages or uses of CSS3 in brief in this section. There are numerous and variety of areas in which CSS3 makes it mark and thus users finds it one of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=65&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><span style="text-decoration:underline;"><strong>CSS3 Advantages</strong></span></h2>
<p>Having got a detailed idea of CSS3 and its features with some of the vital attributes of CSS3 let us see the advantages or uses of CSS3 in brief in this section. There are numerous and variety of areas in which CSS3 makes it mark and thus users finds it one of the comfortable and powerful tools for usage thus making it a reason for its popularity. Let us see some of the important advantages and uses of CSS3 in detail.</p>
<p><span style="text-decoration:underline;"><strong>Usage of style sheet:</strong></span></p>
<p>Long before introduction of CSS3 in fact the Cascading style sheets concepts designers of web were using HTML markup to denote the font colors, background styles, border size. But after the introduction of Cascading style sheets concept all these got moved into a separate style sheet area thus making the users to have an easier and comfortable HTML markup. This gives another associated advantage of CSS3 are easier maintenance by which updations and changes are made only to the individual modules needed and testing of the individual modules is carried out and then integrating with the total system thus making the maintenance part very simple.</p>
<p><span style="text-decoration:underline;"><strong>Differentiation and Isolation:</strong></span></p>
<p>The concept of CSS3 helps users to have presentation separated from structure. That is for instance prior to the concept of CSS3 while users and web designers were using HTML markup the way of depicting or denoting a heading to be centered on the page in Bold, Blue with Ariel font would be as follows:</p>
<p>&amp;lt;h2 align=&#8221;center&#8221;&amp;gt;<br />
&amp;lt;font color=&#8221;blue&#8221; size=&#8221;+6&#8243; face=&#8221;Ariel&#8221;&amp;gt;<br />
&amp;lt;i&amp;gt;Usage of CSS&amp;lt;/i&amp;gt;<br />
&amp;lt;/font&amp;gt;<br />
&amp;lt;/h2&amp;gt;</p>
<p>The above structure is very difficult to manage because the markup had to be repeated for each heading to apply wherever needed thus making more complex maintenance and presentation. But by the concept of Cascading style sheets and CSS3 the presentation separated from structure. That is clear differentiation and isolation is made where by the style sheet defines presentational characteristics and the structure of document defined in heading &amp;lt;h2&amp;gt;. Thus taking the following format:</p>
<p>&amp;lt;h2&amp;gt;Benefits of Cascading style sheets&amp;lt;/h2&amp;gt;</p>
<p>h2 {<br />
text-align: center;<br />
color: blue;<br />
font: bold &#8220;Ariel&#8221;;<br />
}</p>
<p>The above separation of presentation from structure concept helps the users to maintain in an efficient, easier and comfortable manner. Thus the modularized approach helps to develop and maintain the system on a per module basis and thus gives more flexibility to the system.</p>
<p><span style="text-decoration:underline;"><strong>Helps to achieve Multi Column Layout:</strong></span></p>
<p>Multi-Column Module is a vital feature present in CSS3.This feature enables users to flow the content of an element into multiple columns. The CSS3 Multi-Column Module is a important feature because it gives users the following features or advantages are there is no need to for users to scroll up and down while reading the text from one column to the next column, it prevents the need for horizontal scrolling, wraps text user friendly and easier to read without making too short words or lines and most of all everything could be embedded in a single page making it comfortable and economical. We have seen about this Multi-Column Module feature in detail in our earlier section of CSS3.</p>
<p><span style="text-decoration:underline;"><strong>Flexibility in Handling:</strong></span></p>
<p>The Cascading style sheets concept helps users to handle in a flexible and convenient way the web designing because it is possible to attach the CSS style information as a separate document or if the user wishes it is also possible to attach the CSS style information embedded within the HTML document. Also it is possible to handle multiple style sheets that is to say in other words multiple style sheets can be imported anywhere. It is also possible for users to specify many alternative style sheets which enable users to make a choice between them as needed. Thus the modularized approach of CSS3 helps to develop and maintain the system on a per module basis and thus gives more flexibility to the system .Thus greater control and flexibility is achieved at presentation level by user of CSS3 because of the advantages and powerful features of CSS3.</p>
<p><span style="text-decoration:underline;"><strong>Handling multiple background images:</strong></span></p>
<p>The drawback with CSS2 was that CSS2 allowed only a single background image per element. This drawback was removed in CSS3 by its capability of handling multiple background images per element.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=65&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/02/css3-advantages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>
	</item>
		<item>
		<title>Applying CSS to forms</title>
		<link>http://mindbee.wordpress.com/2009/09/02/applying-css-to-forms/</link>
		<comments>http://mindbee.wordpress.com/2009/09/02/applying-css-to-forms/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 05:01:55 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Css form]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/?p=47</guid>
		<description><![CDATA[The original form Name  E-mail That form looks horrible! Here&#8217;s the code behind it: &#60;form action=&#8221;#&#8221;&#62; &#60;p&#62;&#60;label for=&#8221;name&#8221;&#62;Name&#60;/label&#62; &#60;input type=&#8221;text&#8221; id=&#8221;name&#8221; /&#62;&#60;/p&#62; &#60;p&#62;&#60;label for=&#8221;e-mail&#8221;&#62;E-mail&#60;/label&#62; &#60;input type=&#8221;text&#8221; id=&#8221;e-mail&#8221; /&#62;&#60;/p&#62; &#60;p&#62;&#60;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221; /&#62;&#60;/p&#62; &#60;/form&#62; Positioning the form with CSS The first thing we need to do to the form is make it line up nicely. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=47&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><span style="text-decoration:underline;"><strong>The original form</strong></span></h2>
<p>Name  <img class="alignnone size-full wp-image-58" title="text" src="http://mindbee.files.wordpress.com/2009/09/text2.jpg?w=480" alt="text"   /><br />
E-mail <img class="alignnone size-full wp-image-59" title="text" src="http://mindbee.files.wordpress.com/2009/09/text3.jpg?w=480" alt="text"   /></p>
<h4>That form looks horrible! Here&#8217;s the code behind it:</h4>
<p>&lt;form action=&#8221;#&#8221;&gt;<br />
&lt;p&gt;&lt;label for=&#8221;name&#8221;&gt;Name&lt;/label&gt; &lt;input type=&#8221;text&#8221; id=&#8221;name&#8221; /&gt;&lt;/p&gt;<br />
&lt;p&gt;&lt;label for=&#8221;e-mail&#8221;&gt;E-mail&lt;/label&gt; &lt;input type=&#8221;text&#8221; id=&#8221;e-mail&#8221; /&gt;&lt;/p&gt;<br />
&lt;p&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221; /&gt;&lt;/p&gt;<br />
&lt;/form&gt;</p>
<h2>Positioning the form with CSS</h2>
<p>The first thing we need to do to the form is make it line up nicely. In the old days this could only be achieved with tables &#8211; not anymore, courtesy of our old friend, CSS. We&#8217;ll need to assign some CSS rules to them:</p>
<p>label<br />
{<br />
width: 4em;<br />
float: left;<br />
text-align: right;<br />
margin-right: 0.5em;<br />
display: block<br />
}</p>
<p>.submit input<br />
{<br />
margin-left: 4.5em;<br />
}</p>
<p>Right, let&#8217;s go through that CSS bit-by-bit. We gave the label a fixed width of 4em, although this should obviously be increased if the prompt text in the form is anything longer than what we&#8217;ve got now (‘name’ and ‘e-mail’). We also specified the width in terms of em and not px so that if users increase the text size3 the width will increase with the larger letters.</p>
<p>The margin-right: 0.5em CSS command means the labels will have a small amount of spacing after them, so that the text isn&#8217;t up against the input box.</p>
<p>The submit button has a left margin of 4.5em so that it aligns with the input boxes, which are 5em from the left. This includes the 4em width and the 0.5em right margin of the prompt text.</p>
<p>So, putting that altogether gives us this form:</p>
<p><img class="alignnone size-full wp-image-62" title="form" src="http://mindbee.files.wordpress.com/2009/09/form.jpg?w=480" alt="form"   /></p>
<p>Looks much better, but it&#8217;s still rather plain. Let&#8217;s use some more CSS to jazz up the form so it&#8217;s more inline with the colour scheme on the page.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=47&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/02/applying-css-to-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/text2.jpg" medium="image">
			<media:title type="html">text</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/text3.jpg" medium="image">
			<media:title type="html">text</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/form.jpg" medium="image">
			<media:title type="html">form</media:title>
		</media:content>
	</item>
		<item>
		<title>Curved corner without image</title>
		<link>http://mindbee.wordpress.com/2009/09/02/curved-corner-without-image/</link>
		<comments>http://mindbee.wordpress.com/2009/09/02/curved-corner-without-image/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 04:43:56 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Curved corner without image]]></category>
		<category><![CDATA[curved corner]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[no-image]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/?p=44</guid>
		<description><![CDATA[rounded corners without images Rounded Corners with CSS are a hot topic in web design: I think that there are hundreds of articles on them. This page is intended to present the solution I came up, that doesn&#8217;t requires images, extra markup nor CSS. Let&#8217;s start. Stripe it to get it rounded This is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=44&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>rounded corners without images</h1>
<p>Rounded Corners with CSS are a hot topic in web design: I think that there are hundreds of articles on them. This page is intended to present the solution I came up, that doesn&#8217;t requires images, extra markup nor CSS. Let&#8217;s start.</p>
<h2>Stripe it to get it rounded</h2>
<p>This is the markup to get a rounded div:</p>
<p>&lt;div id=&#8221;container&#8221;&gt;<br />
&lt;b class=&#8221;rtop&#8221;&gt;<br />
&lt;b class=&#8221;r1&#8243;&gt;&lt;/b&gt; &lt;b class=&#8221;r2&#8243;&gt;&lt;/b&gt; &lt;b class=&#8221;r3&#8243;&gt;&lt;/b&gt; &lt;b class=&#8221;r4&#8243;&gt;&lt;/b&gt;<br />
&lt;/b&gt;<br />
<em>&lt;!&#8211;content goes here &#8211;&gt;</em><br />
&lt;b class=&#8221;rbottom&#8221;&gt;<br />
&lt;b class=&#8221;r4&#8243;&gt;&lt;/b&gt; &lt;b class=&#8221;r3&#8243;&gt;&lt;/b&gt; &lt;b class=&#8221;r2&#8243;&gt;&lt;/b&gt; &lt;b class=&#8221;r1&#8243;&gt;&lt;/b&gt;<br />
&lt;/b&gt;<br />
&lt;/div&gt;</p>
<p>And here&#8217;s it the basic CSS:</p>
<p>.rtop, .rbottom{display:block}<br />
.rtop *, .rbottom *{display: block; height: 1px; overflow: hidden}<br />
.r1{margin: 0 5px}<br />
.r2{margin: 0 3px}<br />
.r3{margin: 0 2px}<br />
.r4{margin: 0 1px; height: 2px}</p>
<p>You can see the final effect on this <a class="aligncenter" title="Rounded corner without image" href="http://www.html.it/articoli/nifty/nifty1.html" target="_self">Simple example</a>. A few words on the use of the <code>&lt;b&gt;</code> element. I needed an inline element to obtain the rounded corners, since it could be nested in almost every kind of tag mainting the markup valid. So the choice fell on <code>b</code> because it doesn&#8217;t have semantical meaning and it&#8217;s shorter than <code>span</code>, like Eric Meyer said.</p>
<p>The technique works even on floated, absolute positioned or percentage-width elements. It fails on element with fixed height, or with padding. Both of the problem could be easily solved with an extra wrapper around the content.</p>
<p>Known bugs are: text-indent won&#8217;t work on the element that has been rounded in Opera, and IE (both Mac &amp;  version 6 PC) would mess up on floated elements without specific width.</p>
<p>The support should be extended to all modern browsers: the technique has been tested with success in Internet Explorer 6, Opera 7.6, FireFox 1.0, Safari 1.1  Mac IE. It fails on IE 5.x PC.</p>
<p><!--Session data--></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=44&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/02/curved-corner-without-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>
	</item>
		<item>
		<title>Curved corner</title>
		<link>http://mindbee.wordpress.com/2009/09/02/19/</link>
		<comments>http://mindbee.wordpress.com/2009/09/02/19/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 03:53:10 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Curved corners]]></category>
		<category><![CDATA[corner]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[curve]]></category>
		<category><![CDATA[curved corner]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/2009/09/02/19/</guid>
		<description><![CDATA[CSS and Round Corners: Build Boxes with Curves One of the main reasons why designers use images on a Web page is to create curves and round corners. It&#8217;s currently impossible to create any kind of curved shapes using pure HTML, so images need to be applied. The problem? Putting these images into an HTML [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=19&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>CSS and Round Corners: Build Boxes with Curves</strong></span></p>
<p>One of the main reasons why designers use images on a Web page is to create curves and round corners. It&#8217;s currently impossible to create any kind of curved shapes using pure HTML, so images need to be applied.</p>
<p>The problem? Putting these images into an HTML document with a table layout can create a large amount of superfluous code. In this tutorial, we&#8217;ll use CSS to create this box with round corners, without an &lt;img&gt; tag in sight!<br />
<span style="text-decoration:underline;"><em> </em></span></p>
<p><span style="text-decoration:underline;"><em>How it Works</em></span></p>
<p>The above is basically a normal box that has an orange background colour, over which four corner images are superimposed. All these images have been called up through CSS commands.</p>
<p>So, we start off with the following snippet:</p>
<p><span style="color:#800000;">&lt;div class=&#8221;b1&#8243;&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit&lt;/div&gt;</span></p>
<p>We&#8217;ve used <span style="color:#800000;">class=&#8221;b1&#8243; </span>as we&#8217;re going to assign our bottom right corner to this &lt;div&gt; through a CSS command. As a rule, you can only assign one background image to an HTML tag using CSS, so this is the only image we&#8217;ll assign to this &lt;div&gt;.</p>
<p><img class="size-full wp-image-25 alignleft" title="1bl" src="http://mindbee.files.wordpress.com/2009/09/1bl.gif?w=480" alt="1bl"   /></p>
<p>We&#8217;ll use the image, called bl.gif, which we&#8217;ll place in the bottom-left corner with the following CSS command:</p>
<p><span style="color:#800000;">.bl {background: url(bl.gif) 0 100% no-repeat; width: 20em}</span></p>
<p>The CSS background command is broken into three sections: the image URL, its position, and a repeat command. We also inserted a width CSS command so that the box doesn&#8217;t cover the whole of the screen. Let&#8217;s examine the three background commands in turn:</p>
<p>1. Image URL &#8211; Remember, the image is being called through the CSS, so the path to the image must be the path from the CSS document, not the HTML document.</p>
<p>2. Image Position &#8211; In this example, we&#8217;ve used the command 0 100% in our CSS rule. The first number represents the distance from the left edge of the &lt;div&gt; ; the second number identifies the distance from the top edge. In this instance % was used, but a different distance value, such as <span style="color:#800000;">em or px</span>, could just as easily have been used instead. If this command was left out, the default value, 0 0, would be used, and the image would be placed in the top-left corner.</p>
<p>3. Repeat Command – Obviously, we don&#8217;t want this image to repeat, so we insert the no-repeat CSS command. If we wanted to, we could have used repeat-x, to repeat the image horizontally, repeat-y, to repeat it vertically, and repeat to repeat it both horizontally and vertically. If this command was left out, the default value, repeat, would be used.</p>
<p>It doesn&#8217;t matter in which order these three CSS background commands are placed.</p>
<p>Next, we&#8217;ll stick in that bottom-right curve. As previously mentioned, we can only assign one background image to each &lt;div&gt; in the CSS, so we&#8217;ll need to insert a new &lt;div&gt;:</p>
<p><span style="color:#800000;">&lt;div class=&#8221;b1&#8243;&gt;&lt;div class=&#8221;br&#8221;&gt;</span><br />
Lorem ipsum dolor sit amet consectetur adipisicing elit<br />
<span style="color:#800000;">&lt;/div&gt;&lt;/div&gt;</span></p>
<p>Here&#8217;s the image we&#8217;ll use:</p>
<p><img class="alignleft size-full wp-image-28" title="1br" src="http://mindbee.files.wordpress.com/2009/09/1br.gif?w=480" alt="1br"   /></p>
<p><span style="text-decoration:underline;"><em>Naming this bottom-right image br.gif, we&#8217;ll insert a new CSS rule:</em></span></p>
<p><span style="color:#800000;">.br {background: url(br.gif) 100% 100% no-repeat}</span></p>
<p>This CSS rule is essentially the same as the last one, although now we&#8217;ve changed the position from the left to 100%, where previously it was 0%. The box now looks like this.<br />
<span style="text-decoration:underline;"><em>Top Curves</em></span></p>
<p>To make our top curves, we&#8217;ll need two new images:</p>
<p>We&#8217;ll call these  tl.gif and tr.gif.</p>
<p><img class="alignleft size-full wp-image-29" title="1tl" src="http://mindbee.files.wordpress.com/2009/09/1tl.gif?w=480" alt="1tl"   /></p>
<p><img class="alignleft size-full wp-image-30" title="1tr" src="http://mindbee.files.wordpress.com/2009/09/1tr.gif?w=480" alt="1tr"   /></p>
<p>We&#8217;ll need to create two new &lt;div&gt;s for them:</p>
<p><span style="color:#800000;">&lt;div class=&#8221;b1 &#8220;&gt;&lt;div class=&#8221;br &#8220;&gt;&lt;div class=&#8221;tl &#8220;&gt;&lt;div class=&#8221;tr &#8220;&gt;<br />
Lorem ipsum dolor sit amet consectetur adipisicing elit<br />
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</span></p>
<p>The new CSS rules are as follows:</p>
<p><span style="color:#800000;">.tl {background: url(tl.gif) 0 0 no-repeat}<br />
.tr {background: url(tr.gif) 100% 0 no-repeat}</span></p>
<p>These give us this display.<br />
Background Colour</p>
<p>We&#8217;ll now insert our orange background colour into the box, in order to achieve the whole round corners effects.</p>
<p>The background colour must always be assigned to the very first CSS rule. This is because each CSS background rule is essentially a layer on top of the previous one. So, in this example, we have a layering order of br.gif, bl.gif, tl.gif and then tr.gif. But, in this example, the images don&#8217;t overlap, so we don&#8217;t really notice this layering effect.</p>
<p>By default, a background colour covers the entire &lt;div&gt; and will layer on top of any other previously assigned background images and/or colours. Therefore, if we place the orange colour in any &lt;div&gt; other than the first, it will be placed on top of the preceding images and will essentially cause them to disappear. Therefore, we must place our orange background colour (<span style="color:#800000;">#e68200</span>) in the very first CSS rule:</p>
<p><span style="color:#800000;">.bl {background: url(bl.gif) 0 100% no-repeat #e68200; width: 20em}</span></p>
<p>As before, it doesn&#8217;t matter where we place this colour command within the CSS background rule. Our box now looks like this.<br />
Padding</p>
<p>Padding is needed to prevent the text from overlapping on to the images, which are 10px x 10px in size. Therefore, we need 10px-worth of padding on the text. But to which &lt;div&gt; should we assign the padding CSS rule? Does it matter? Well, yes it does.</p>
<p>Whichever element we assign padding to, each of the elements inside it will inherit that padding. If we were to assign padding to the very first &lt;div&gt;, <span style="color:#800000;">&lt;div class=&#8221;bl&#8221;&gt;</span>, we&#8217;d get this effect.</p>
<p>To get this padding to work properly, we need to assign it to the very last <span style="color:#800000;">&lt;div class=&#8221;b1&#8243;&gt;&lt;div&gt;:</span></p>
<p><span style="color:#800000;">.tr {background: url(tr.gif) 100% 0 no-repeat; padding:10px}</span></p>
<p>You may have noticed the bottom corners were called up before the top corners. If we were to do things the other way round, that is, call the top corners first, some parts of the orange background colour would sneak out under the bottom curves, causing a rather unsightly effect. Switch the order of the &lt;div&gt;s around and see for yourself.</p>
<p>Another issue in Internet Explorer is that the background colour of the box sometimes overlaps on to the element below, again causing an unattractive effect. This can be solved simply by placing a tiny placeholder beneath the box with round corners. Immediately after the fourth closing &lt;/div&gt;, insert the following HTML:</p>
<p><span style="color:#800000;">&lt;div class=&#8221;clear&#8221;&gt;&amp;nbsp;&lt;/div&gt;</span></p>
<p>Now, assign it this CSS rule:</p>
<p><span style="color:#800000;">.clear {font-size: 1px; height: 1px}</span><br />
The Final Code</p>
<p>Our finished HTML now looks like this:</p>
<p><span style="color:#800000;">&lt;div class=&#8221;b1&#8243;&gt;&lt;div class=&#8221;br&#8221;&gt;&lt;div class=&#8221;tl&#8221;&gt;&lt;div class=&#8221;tr&#8221;&gt;</span><br />
Lorem ipsum dolor sit amet consectetur adipisicing elit<br />
<span style="color:#800000;">&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br />
&lt;div class=&#8221;clear&#8221;&gt;&amp;nbsp;&lt;/div&gt;</span></p>
<p>Here&#8217;s the CSS that makes it all happen:</p>
<p><span style="color:#800000;">.bl {background: url(bl.gif) 0 100% no-repeat #e68200; width: 20em}<br />
.br {background: url(br.gif) 100% 100% no-repeat}<br />
.tl {background: url(tl.gif) 0 0 no-repeat}<br />
.tr {background: url(tr.gif) 100% 0 no-repeat; padding:10px}<br />
.clear {font-size: 1px; height: 1px}</span></p>
<p><!--Session data--></p>
<p><!--Session data--></p>
<p><!--Session data--></p>
<p><!--Session data--></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=19&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/02/19/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/1bl.gif" medium="image">
			<media:title type="html">1bl</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/1br.gif" medium="image">
			<media:title type="html">1br</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/1tl.gif" medium="image">
			<media:title type="html">1tl</media:title>
		</media:content>

		<media:content url="http://mindbee.files.wordpress.com/2009/09/1tr.gif" medium="image">
			<media:title type="html">1tr</media:title>
		</media:content>
	</item>
		<item>
		<title>Css Dropshadow</title>
		<link>http://mindbee.wordpress.com/2009/09/01/css-dropshadow/</link>
		<comments>http://mindbee.wordpress.com/2009/09/01/css-dropshadow/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:04:01 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[Css Dropshadow]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[drop shadow]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/?p=11</guid>
		<description><![CDATA[CSS drop shadow Overview Technique to build flexible CSS drop shadows applied to arbitrary block elements. Most of the existing techniques for creating element shadows use images, this one doesn&#8217;t. IT uses plain simple CSS. Have a look below. First include the style sheet at the top of your code. Do it in &#60;head&#62; tag, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=11&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>CSS drop shadow</strong></span></p>
<p>Overview</p>
<p>Technique to build flexible CSS drop shadows applied to arbitrary block elements. Most of the existing techniques for creating element shadows use images, this one doesn&#8217;t. IT uses plain simple CSS. Have a look below.</p>
<p>First include the style sheet at the top of your code. Do it in &lt;head&gt; tag, then you can write your code.<br />
Source code for index.html</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;en&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;My project&lt;/title&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;<br />
&lt;link media=&#8221;screen&#8221; type=&#8221;text/css&#8221; rel=&#8221;stylesheet&#8221; href=&#8221;webtoolkit.shadow.css&#8221; /&gt;</p>
<p>&lt;style&gt;<br />
body {<br />
margin: 0px;<br />
padding: 20px;<br />
font-family: verdana;<br />
font-size: 12px;<br />
}<br />
&lt;/style&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;div id=&#8221;shadow-container&#8221;&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#8217;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Source code for webtoolkit.shadow.css</p>
<p>#shadow-container {<br />
position: relative;<br />
left: 3px;<br />
top: 3px;<br />
margin-right: 3px;<br />
margin-bottom: 3px;<br />
}</p>
<p>#shadow-container .shadow2,<br />
#shadow-container .shadow3,<br />
#shadow-container .container {<br />
position: relative;<br />
left: -1px;<br />
top: -1px;<br />
}</p>
<p>#shadow-container .shadow1 {<br />
background: #F1F0F1;<br />
}</p>
<p>#shadow-container .shadow2 {<br />
background: #DBDADB;<br />
}</p>
<p>#shadow-container .shadow3 {<br />
background: #B8B6B8;<br />
}</p>
<p>#shadow-container .container {<br />
background: #ffffff;<br />
border: 1px solid #848284;<br />
padding: 10px;<br />
}</p>
<p>CSS: clean IE8 css hack<br />
A new browser, Internet Explorer 8 was released recently. Of course it wasn&#8217;t bug free, no browser is bug free. I ran into a problem that required me to alter css only for IE8, so I searched web for a css hack that works and found few but they all were very ugly.</p>
<p>While looking at IE8 bugs, I found this little bug (#23): Multiple Type ID selector statement is incorrectly ignored, which means to make style work with all browsers except for IE8, all designer has to do is add selector that IE8 considers invalid.</p>
<p>So here is a clean IE8 hack:</p>
<p>Code:<br />
div.test { color: red; }<br />
div.test, #ie8#fix { color: blue; }</p>
<p>This code will set color to blue in all browsers, except for IE8, in IE8 it will be red.</p>
<p>How it works: IE8 thinks that #ie8#fix is an invalid selector and ignores everything from following { to matching }</p>
<p>Another example. I&#8217;ve highlighted part of code that IE8 sees:</p>
<p>Code:<br />
body {<br />
font-family: Verdana, Helvetica, Arial, sans-serif;<br />
background-color: white;<br />
color: black; /* for IE8 */<br />
}<br />
body, #ie8#fix {<br />
color: #444; /* for all browsers other than IE8 */<br />
}</p>
<p>IE8 was released a while ago, but I couldn&#8217;t find any mentions of similar IE8 css hack on the web, so I posted it as tutorial hoping it will help other designers.</p>
<p>I&#8217;ve tested this hack with quite a lot of browsers (including many ancient browsers) on my computers and on browsershots, it works perfectly and doesn&#8217;t affect any browsers other than IE8.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=11&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/01/css-dropshadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>
	</item>
		<item>
		<title>Css Hacks</title>
		<link>http://mindbee.wordpress.com/2009/09/01/10/</link>
		<comments>http://mindbee.wordpress.com/2009/09/01/10/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:01:06 +0000</pubDate>
		<dc:creator>mindbee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Css hacks]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://mindbee.wordpress.com/2009/09/01/10/</guid>
		<description><![CDATA[CSS: clean IE8 css hack A new browser, Internet Explorer 8 was released recently. Of course it wasn&#8217;t bug free, no browser is bug free. I ran into a problem that required me to alter css only for IE8, so I searched web for a css hack that works and found few but they all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=10&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong>CSS: clean IE8 css hack</strong></span><br />
A new browser, Internet Explorer 8 was released recently. Of course it wasn&#8217;t bug free, no browser is bug free. I ran into a problem that required me to alter css only for IE8, so I searched web for a css hack that works and found few but they all were very ugly.</p>
<p>While looking at IE8 bugs, I found this little bug (#23): Multiple Type ID selector statement is incorrectly ignored, which means to make style work with all browsers except for IE8, all designer has to do is add selector that IE8 considers invalid.</p>
<p>So here is a clean IE8 hack:</p>
<p>Code:<br />
div.test { color: red; }<br />
div.test, #ie8#fix { color: blue; }</p>
<p>This code will set color to blue in all browsers, except for IE8, in IE8 it will be red.</p>
<p>How it works: IE8 thinks that #ie8#fix is an invalid selector and ignores everything from following { to matching }</p>
<p>Another example. I&#8217;ve highlighted part of code that IE8 sees:</p>
<p>Code:<br />
body {<br />
font-family: Verdana, Helvetica, Arial, sans-serif;<br />
background-color: white;<br />
color: black; /* for IE8 */<br />
}<br />
body, #ie8#fix {<br />
color: #444; /* for all browsers other than IE8 */<br />
}</p>
<p>IE8 was released a while ago, but I couldn&#8217;t find any mentions of similar IE8 css hack on the web, so I posted it as tutorial hoping it will help other designers.</p>
<p>I&#8217;ve tested this hack with quite a lot of browsers (including many ancient browsers) on my computers and on browsershots, it works perfectly and doesn&#8217;t affect any browsers other than IE8.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mindbee.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mindbee.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mindbee.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mindbee.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mindbee.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mindbee.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mindbee.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mindbee.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mindbee.wordpress.com&amp;blog=9250781&amp;post=10&amp;subd=mindbee&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mindbee.wordpress.com/2009/09/01/10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0820c3f4b49c6bbe49c02bfa0289715?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mindbee</media:title>
		</media:content>
	</item>
	</channel>
</rss>
