<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4990620872456899417</id><updated>2011-04-21T18:57:14.561-07:00</updated><title type='text'>Script, Tutorial, Free, CSS, Design</title><subtitle type='html'>Script, Tutorial, Free, CSS, Design</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-5540006448571224335</id><published>2007-04-16T03:17:00.000-07:00</published><updated>2007-04-16T03:22:59.073-07:00</updated><title type='text'>Setting an Initial Cap with Decoration (Imagery)</title><content type='html'>&lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;You want to use an image for an initial cap.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Wrap a &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;span&lt;/span&gt; element around the first letter of the first sentence of the first paragraph:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;lt;p&gt;&amp;lt;span class="initcap"&gt;O&amp;lt;/span&gt;nline, activity of exchanging &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;ideas is sped up. The distribution of messages from the selling of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;propaganda to the giving away of disinformation takes place at a &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;blindingly fast pace thanks to the state of technology...&amp;lt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Set the contents inside the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;span&lt;/span&gt; to be hidden:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p.initcap {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;display: none;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Then set an image to be used as the initial cap in the background of the paragraph.&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;line-height: 1em;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;background-image: url(initcap-o.gif);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;background-repeat: no-repeat;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;text-indent: 35px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;padding-top: 45px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;The first step of this Solution is to create an image for use as the initial cap. Once you have created the image, make a note of its width and height. In this example, the image of the letter measures 55 by 58 pixels&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Next, hide the first letter of the HTML text by setting the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;display&lt;/span&gt; property to &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;none&lt;/span&gt;. Then put the image in the background of the paragraph, making sure that the image doesn't repeat by setting the value of &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;background-repeat&lt;/span&gt; to &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;no-repeat&lt;/span&gt;:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;background-image: url(initcap-o.gif);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;background-repeat: no-repeat;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;With the measurements already known, set the width of the image as the value for &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;text-indent&lt;/span&gt; and the height of the image as the padding for the top of the paragraph &lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;text-indent: 55px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;padding-top: 58px;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Then change the text-indent and padding-top values so that the initial cap appears to rest on the baseline,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Note that users with images turned off aren't able to see the initial cap, especially since the solution doesn't allow for an &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;alt&lt;/span&gt; attribute for the image. If you want to use an image but still have an &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;alt&lt;/span&gt; attribute show when a user turns off images, use an image to replace the HTML character:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;lt;p&gt;&amp;lt;img src="initcap-o.gif" alt="O" &gt;nline, activity of exchanging &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;ideas is sped up. The distribution of messages from the selling &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;of propaganda to the giving away of disinformation takes place at &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;a blindingly fast pace thanks to the state of technology...&amp;lt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Note that while the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;alt&lt;/span&gt; attribute is displayed in this solution, the ability to kern the space between the initial cap and the HTML text is lost. The HTML text begins exactly at the right side of the image and can't be moved closer to the letter being displayed in the graphic itself.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-5540006448571224335?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/5540006448571224335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=5540006448571224335' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/5540006448571224335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/5540006448571224335'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/setting-initial-cap-with-decoration.html' title='Setting an Initial Cap with Decoration (Imagery)'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-5878142304014110936</id><published>2007-04-16T03:15:00.002-07:00</published><updated>2007-04-16T03:17:03.414-07:00</updated><title type='text'>Setting a Larger, Centered Initial Cap</title><content type='html'>&lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;You want to place a large initial cap in the center of a paragraph.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Wrap a &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;span&lt;/span&gt; element with a &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;class&lt;/span&gt; attribute around the first letter of the first sentence of the first paragraph:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;alt;p&gt;&amp;alt;span class="initcap"&gt;O&amp;alt;/span&gt;nline, activity of exchanging ideas is sped &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;up. The distribution of messages from the selling of propaganda &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;to the giving away of disinformation takes place at a blindingly &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;fast pace thanks to the state of technology...&amp;alt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;In conjunction with styling the initial letter through the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;span&lt;/span&gt; tag with a class selector, create the decoration that sets the text indent for the paragraph.&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;text-indent: 37%;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;line-height: 1em;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p .initcap {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;font-size: 6em;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;line-height: 0.6em;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;font-weight: bold;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;This Solution works due to the interaction of three CSS properties. The first is the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;text-indent&lt;/span&gt; property, which moves the first line toward the middle of the paragraph. The value is set to 37%, which is a little bit more than one-third the distance from the left side of the paragraph&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;The next property that helps is the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;font-size&lt;/span&gt; property. Setting the size to 6em makes the font six times (or 600%) larger than the default size set for fonts in the browser&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Because the font size is six times as large as the rest of the type, the leading on the first line is now deeper than it is on the remaining lines. To help adjust that, set the line height for the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;span&lt;/span&gt; element to 0.6em.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Note that this recipe centering the initial cap works, technically, when the character's width is equal to 26% of the paragraph's width. In other words, if the letter for the initial cap or the width of the paragraph is different for your own work, adjustments to the values in the CSS rules are necessary to move the initial cap to the center.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-5878142304014110936?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/5878142304014110936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=5878142304014110936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/5878142304014110936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/5878142304014110936'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/setting-larger-centered-initial-cap.html' title='Setting a Larger, Centered Initial Cap'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-5321475153793556407</id><published>2007-04-16T03:15:00.001-07:00</published><updated>2007-04-16T03:15:36.868-07:00</updated><title type='text'>Setting a Simple Initial Cap</title><content type='html'>&lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;You want a paragraph to begin with an initial cap.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Mark up the paragraph of content with a &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p&lt;/span&gt; element:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;alt;p&gt;Online, activity of exchanging ideas is sped up. The &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;distribution of messages from the sellin of propaganda to the &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;giving away of disinformation takes place at a blindingly fast &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;pace thanks to the state of technology...&amp;alt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Use the pseudo-element &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;:first-letter&lt;/span&gt; to stylize the first letter of the paragraph, &lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p:first-letter {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;font-size: 1.2em;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;background-color: black;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;color: white;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;The CSS specification offers an easy way to stylize the first letter in a paragraph as a traditional initial or drop cap: use the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;:first-letter&lt;/span&gt; pseudo-element (&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;:first-letter&lt;/span&gt; isn't supported in most browsers, including Internet Explorer 4 and 5 for Windows, Netscape Navigator 4, and Internet Explorer 4.5 for Macintosh).&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Wrap a &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;span&lt;/span&gt; element with a &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;class&lt;/span&gt; attribute around the first letter of the first sentence of the first paragraph:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;alt;p&gt;&amp;alt;span class="initcap"&gt;O&amp;alt;/span&gt;nline, activity of exchanging ideas is sped &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;up. The distribution of messages from the selling of propaganda &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;to the giving away of disinformation takes place at a blindingly &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;fast pace thanks to the state of technology...&amp;alt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Then set the style for the initial cap:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;p .initcap {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;font-size: 1.2em;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;background-color: black;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;color: white; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Initial caps, also known as versals, traditionally are enlarged in print to anything from a few points to three lines of text.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-5321475153793556407?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/5321475153793556407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=5321475153793556407' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/5321475153793556407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/5321475153793556407'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/setting-simple-initial-cap.html' title='Setting a Simple Initial Cap'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-2661433333400498077</id><published>2007-04-16T03:07:00.000-07:00</published><updated>2007-04-16T03:14:14.585-07:00</updated><title type='text'>Enforcing Font Sizes</title><content type='html'>&lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;You want to override control over font sizes.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Use the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!important&lt;/span&gt; rule to override a user's style sheet rules:&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;P {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;font-size: 12px !important;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;The &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!important&lt;/span&gt; rule consists of an exclamation mark (!) followed immediately by the word important.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;In some browsers, a user can have a style sheet set up for browsing the Web that enables him to set font sizes (and other CSS properties) to his liking. However, as a designer of a web document, you might want to make sure your designs render in the manner you planned. The &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!important&lt;/span&gt; rule gives you a little insurance that your designs remain intact. (However, the nature of the medium means that designs are never precise or "pixel-perfect" from one display to another.)&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 5pt 0cm;"&gt;Although you as the designer write the &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!important&lt;/span&gt; CSS rules, the user also can write these rules in his own style sheet. And in the CSS 2 specification, &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!important&lt;/span&gt; rules the user writes override any &lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;!important&lt;/span&gt; rules the designer writes.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-2661433333400498077?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/2661433333400498077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=2661433333400498077' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/2661433333400498077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/2661433333400498077'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/enforcing-font-sizes.html' title='Enforcing Font Sizes'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-8424565836704829817</id><published>2007-04-14T10:11:00.003-07:00</published><updated>2007-04-14T10:11:50.353-07:00</updated><title type='text'>width and height Media Queries</title><content type='html'>&lt;p class="docText"&gt;The &lt;tt&gt;width&lt;/tt&gt; and &lt;tt&gt;height&lt;/tt&gt; media features describe  the horizontal and vertical measures for the display a page can be formatted  against. They take standard length units, and can be applied to the  &lt;tt&gt;visual&lt;/tt&gt; and &lt;tt&gt;tactile&lt;/tt&gt; media types. They can also accept  &lt;tt&gt;min-&lt;/tt&gt; and &lt;tt&gt;max-&lt;/tt&gt; prefixes. These properties are designed to  specify the viewport of a device (a browser window, for example).&lt;/p&gt; &lt;p class="docText"&gt;The following code snippet sets the width range for a screen  device:&lt;/p&gt;&lt;pre&gt;@media screen and (min-width: 600px) and (max-width: 800px)&lt;br /&gt;{@import url(http://www.corecss.com/dummyexample/)}&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;Note that the &lt;tt&gt;height&lt;/tt&gt; property of the rendering display  surface for continuous media is the height of the viewport (the browser window),  whereas for static media, like &lt;tt&gt;print&lt;/tt&gt;, it would be the height of the  page. The following code snippet provides an example of this:&lt;/p&gt;&lt;pre&gt;@media print and (min-height: 8.5in) and (max-height: 11in)&lt;br /&gt;{@import url(http://www.corecss.com/dummyexample/)}&lt;br /&gt;&lt;/pre&gt;&lt;a href="0130092789_14961534.html"&gt;&lt;img src="FILES/pixel.gif" border="0" height="1" width="1" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-8424565836704829817?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/8424565836704829817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=8424565836704829817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8424565836704829817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8424565836704829817'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/width-and-height-media-queries.html' title='width and height Media Queries'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-8812209449928281191</id><published>2007-04-14T10:11:00.001-07:00</published><updated>2007-04-14T10:11:32.687-07:00</updated><title type='text'>Media Queries</title><content type='html'>&lt;p class="docText"&gt;The latest draft CSS3 ushers in the idea of "media queries,"  which extends the idea of media types (such as "&lt;tt&gt;tv&lt;/tt&gt;" and  "&lt;tt&gt;print&lt;/tt&gt;") so that the display properties of a Web page can be more  precisely customized for these devices by the Web author. The idea is to better  tailor the display of Web pages without having to change anything in terms of  content. It also allows room for expansion to media types other than those  already mapped out under the CSS2 specification.&lt;/p&gt; &lt;p class="docText"&gt;Since this has not been finalized, what follows should be  considered a "heads up" of what we may soon expect from browsers of the future —  there is no guarantee that this is exactly how they will be implemented.&lt;/p&gt; &lt;p class="docText"&gt;Media queries are expressions that are either true or false;  either they are correctly laid out and match an existing setting, or they are  rejected by the browser and not used.&lt;/p&gt; &lt;p class="docText"&gt;Media "query" may not in fact be the best name for this  function, as it does not actively seek out a setting and then programmatically  return a result that can then be further manipulated. Instead, they are passive  settings contained within the header of a Web page or embedded in a separate  style sheet. But they will change the display of content given the right values  for a given media query. In practice, it is a way of cascading display  parameters — if a match is found, it is used, otherwise the next available  setting is used instead. If no match is found, a default setting is used. Think  of media queries as being akin to a font property with various specific and  generic font types listed and you'll get the idea.&lt;/p&gt; &lt;p class="docText"&gt;Media queries can either be written in HTML, using the link  element, or written in CSS, using the &lt;tt&gt;@media&lt;/tt&gt; rule. When taking the HTML  path, you use the media attribute to set the media query, which is then linked  to an external page containing specific information on formatting for a given  display device. When setting things using &lt;tt&gt;@media&lt;/tt&gt;, you name the media  types in sequential order, and then link to the defining external formatting  style sheet. Both types can also use operational expressions such as  "&lt;tt&gt;only&lt;/tt&gt;", "&lt;tt&gt;and&lt;/tt&gt;" and "&lt;tt&gt;not&lt;/tt&gt;".&lt;/p&gt; &lt;p class="docText"&gt;Whether written in HTML or CSS, the rule format is the  same:&lt;/p&gt;&lt;pre&gt;media query + media type(s) + media feature + URL&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-8812209449928281191?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/8812209449928281191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=8812209449928281191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8812209449928281191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8812209449928281191'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/media-queries.html' title='Media Queries'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-4637881434489262042</id><published>2007-04-14T10:10:00.000-07:00</published><updated>2007-04-14T10:11:00.845-07:00</updated><title type='text'>font-family Property</title><content type='html'>&lt;p class="docText"&gt;&lt;tt&gt;font-family&lt;/tt&gt; determines how a font should be displayed.  Instead of naming a specific font, as the &lt;tt&gt;&lt;span&gt;&lt;/tt&gt; tag does, the  &lt;tt&gt;font-family&lt;/tt&gt; CSS property instead sets the display characteristics of  that font.&lt;/p&gt; &lt;p class="docText"&gt;It can take any of the following values: &lt;tt&gt;cursive&lt;/tt&gt;,  &lt;tt&gt;fantasy&lt;/tt&gt;, &lt;tt&gt;monospace&lt;/tt&gt;, &lt;tt&gt;sans-serif&lt;/tt&gt; and &lt;tt&gt;serif&lt;/tt&gt;.  One of the drawbacks of the &lt;tt&gt;&lt;span&gt;&lt;/tt&gt; tag is that you had to specify  a particular font name (such as "&lt;tt&gt;Arial&lt;/tt&gt;", "&lt;tt&gt;Times Roman&lt;/tt&gt;" or  "&lt;tt&gt;Courier&lt;/tt&gt;") in order to try and get it to appear on screen. The  &lt;tt&gt;font-family&lt;/tt&gt; CSS property tries to get around this by specifying the  type or "family" of font to be displayed. Given a particular value, the browser  does its best to come up with a match, so if you specify &lt;tt&gt;monospace&lt;/tt&gt; you  may get a Courier font to appear on screen, whereas if you specify  &lt;tt&gt;serif&lt;/tt&gt;, you may get a Times Roman font instead. This CSS property is  still dependent on the user's computer to come up with a matching font family,  but the font family categories encompass a broad spectrum of fonts that could  only be accomplished with a &lt;tt&gt;&lt;span&gt;&lt;/tt&gt; tag containing multiple values  attached to the &lt;tt&gt;face&lt;/tt&gt; attribute.&lt;/p&gt; &lt;p class="docText"&gt;In other words, you could choose to include the following HTML  code in order to get a serif font displayed on a user's screen:&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Garamond, AGaramond, Times, Times Roman, CG Times, Home,&lt;br /&gt;Goudy;"&gt;&lt;b&gt;This sentence is displayed in a serif font&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;Or you could use the following, more concise CSS code  instead:&lt;/p&gt;&lt;pre&gt;&lt;b style="font-family: serif"&gt;This sentence is displayed in a serif&lt;br /&gt;font&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-4637881434489262042?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/4637881434489262042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=4637881434489262042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4637881434489262042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4637881434489262042'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/font-family-property.html' title='font-family Property'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-8895926335515957076</id><published>2007-04-14T09:34:00.001-07:00</published><updated>2007-04-14T09:34:41.449-07:00</updated><title type='text'>outline Sub-Family of Properties</title><content type='html'>&lt;p class="docText"&gt;Under CSS2, it became possible for Web authors to create visual  outlines around objects on a Web page, such as buttons, active form fields,  imagemaps and other objects, in order to make them stand out to viewers. The  sub-family of &lt;tt&gt;outline&lt;/tt&gt; properties is designed to add a border to these  types of objects. These outlines do not take up any space on the page (in other  words, they do not expand the box within which the element is contained), and  they can be non-rectangular in shape (which is typical of most imagemaps). This  is simply an extension of what is already present in most operating systems, in  signaling to the viewer what is known as "focus" (i.e., that a particular  element is currently selected). For example, if you are presented with a  Web-based form while using a typical MS-Windows computer, you will notice that a  cursor will typically appear in the field in which you can currently type, and  if you hit the TAB button on your keyboard a few times, you will notice that the  cursor jumps to the next field down. If you keep doing this and a button,  checkbox or radio button is selected, you will discover that the selected object  is usually surrounded by a thin border. This is exactly the type of border that  can be explicitly set using the set of &lt;tt&gt;outline&lt;/tt&gt; properties.&lt;/p&gt; &lt;p class="docText"&gt;The sub-family consists of four different properties:  &lt;tt&gt;outline-width&lt;/tt&gt;, &lt;tt&gt;outline-style&lt;/tt&gt;, &lt;tt&gt;outline-color&lt;/tt&gt; and the  shortcut property &lt;tt&gt;outline&lt;/tt&gt;. These properties are meant to be set  globally across a Web page, not to a specific element, so these properties  should be set within the header of a Web page.&lt;/p&gt;&lt;a href="0130092789_14961534.html"&gt;&lt;img src="FILES/pixel.gif" border="0" height="1" width="1" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-8895926335515957076?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/8895926335515957076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=8895926335515957076' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8895926335515957076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8895926335515957076'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/outline-sub-family-of-properties.html' title='outline Sub-Family of Properties'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-4094884980656562350</id><published>2007-04-14T09:31:00.000-07:00</published><updated>2007-04-14T09:33:57.879-07:00</updated><title type='text'>cursor Property</title><content type='html'>&lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size:10;"&gt;cursor&lt;/span&gt;&lt;/tt&gt; property is used to define the type of cursor to be displayed over a given Web element. The purpose of this property is to draw the attention of the user to the element. It can be applied to any element on a Web page: text, images or any other objects.&lt;a name="idd1e45767"&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;There are plenty of values available for the cursor property, enabling Web authors to choose from just about the whole range of cursor types available. There are several cursor values designed to produce very specific cursor types. For example, the &lt;tt&gt;&lt;span style="font-size:10;"&gt;crosshair&lt;/span&gt;&lt;/tt&gt; value is designed to display a symbol that resembles a "+". The &lt;tt&gt;&lt;span style="font-size:10;"&gt;pointer&lt;/span&gt;&lt;/tt&gt; value shows a typical "pointing" cursor, which is typically a small, upper-left pointing arrow.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;Then there are a number of cursors normally used to indicate that an edge or corner can be moved. These cursor values are &lt;tt&gt;&lt;span style="font-size:10;"&gt;e-resize&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;ne-resize&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;nw-resize&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;n-resize&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;se-resize&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;sw-resize&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;s-resize&lt;/span&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;span style="font-size:10;"&gt;w-resize&lt;/span&gt;&lt;/tt&gt;. The letter at the beginning of each of these values designates the cardinal direction of the type of edge or corner cursor to be displayed ("e" for east, "nw" for northwest and so on).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;Several cursor values are more dependent on the type of operating system being used. The &lt;tt&gt;&lt;span style="font-size:10;"&gt;move&lt;/span&gt;&lt;/tt&gt; value should display the type of cursor indicating a Web element can be moved (regardless of whether it can be or not). This type of cursor is commonly displayed as a thick double line, which can be either vertically or horizontally aligned. The &lt;tt&gt;&lt;span style="font-size:10;"&gt;text&lt;/span&gt;&lt;/tt&gt; value should display the type of cursor that indicates text can be selected. This type of cursor is most typically rendered as an I-bar. The &lt;tt&gt;&lt;span style="font-size:10;"&gt;wait&lt;/span&gt;&lt;/tt&gt; value should display the type of cursor commonly associated with a computer's "busy-mode" cursor, indicating that the user should be patient while the operation the computer is working on is completed. A good example of this is the standard hourglass cursor. The &lt;tt&gt;&lt;span style="font-size:10;"&gt;help&lt;/span&gt;&lt;/tt&gt; value should display the type of cursor associated with online help, most typically rendered as either a question mark with pointer or in a separate balloon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;If the &lt;tt&gt;&lt;span style="font-size:10;"&gt;auto&lt;/span&gt;&lt;/tt&gt; value is used, the browser displays whatever type of cursor would normally be associated with the Web element. Similar to this is the &lt;tt&gt;&lt;span style="font-size:10;"&gt;default&lt;/span&gt;&lt;/tt&gt; value, which displays the default "pointing" cursor for the browser (most often some form of arrow).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;A URL value can also be used with &lt;tt&gt;&lt;span style="font-size:10;"&gt;cursor&lt;/span&gt;&lt;/tt&gt;, which must point to some sort of cursor resource (presumably a bitmap image of the cursor), which is then loaded by the browser and displayed. The URL value can be cascaded, so that if the first cursor image can't be found, a back-up cursor can be. You can see an example of this in the following code snippet:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;&amp;lt;h1 style="cursor: url(funkyhand.csr),url(otherhand.cur),&lt;br /&gt;text"&gt;&lt;br /&gt;try&lt;br /&gt;scrolling over this header and see what happens!&amp;lt;/h1&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class="doctext"&gt;It is worth noting that Internet Explorer 6.0 supports this property, but requires that any cursor images be either in a &lt;tt&gt;&lt;span style="font-size:10;"&gt;.cur&lt;/span&gt;&lt;/tt&gt; or &lt;tt&gt;&lt;span style="font-size:10;"&gt;.ani&lt;/span&gt;&lt;/tt&gt; (animated cursor) file types.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;Finally, there is the &lt;tt&gt;&lt;span style="font-size:10;"&gt;inherit&lt;/span&gt;&lt;/tt&gt; value, which simply takes on whatever parent value may have already been set for &lt;tt&gt;&lt;span style="font-size:10;"&gt;cursor&lt;/span&gt;&lt;/tt&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;This may all seem pretty straightforward, but both Microsoft and Netscape added a number of new cursor values in version 6.0 of their respective browsers. Internet Explorer 6.0 supports these additional cursor styles:&lt;a name="idd1e45862"&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;all-scroll&lt;/span&gt;&lt;/tt&gt; (produces a up/down/left/right arrow with a dot in the middle, used to indicate the content is scrollable in any direction)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;col-resize&lt;/span&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;span style="font-size:10;"&gt;row-resize&lt;/span&gt;&lt;/tt&gt; (used to indicate that a column or row can be resized, respectively)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;no-drop&lt;/span&gt;&lt;/tt&gt; (used to indicate that a dragged object cannot be dropped at the current cursor position)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;not-allowed&lt;/span&gt;&lt;/tt&gt; (indicates that the intended action is not allowed)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;progress&lt;/span&gt;&lt;/tt&gt; (shows that a background process is running)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;vertical-text&lt;/span&gt;&lt;/tt&gt; (indicates that the vertical text is editable)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;hand&lt;/span&gt;&lt;/tt&gt; (displays a hand icon; first implemented in version 4).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;Netscape Navigator 6.0 also supports a number of custom cursor types, and these are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;alias&lt;/span&gt;&lt;/tt&gt; (shows that a shortcut or alias to some other object is available)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;cell&lt;/span&gt;&lt;/tt&gt; (indicates that one or more spreadsheet cells are available)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;copy&lt;/span&gt;&lt;/tt&gt; (specifies that the content can be copied)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;grab&lt;/span&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;span style="font-size:10;"&gt;grabbing&lt;/span&gt;&lt;/tt&gt; (the first shows that an object can be "grabbed," and the second shows that it has been "grabbed" and is ready to be moved)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doclist" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Symbol;font-size:10;"  &gt;&lt;span style=""&gt;·&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;tt&gt;&lt;span style="font-size:10;"&gt;spinning&lt;/span&gt;&lt;/tt&gt; (used to indicate that a process is going on, but, unlike with "&lt;tt&gt;&lt;span style="font-size:10;"&gt;wait&lt;/span&gt;&lt;/tt&gt;", the user interface is still available for use)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;Netscape Navigator 6.0 is also supposed to support three other custom cursors — &lt;tt&gt;&lt;span style="font-size:10;"&gt;count-down&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size:10;"&gt;count-up&lt;/span&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;span style="font-size:10;"&gt;count-up-down&lt;/span&gt;&lt;/tt&gt;, indicating that the program is counting down, up, or both in succession, respectively — but they do not appear to work, or have perhaps been discarded in subsequent releases of the browser. It is notable also that the Mozilla browser supports all of the Netscape Navigator-style cursor types — though none of the Internet Explorer types — as well.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-4094884980656562350?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/4094884980656562350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=4094884980656562350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4094884980656562350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4094884980656562350'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/cursor-property.html' title='cursor Property'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-1452668548603055463</id><published>2007-04-14T09:30:00.001-07:00</published><updated>2007-04-14T09:30:58.422-07:00</updated><title type='text'>column-gap Property</title><content type='html'>&lt;p class="docText"&gt;In order to set some spacing between columns, use the  &lt;tt&gt;column-gap&lt;/tt&gt; property. This takes the same values as  &lt;tt&gt;column-width&lt;/tt&gt; (i.e., a standard length value, a percentage value,  &lt;tt&gt;auto&lt;/tt&gt; and &lt;tt&gt;inherit&lt;/tt&gt;) as well as one more: &lt;tt&gt;normal&lt;/tt&gt;. This  last property is the default, and the specification recommends that it be set to  a value of 1 em in width, though individual browsers may differ in how they  render this. When the &lt;tt&gt;auto&lt;/tt&gt; value is used, it tells the browser to make  the gaps between the columns equal to each other.&lt;/p&gt; &lt;p class="docText"&gt;If column rules are used, they are placed in the middle of the  column gaps. It is worth noting that the width value set to any column rules  does not affect the width of any column gaps that are set. The following code  snippet adds a 15-pixel-wide column gap to a &lt;tt&gt;div&lt;/tt&gt; element:&lt;/p&gt;&lt;pre&gt;div.columns {column-count: 3; column-width: 150px 35% auto;&lt;br /&gt;column-gap: 15px}&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;The only other thing worth noting is that &lt;tt&gt;column-gap&lt;/tt&gt;  values are not allowed to be negative, as this would allow for a situation where  the content from one column could overlap that of an adjacent column.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-1452668548603055463?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/1452668548603055463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=1452668548603055463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/1452668548603055463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/1452668548603055463'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/column-gap-property.html' title='column-gap Property'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-6513791081003676240</id><published>2007-04-14T09:15:00.001-07:00</published><updated>2007-04-14T09:15:32.789-07:00</updated><title type='text'>column-width Property</title><content type='html'>&lt;p class="docText"&gt;This property allows you to set a specific width for the  columns that are displayed. It can take a standard length value, a percentage  value, &lt;tt&gt;auto&lt;/tt&gt; and &lt;tt&gt;inherit&lt;/tt&gt;. The default behavior for this  property is that if a single value is supplied, it is applied equally across all  displayed columns. So if you set a specific length or percentage value, it is  applied equally across all of the displayed columns. The &lt;tt&gt;auto&lt;/tt&gt; value  apportions the same amount of available space to the number of columns that have  been set by the &lt;tt&gt;column-count&lt;/tt&gt; property. If you want to set a width value  for successive columns, you can also do that by setting successive values to  this property in order. The following code snippet shows how you could use this  property to set three columns, the first of which is set to 150 pixels in width,  the second being 35% of the browser window, and third filling the rest of the  available space.&lt;/p&gt;&lt;pre&gt;div.columns {column-count: 3; column-width: 150px 35% auto}&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;It is easy to go wrong with this sort of property by setting  larger widths than are possible to be displayed — like setting more than two 50%  width values. In cases like these it is possible that content could be "lost" in  the process. In these cases it is recommended that &lt;tt&gt;overflow: visible&lt;/tt&gt; be  used in order to ensure that any content that might overflow the columnar layout  might be displayed by default.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-6513791081003676240?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/6513791081003676240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=6513791081003676240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/6513791081003676240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/6513791081003676240'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/column-width-property.html' title='column-width Property'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-819876933799448098</id><published>2007-04-14T09:14:00.000-07:00</published><updated>2007-04-14T09:15:16.427-07:00</updated><title type='text'>column-count Property</title><content type='html'>&lt;p class="docText"&gt;The first thing you have to do to be able to arrange a column  layout is to set the number of columns to display. This is handled using the  &lt;tt&gt;column-count&lt;/tt&gt; property. This property takes one of three values: a  numeric value, &lt;tt&gt;auto&lt;/tt&gt; and &lt;tt&gt;inherit&lt;/tt&gt;. The numeric value allows you  to set a specific number of columns to be displayed. The &lt;tt&gt;auto&lt;/tt&gt; value  leaves the browser to determine how many columns are to be displayed, and is  used in conjunction with the values present for the &lt;tt&gt;column-width&lt;/tt&gt; and  &lt;tt&gt;column-gap&lt;/tt&gt; properties. The &lt;tt&gt;inherit&lt;/tt&gt; value takes on whatever  parent value for &lt;tt&gt;column-count&lt;/tt&gt; may already be present. Not surprisingly,  the default value for &lt;tt&gt;column-count&lt;/tt&gt; is 1, which equates the width of the  browser window to a column.&lt;/p&gt; &lt;p class="docText"&gt;The following code fragment shows how you could set three  columns to a &lt;tt&gt;div&lt;/tt&gt; element:&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-819876933799448098?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/819876933799448098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=819876933799448098' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/819876933799448098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/819876933799448098'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/column-count-property.html' title='column-count Property'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-2932266268849447783</id><published>2007-04-14T09:13:00.000-07:00</published><updated>2007-04-14T09:14:16.143-07:00</updated><title type='text'>Visual Filters in Internet Explorer</title><content type='html'>&lt;p class="docText"&gt;Beginning with Internet Explorer 4, Microsoft began adding a  number of programmable visual filter and transition effects to their browser. In  fact these new extensions were to be the first CSS-based extension that  Microsoft added to their browser. Depending on the filter, their effects can  either be modified programmatically via JavaScript, or can be added using CSS  elements on a given Web object.&lt;/p&gt; &lt;p class="docText"&gt;In practice, filters and transitions have seen relatively  little use on the Web, as their display properties are exclusive to Internet  Explorer, and their effects can be dramatic enough that a page must be viewed  using Internet Explorer in order for its content to be readable — in other  words, they don't make for browser-compatible code. Having said that, if you are  confident that your audience is composed largely of Internet Explorer users —  say, on a corporate intranet — or are willing to customize your code on a  browser-by-browser basis, you can use these filters and transitions to good  effect.&lt;/p&gt; &lt;p class="docText"&gt;Visual filters and transitions differ from regular CSS  properties in that they require the full program code prior to the name of the  filter, so the code specified for the &lt;tt&gt;Alpha&lt;/tt&gt; filter actually looks  something like this code snippet:&lt;/p&gt;&lt;pre&gt;filter: progid:DXImageTransform.Microsoft.Alpha&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;A given filter's values are further modified by enclosing its  values in parentheses, separated by commas, as you can see from the following  code snippet:&lt;/p&gt;&lt;pre&gt;(Opacity=100,FinishOpacity=0, Style=1, StartX=0, FinishX=0,&lt;br /&gt;StartY=0, FinishY=100)&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;At this point you may well be thinking that this is really  beginning to stretch the boundaries of CSS, and frankly, you'd be right. In some  cases the properties rely upon JavaScript to make them work, so they don't fit  the mold of your typical static CSS property used to make some text look nice on  a Web page.&lt;/p&gt; &lt;p class="docText"&gt;Internet Explorer 4.x introduced over a dozen visual filters.  All of these original filters were superceded or expanded upon by the release of  Internet Explorer 5.5, when Microsoft took the opportunity to rationalize and  greatly expand the filtering and transition capabilities within the browser,  deprecating several of these earlier filter types in the process.&lt;/p&gt; &lt;p class="docText"&gt;There are two classes of filters: static filters and  transitional filters. The static filters are not always so static, as you will  see from some of the examples in this chapter, but their often dynamic effects  are rendered on a single selected object. The transition filters are all  designed to produce interesting "wipes," slowly revealing new content over the  old. This chapter provides an overview of what's available.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-2932266268849447783?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/2932266268849447783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=2932266268849447783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/2932266268849447783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/2932266268849447783'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/visual-filters-in-internet-explorer_14.html' title='Visual Filters in Internet Explorer'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-2249305297612722966</id><published>2007-04-14T09:04:00.000-07:00</published><updated>2007-04-14T09:13:42.975-07:00</updated><title type='text'>Visual Filters in Internet Explorer</title><content type='html'>&lt;p class="docText"&gt;Beginning with Internet Explorer 4, Microsoft began adding a  number of programmable visual filter and transition effects to their browser. In  fact these new extensions were to be the first CSS-based extension that  Microsoft added to their browser. Depending on the filter, their effects can  either be modified programmatically via JavaScript, or can be added using CSS  elements on a given Web object.&lt;/p&gt; &lt;p class="docText"&gt;In practice, filters and transitions have seen relatively  little use on the Web, as their display properties are exclusive to Internet  Explorer, and their effects can be dramatic enough that a page must be viewed  using Internet Explorer in order for its content to be readable — in other  words, they don't make for browser-compatible code. Having said that, if you are  confident that your audience is composed largely of Internet Explorer users —  say, on a corporate intranet — or are willing to customize your code on a  browser-by-browser basis, you can use these filters and transitions to good  effect.&lt;/p&gt; &lt;p class="docText"&gt;Visual filters and transitions differ from regular CSS  properties in that they require the full program code prior to the name of the  filter, so the code specified for the &lt;tt&gt;Alpha&lt;/tt&gt; filter actually looks  something like this code snippet:&lt;/p&gt;&lt;pre&gt;filter: progid:DXImageTransform.Microsoft.Alpha&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;A given filter's values are further modified by enclosing its  values in parentheses, separated by commas, as you can see from the following  code snippet:&lt;/p&gt;&lt;pre&gt;(Opacity=100,FinishOpacity=0, Style=1, StartX=0, FinishX=0,&lt;br /&gt;StartY=0, FinishY=100)&lt;br /&gt;&lt;/pre&gt; &lt;p class="docText"&gt;At this point you may well be thinking that this is really  beginning to stretch the boundaries of CSS, and frankly, you'd be right. In some  cases the properties rely upon JavaScript to make them work, so they don't fit  the mold of your typical static CSS property used to make some text look nice on  a Web page.&lt;/p&gt; &lt;p class="docText"&gt;Internet Explorer 4.x introduced over a dozen visual filters.  All of these original filters were superceded or expanded upon by the release of  Internet Explorer 5.5, when Microsoft took the opportunity to rationalize and  greatly expand the filtering and transition capabilities within the browser,  deprecating several of these earlier filter types in the process.&lt;/p&gt; &lt;p class="docText"&gt;There are two classes of filters: static filters and  transitional filters. The static filters are not always so static, as you will  see from some of the examples in this chapter, but their often dynamic effects  are rendered on a single selected object. The transition filters are all  designed to produce interesting "wipes," slowly revealing new content over the  old. This chapter provides an overview of what's available.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-2249305297612722966?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/2249305297612722966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=2249305297612722966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/2249305297612722966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/2249305297612722966'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/visual-filters-in-internet-explorer.html' title='Visual Filters in Internet Explorer'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-1988118121512792424</id><published>2007-04-14T09:03:00.001-07:00</published><updated>2007-04-14T09:04:18.112-07:00</updated><title type='text'>Internet Explorer 4.x</title><content type='html'>&lt;p class="docText"&gt;Microsoft greatly extended CSS compatibility within the initial  4.x version of Internet Explorer. This version of Internet Explorer was the  first to show that a major browser vendor was serious about implementing  CSS.&lt;/p&gt; &lt;p class="docText"&gt;This version of Internet Explorer was not without its  drawbacks, however. While it supported much of the &lt;tt&gt;background&lt;/tt&gt;,  &lt;tt&gt;border&lt;/tt&gt;, &lt;tt&gt;font&lt;/tt&gt;, &lt;tt&gt;margin&lt;/tt&gt;, &lt;tt&gt;list&lt;/tt&gt; and  &lt;tt&gt;padding&lt;/tt&gt; CSS element families at least partially, it could not support a  number of other elements, such as &lt;tt&gt;display&lt;/tt&gt; or  &lt;tt&gt;clear&lt;/tt&gt;/&lt;tt&gt;float&lt;/tt&gt; in the Macintosh version at all. There were also  some minor variances worth noting in the ways the browser implemented the same  CSS elements across different operating systems. Problems implementing the  &lt;tt&gt;text-align&lt;/tt&gt; property have been noted, as have more general problems when  implementing some basic CSS functions, such as containment, inheritance and  dealing with certain length units.&lt;/p&gt; &lt;p class="docText"&gt;This version of Internet Explorer has subsequently been  superceded by versions 5.x and 6.x, and the vast majority of Internet Explorer  users now use one of these later releases. However, it is worthwhile keeping its  limitations in mind for those few users who may still be using it.&lt;/p&gt; &lt;p class="docText"&gt;Microsoft's tendency to start adding their own browser-specific  CSS properties began with this release of Internet Explorer. The &lt;tt&gt;filter&lt;/tt&gt;  property was added to this version, enabling Web authors to add a number of  transitioning effects .  Compared to later versions of the browser, this was a relatively minor addition,  but arguably started a trend towards adding fresh browser-specific properties in  future versions of Internet Explorer.&lt;/p&gt; &lt;p class="docText"&gt;Another interesting development with this version of the  browser was that it implemented — at least partially — some positioning  properties (like &lt;tt&gt;top&lt;/tt&gt;, &lt;tt&gt;left&lt;/tt&gt; and &lt;tt&gt;vertical-align&lt;/tt&gt;) which  were being considered at the time for inclusion for the CSS2 specification,  which was in a draft status at the time. Microsoft was truly looking forward  with this development, though it would take version 5.5 before CSS2 properties  were substantially supported.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-1988118121512792424?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/1988118121512792424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=1988118121512792424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/1988118121512792424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/1988118121512792424'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/internet-explorer-4x.html' title='Internet Explorer 4.x'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-1861826085920917618</id><published>2007-04-14T09:02:00.000-07:00</published><updated>2007-04-14T09:03:31.938-07:00</updated><title type='text'>Internet Explorer 3.x</title><content type='html'>&lt;p class="docText"&gt;Internet Explorer 3.x was the first major browser to implement  CSS, although only in a rudimentary fashion. It did not implement many CSS  properties, and those that were implemented were rarely implemented fully. Very  few people use Internet Explorer 3.x today, so it is probably not worthwhile to  try and design pages that would look good in it. This is just as well, since  designing Web pages that use the few CSS properties implemented in Internet  Explorer 3.x is pretty much an exercise in frustration, anyway. In short, don't  plan on designing a CSS-oriented Web site that has to be "safe" for whatever  Internet Explorer 3.x users are still out there.&lt;/p&gt; &lt;p class="docText"&gt;For this reason, in the summary listing of "safe" and "unsafe"  elements provided at the end of this book, Internet Explorer 3.x is not  included, as it would render too many CSS elements as "unsafe."&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-1861826085920917618?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/1861826085920917618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=1861826085920917618' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/1861826085920917618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/1861826085920917618'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/internet-explorer-3x.html' title='Internet Explorer 3.x'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-8157491355214092635</id><published>2007-04-14T08:57:00.000-07:00</published><updated>2007-04-14T09:02:27.427-07:00</updated><title type='text'>The &lt;style&gt; Element</title><content type='html'>As we saw in the initial CSS example, it is possible to add CSS code within the header of a Web page. This is done by using the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element, which is used to set CSS properties to a Web element that is applied to the whole of a Web document.&lt;o:p&gt;&lt;/o:p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element is always contained within the header of a Web page, and unless overridden elsewhere in the Web page, its effects are applied globally to the selected HTML elements contained within it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element has several attributes: &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;accesskey&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;dir&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;disabled&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;lang&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;language&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;media&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;tabindex&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;title&lt;/span&gt;&lt;/tt&gt;, and &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;type&lt;/span&gt;&lt;/tt&gt;, all of which are optional — and frankly, only a few of which are used routinely in practice. It is important to know the values of the attributes in those cases where it may be useful, however.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;accesskey&lt;/span&gt;&lt;/tt&gt; attribute enables Web authors to assign a keyboard key to the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element. This keyboard "shortcut" enables the user to hit ALT plus the designated key which then selects the element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;dir&lt;/span&gt;&lt;/tt&gt; attribute is a standard HTML attribute that sets the text direction, and can take the values &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;ltr&lt;/span&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;rtl&lt;/span&gt;&lt;/tt&gt; (for "left-to-right" and "right-to-left," respectively). This does not necessarily switch the direction for displayed text, but instead is there to tell the browser which way it is meant to be read.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;disabled&lt;/span&gt;&lt;/tt&gt; attribute — which is an unofficial attribute for &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; and is only supported within Internet Explorer version 4.0 and higher — indicates that the particular CSS function should not be "enabled" (in other words, that its effects should not be displayed). This is for use in circumstances where you may wish to disable the CSS formatting display in a particular place on the Web page. If you use this particular attribute, the content associated with the selected element is still displayed, but is not formatted in the CSS style indicated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;lang&lt;/span&gt;&lt;/tt&gt; is another standard HTML attribute, and is used to set the language code (i.e., "&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;english&lt;/span&gt;&lt;/tt&gt;" or "&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;french&lt;/span&gt;&lt;/tt&gt;"). Internet Explorer 4.0 and up add an additional &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;language&lt;/span&gt;&lt;/tt&gt; attribute, which associates the element with a scripting language (like JavaScript or VBScript).&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;media&lt;/span&gt;&lt;/tt&gt; attribute is used to specify the type of medium for which the CSS formatting is to be used. There are nine distinct values: &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;all&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;aural&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;braille&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;handheld&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;print&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;projection&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;screen&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;tv&lt;/span&gt;&lt;/tt&gt; and &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;tty&lt;/span&gt;&lt;/tt&gt;, each reflecting the different types of media the Web page can be "viewed" in. The default value is &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;screen&lt;/span&gt;&lt;/tt&gt; (i.e., a computer screen). If a device exists to translate the Web page into a different medium (such as a digital video projector for the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;projection&lt;/span&gt;&lt;/tt&gt; value, or a Palm device for the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;handheld&lt;/span&gt;&lt;/tt&gt; value), the device will use the CSS elements associated with the particular style used for it. Actual support for most of these attributes has always been spotty, and on the whole you are probably better off trying to tailor your code for specific devices if you expect heavy use in these other media displays. (Also, as we will see, there are a number of media types called by the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;@media&lt;/span&gt;&lt;/tt&gt; "at-rule" which accomplishes much the same thing, and is much more flexible. &lt;/p&gt;  &lt;p class="doctext"&gt;&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;tabindex&lt;/span&gt;&lt;/tt&gt; is another accessibility attribute (like &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;accesskey&lt;/span&gt;&lt;/tt&gt;), and in this case it sets the tab order for the element. This relates to the order in which selectable elements on a page can be accessed when you hit the tab key repeatedly. Normally, when you do this, elements are selected in order from the top of the page to the bottom. But when you set an integer value to &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;tabindex&lt;/span&gt;&lt;/tt&gt;, you can interrupt this flow and make the element it is associated with either a priority tab-able item or not.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;type&lt;/span&gt;&lt;/tt&gt; attribute simply specifies the MIME type contained by the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element. There are two possible values for this at the moment: "&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;text/css&lt;/span&gt;&lt;/tt&gt;", which applies to CSS, and "&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;text/javascript&lt;/span&gt;&lt;/tt&gt;", which applies to JavaScript code. For the most part, the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;text/css&lt;/span&gt;&lt;/tt&gt; value is simply assumed, and the two major browsers do not have any problems interpreting CSS code when this value is not present. This attribute is widely recognized in all major browsers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;There used to be a common recommendation to surround the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;style&lt;/span&gt;&lt;/tt&gt; element with comment elements (i.e., "&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;!--&lt;/span&gt;&lt;/tt&gt;" and "&lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;--&gt;&lt;/span&gt;&lt;/tt&gt;") in case older browsers which do not recognize the element display the content contained within them. This concern is pretty much a thing of the past these days, and if you are truly concerned about your CSS code being displayed in an older browser, it's old enough so that you wouldn't seriously be coding CSS for it anyway.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;h4&gt;&lt;a name="ch02lev2sec1"&gt;&lt;/a&gt;&amp;lt;style&gt; and CSS3&lt;o:p&gt;&lt;/o:p&gt;&lt;/h4&gt;  &lt;p class="doctext"&gt;The CSS3 specification has introduced some interesting variations for the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element. These variations greatly extend the uses to which this element can be used for adding CSS code to a page. When adopted by browser manufacturers, they will enable Web authors to add code directly to the style attribute that otherwise would have had to have been added to the header of a Web page — greatly increasing coding flexibility. Say, for example, you are working with a standard template file for a Web site that contains the HTML header, and you either don't have ready access to changing it, or don't want to add code to the header of a page when you only intend to implement a single formatting instance limited to a single page. This would be a situation where the CSS3 extensions to the &lt;tt&gt;&lt;span style="font-size: 10pt;"&gt;&amp;lt;style&gt;&lt;/span&gt;&lt;/tt&gt; element would help you out of a potential jam.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The first variant allows Web authors to add pseudo-elements to a particular Web element. Curly braces are wrapped around the "standard" CSS properties for a given element, and then the pseudo-element code is added, and the CSS properties associated with the pseudo-element are similarly wrapped in curly braces. The following code snippet makes this clear:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;p style="{background-color: black; color: white} &lt;/pre&gt;&lt;pre&gt;::first-letter &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;{color: red}"&gt;Some sample text&amp;lt;/p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class="doctext"&gt;(Note that in CSS3 double colons are recommended over single colons for pseudo-elements, hence "::first-letter" instead of ":first-letter"). Pseudo-elements are covered in detail in &lt;a href="mk:@MSITStore:C:%5CDOCUME%7E1%5CADMINI%7E1.PPT%5CLOCALS%7E1%5CTemp%5CRar$DI00.734%5C0130092789.chm::/0130092789_ch07.html#ch07"&gt;Chapter 7&lt;/a&gt;, "Pseudo-Elements, Pseudo-Classes and Selectors."&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="doctext"&gt;The second variation allows you to set the display properties on a link — something that hitherto would have had to have been set either in the header of a page or in an external style sheet. Like the first variant, the CSS properties are wrapped in curly braces, as the following line of code shows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Visit &amp;lt;a href="http://www.captmondo.com" &lt;/pre&gt;&lt;pre&gt;style={color: navy}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;:link {background: aqua}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;:visited {background: red}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;:hover {background: yellow}&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;:active {background: green}"&gt;captmondo.com&amp;lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class="doctext"&gt;The third variation allows you to reference an external style sheet directly within an element. Again, this allows you to easily supercede any CSS code that may already be contained in the document, providing the flexibility of creating style sheets on an element-by-element basis if need be. The following line of code shows how this could be done:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;pre&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;span style="@import url(funky.css)"&gt;&lt;/pre&gt;&lt;pre&gt;Funky-looking text&amp;lt;/span&gt; set &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;against decidedly un-funky text.&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-8157491355214092635?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/8157491355214092635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=8157491355214092635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8157491355214092635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/8157491355214092635'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/element.html' title='The &amp;lt;style&gt; Element'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-4698584033481425533</id><published>2007-04-14T08:51:00.000-07:00</published><updated>2007-04-14T08:53:54.386-07:00</updated><title type='text'>Re-emergence of the Browser Wars?</title><content type='html'>&lt;p class="docText"&gt;One can justifiably ask about the relevancy of a "browser war"  now that the major battles seem to have been handily won by Internet Explorer,  which currently commands somewhere in the region of 90% of all browsers used.  For many Web authors, it's no longer a matter of ensuring a Web site is  compatible with all of the major browsers, but instead making sure that it is  workable when used by the most recent versions of Internet Explorer. Knowing how  to tailor pages to work best with this browser is knowledge most Web authors  want to know.&lt;/p&gt; &lt;p class="docText"&gt;Despite Internet Explorer's preponderance on the browser scene,  it would be foolish to dismiss the existence of other browsers out there. In  fact, it may be fair to say that the browser wars have simply entered a new  phase, and CSS has become one of the battlegrounds as browser manufacturers add  their own extensions to it. On the good side, it seems as though browser  manufacturers have been converted to the potential of implementing as many of  the officially sanctioned CSS properties as possible in order to win mind share  amongst Web authors.&lt;/p&gt; &lt;p class="docText"&gt;Starting with Internet Explorer 4.0 Microsoft has been adding  their own extensions to CSS. Some of these CSS properties have later become  recommendations under developing CSS specifications — such as Ruby — while  others are wholly new properties that as yet have no parallel under the official  W3C specifications, like the scrollbar formatting properties and transition  filters. In all, over 40 cumulative CSS properties have been added to various  versions of Internet Explorer, and these are all covered in detail in this  book.&lt;/p&gt; &lt;p class="docText"&gt;While the user base for such browsers as Netscape Navigator has  been greatly diminished since the start of the browser wars, it is far from  dead. In fact, with the deep pockets of AOL behind it as well as the collected  efforts of the open source development community behind the Mozilla browser  (whose code base has been going into versions of Netscape Navigator since  version 6.0) it certainly should not be written off. It is interesting to note  that Mozilla/Netscape have been adding their own CSS extensions within the  releases of these twinned browsers — in fact a staggering 160+ CSS extensions  have been added to various versions of these browsers. But for the most part  these extensions are anticipations of developments of the CSS specification by  the W3C, and they are also "unofficial" extensions, none of them officially  documented (the extensions to Internet Explorer are well covered by Microsoft  for aspiring developers). These extensions are not included in this book due to  their ever-changing nature, and because for the most part they parallel  developments in upcoming CSS specifications.&lt;/p&gt; &lt;p class="docText"&gt;While its command of the browser market is relatively small,  Opera is another browser that should not be ignored. While it has long been at  the forefront of CSS compatibility, it has also introduced its own small subset  of CSS extensions — so far, three in total (again, they are covered in this  book). Though Opera has a small user base when compared to Internet Explorer,  the company that produces it has been aggressively pushing it for use in  forthcoming portable hardware browsers, and it is also available under a wide  variety of operating systems.&lt;/p&gt; &lt;p class="docText"&gt;Though versions of Internet Explorer are available for various  releases of Microsoft Windows as well as the Macintosh OS, there is no version  of it available for the increasingly popular Linux operating system — nor is  there likely to be in the foreseeable future. There are a number of different  browsers available for this operating system, including Opera and Netscape  Navigator, as well as Linux-only browsers such as Galleon, Emacspeak and  Konqueror. Many of these browsers have good-to-excellent support for CSS, though  thankfully none of them seem to have added their own CSS extensions. Taken  together, they may represent a small portion of the browsers used to visit your  Web site, but they too are worth noting, if only for the ways they implement CSS  — sometimes, like Emacspeak, they are well in advance of other leading  browsers.&lt;/p&gt; &lt;p class="docText"&gt;It is probably too early to say whether or not the browser wars  are over, since it seems likely that they are entering a new phase — one in  which the operating system or hardware platform is likely to prove as important  for Web authors to consider as browser-specific extensions belonging to any one  browser. No matter how you look at it, CSS compatibility has become a real  factor in garnering mind share amongst the user base and with Web authors.  Greater adoption of CSS properties within the major browsers means that today's  Webmasters can no longer afford to overlook using CSS as an integral part of  their Web site designs.&lt;/p&gt; &lt;p class="docText"&gt;One thing is clear: CSS is here to stay. The more you know  about how to use it effectively, the more professional you and your Web site  designs will be.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-4698584033481425533?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/4698584033481425533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=4698584033481425533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4698584033481425533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4698584033481425533'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/re-emergence-of-browser-wars.html' title='Re-emergence of the Browser Wars?'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4990620872456899417.post-4418511674792617040</id><published>2007-04-14T08:50:00.000-07:00</published><updated>2007-04-14T08:51:35.161-07:00</updated><title type='text'>The World Wide Web Consortium Introduces Cascading Style Sheets</title><content type='html'>&lt;p class="docText"&gt;Tim Berners-Lee created the Web at CERN, and the initial  standards for HTML 1.0 and HTML 2.0 were governed by them. But CERN's main focus  is particle physics research, not the Web, and so in 1994 CERN abdicated its  role as the standards-setting body for HTML. It passed the torch to a newly  created body called the World Wide Web Consortium, better known simply as "W3C."  The W3C has convinced major software companies, including Netscape  Communications, Microsoft, IBM, Novell, Sun Microsystems and many more, to  become members of this standards body. This arrangement provides the software  firms with lines of communication to other member firms and to a body recognized  as authoritative in the devising and setting of a workable standard for  HTML.&lt;/p&gt; &lt;p class="docText"&gt;The W3C is designed to be a neutral meeting ground, where  competing companies can come together to contribute to and comply with future  Web standards. The W3C recognized the need to bring some stability to HTML, as  the multiple tags introduced during the "browser wars" threatened to introduce  widespread incompatibilities into working HTML. The W3C tried to consolidate  existing HTML standards, first with the official HTML 3.2 specification, later  with the HTML 4.0, and most recently the XHTML 1.0 specification and the XHTML  1.1 recommendation. These specifications adopted many of the HTML tags made  popular in both Internet Explorer and Netscape Navigator, even though these tags  often failed to conform to one of HTML's main guiding principles: that markup  should reflect the structure of a document rather than its physical layout.&lt;/p&gt; &lt;p class="docText"&gt;HTML was originally designed with the intention of displaying  the logical structure of a document, as opposed to dealing with the finer issues  of formatting text and image layout. This was done because there are many  different varieties of computers out there, and they could not be expected to  display content in exactly the same way. By defining logical constants as the  basis for Web documents, it was left up to the Web browser programmer to create  software that could adequately represent these structures in a way that would  look best under a particular computer or a specific operating system. In this  way, HTML was designed to be as widely compatible with as many computer  platforms as possible.&lt;/p&gt; &lt;p class="docText"&gt;But much of the drive by the browser manufacturers to provide  Webmasters with proprietary tags was spurred by Webmasters' demand for better  control over the layout of elements on a Web page, similar to what already  exists in desktop publishing programs. Over time, however, these extra tags have  increased the overall complexity of Web pages, in addition to producing many Web  sites along the way that could not be viewed properly when viewed under the  "wrong" browser. The HTML 4.0 specification in particular tried to consolidate  the existing state of HTML at that point in time, but it was felt that action  had to be taken in order to curb the development of further HTML tags by the  browser manufacturers.&lt;/p&gt; &lt;p class="docText"&gt;Thus the idea of Cascading Style Sheets (CSS) was born.&lt;/p&gt; &lt;p class="docText"&gt;CSS is an effort by the W3C to minimize the need for the  introduction of new &lt;span class="docEmphasis"&gt;physical&lt;/span&gt; formatting tags  (such as the font or table tags) by browser manufacturers — chiefly Microsoft  and Netscape — by making such tags unnecessary. CSS is a compromise, providing  the page layout features that Webmasters want by adding CSS formatting elements  to existing HTML tags.&lt;/p&gt; &lt;p class="docText"&gt;CSS retains much of the logical structure of a Web page while  delivering many of the page layout features in a way that is easy to understand  and powerful in the effects it produces. Under currently implemented CSS, it is  possible to do the following on a Web page:&lt;/p&gt; &lt;ul&gt;&lt;li&gt; &lt;p class="docList"&gt;specify the exact point size of text&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;add indentations to text&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;set margins within a Web page&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;add new formatting elements to a Web page, such as borders  around text&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;use such measurement units as inches and centimeters to set  precise sizes for text or images displayed on a Web page&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;create a distinctive style for individual Web pages or sets of  Web pages&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;change the fundamental way a tag is supposed to be displayed  onscreen&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;precisely lay out text, images and other objects using absolute  screen references&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;set precisely where a background image is displayed, and  whether it should be repeated across or down a Web page&lt;/p&gt; &lt;/li&gt;&lt;li&gt; &lt;p class="docList"&gt;alter the spacing between letters, between words or lines of  text, and much more&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p class="docText"&gt;CSS's long list of features provides many of the page layout  and typographical functions Webmasters have been looking for, although it still  provides less layout or typographic control than desktop publishing programs.  CSS is really a mechanism for modifying how content is displayed on a Web page,  and is not designed as a comprehensive layout tool. Despite this, CSS provides  Webmasters much finer control over where and how things appear on a Web page  than can be achieved using regular HTML.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4990620872456899417-4418511674792617040?l=css-webtutorial.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://css-webtutorial.blogspot.com/feeds/4418511674792617040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4990620872456899417&amp;postID=4418511674792617040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4418511674792617040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4990620872456899417/posts/default/4418511674792617040'/><link rel='alternate' type='text/html' href='http://css-webtutorial.blogspot.com/2007/04/world-wide-web-consortium-introduces.html' title='The World Wide Web Consortium Introduces Cascading Style Sheets'/><author><name>gaara - kun</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://images.google.co.id/images?q=tbn:r88wUUpMgVJXgM:http://www.jagerboi.com/gallery2/d/256-2/gaara.jpg'/></author><thr:total>0</thr:total></entry></feed>
