<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Design Gala &#187; CSS</title>
	<atom:link href="http://designgala.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://designgala.com</link>
	<description>Web Usability, Web Technology, User Experience</description>
	<lastBuildDate>Sat, 11 Jun 2011 02:38:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Basic jQuery Tutorial: Change CSS</title>
		<link>http://designgala.com/basic-jquery-tutorial-change-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=basic-jquery-tutorial-change-css</link>
		<comments>http://designgala.com/basic-jquery-tutorial-change-css/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 15:34:10 +0000</pubDate>
		<dc:creator>Mukesh Chapagain</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[class]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=2011</guid>
		<description><![CDATA[In this article, I will be showing you how to add or change css styling. You will be able to add or remove class in HTML elements. VIEW DEMO Here is my html...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.designgala.com/wp-content/uploads/2010/02/jquery-logo.png" alt="" width="268" height="268" class="alignleft size-full wp-image-2007" /></p>
<p>In this article, I will be showing you how to add or change css styling. You will be able to add or remove class in HTML elements. </p>
<p><a href="http://www.cssbreak.com/examples/change-css/">VIEW DEMO</a> </p>
<p><span id="more-2011"></span></p>
<p>Here is my html code:</p>
<div class="wp_syntax">
<div class="code">
<pre class="html" style="font-family:monospace;">&lt;div&gt;
	&lt;span&gt;Sample text!&lt;/span&gt;
	&lt;br /&gt;
	Testing!
&lt;/div&gt;
&lt;br /&gt;
&nbsp;
&lt;div&gt;Click me&lt;/div&gt;</pre>
</div>
</div>
<p>As you can see above, I have a div with id &#8216;content&#8217;. I have &#8216;Sample text!&#8217; inside span. And I have a div with id &#8216;clickme&#8217;. </p>
<p>Here is CSS class to be used:</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.hover</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#003399</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p>Here is the magical jQuery function :)</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#clickme&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hover&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</div>
</div>
<p>Here, &#8216;hover&#8217; function is used. It means that, when we hover on &#8216;Click me&#8217; div then the CSS class &#8216;hover&#8217; is added to the &#8216;clickme&#8217; div. The &#8216;hover&#8217; class will change the color, font-weight, etc. of the div text &#8216;Click me&#8217;.</p>
<p>Now, when we click the &#8216;Click me&#8217; text, then the CSS styling is added to the div &#8216;content&#8217;. The new styling will change the text of div &#8216;content&#8217; to green in color and it also increases the font size. The following jQuery code is used:</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#clickme&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#content&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;color&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;green&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;font-size&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;20px&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</div>
</div>
<p><a href="http://www.cssbreak.com/examples/change-css/">VIEW DEMO</a> </p>
<p>Cheers,</p>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/basic-jquery-tutorial-change-css/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Essential Best Practices to Improve Markup and CSS</title>
		<link>http://designgala.com/essential-best-practices-to-improve-markup-and-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=essential-best-practices-to-improve-markup-and-css</link>
		<comments>http://designgala.com/essential-best-practices-to-improve-markup-and-css/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 11:48:30 +0000</pubDate>
		<dc:creator>S@R0Z</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Designs]]></category>
		<category><![CDATA[Rules]]></category>
		<category><![CDATA[W3 Validation]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=1300</guid>
		<description><![CDATA[Whenever we cover CSS articles we&#8217;ve got good response from our reader; for e.g. on one line CSS and Magazine style drop cap first letter with CSS. This makes us to write thorough,...]]></description>
			<content:encoded><![CDATA[<p>Whenever we cover CSS articles we&#8217;ve got good response from our reader; for e.g. on <a href="http://www.designgala.com/one-line-css-magic/">one line CSS</a> and <a href="http://www.designgala.com/magazine-style-drop-cap-first-letter-with-css/">Magazine style drop cap first letter with CSS</a>. This makes us to write thorough, descriptive and clean articles. </p>
<p><img class="alignnone size-full wp-image-1537" src="http://www.designgala.com/wp-content/uploads/2010/01/CSS2.jpg" alt="" width="540" height="404" />. </p>
<p>If you want to develop great looking websites and want that to be easy to maintain you must follow certain rules in writing markup and CSS. Those sites requires high quality markup and styling. The most fundamental principle to remember while designing is separating presentation and the content or style &amp; markup. Separation is the key a good designer need to build a good markup to produce good CSS.</p>
<p><span id="more-1300"></span></p>
<p><strong>1. Treat Markup and CSS as development objects</strong><br />
Good markup and CSS is time consuming to produce and minor changes or mistakes can do serious damage to you work. Like any other development artifacts, CSS files should start with a well structured header. Both markup and CSS files should contains a title, a revision, a time stamp, and a description or any other information the designer wants to keep like copyright and license terms.</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">	<span style="color: #808080; font-style: italic;">/************************************/</span>
	 My Site THEME
	 Copyright <span style="color: #cc66cc;">2010</span><span style="color: #00AA00;">,</span> DesignGala
	 URL<span style="color: #00AA00;">:</span> www<span style="color: #6666ff;">.designgala</span><span style="color: #6666ff;">.com</span>
	 AUTHOR<span style="color: #00AA00;">:</span> Mr. S<span style="color: #a1a100;">@R0Z</span>
	 DATE<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">31</span> Jan. <span style="color: #cc66cc;">2010</span>
	 REVISION<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.0</span>
	<span style="color: #808080; font-style: italic;">/************************************/</span></pre>
</div>
</div>
<p><strong>2. Build up a library of most used designs </strong><br />
Starting with a blank page every time would not be very effective. It a time consuming process and it would cost a lot. Rather starting from the scratch you can create certain layouts which can be used time and again like:<br />
•  2-column layout<br />
•  3-column layout<br />
•  blog layout<br />
•  print layout etc.</p>
<p><strong>3. Define basic guidelines and naming conventions.</strong><br />
Having a set of basic guidelines for how to write your CSS is recommended because it will make your code more logical and standardized. Basic guidelines can consist of any rule you find valuable for you and your team. I would recommend considering the following:</p>
<p><strong> &#8211; Hyphens Instead of Underscores:</strong> Use lowercase characters to define your class and use “-” or uppercase letters to separate multiple-words classes (e.g. “main-container”, or “mainContainer).</p>
<p><strong> &#8211; Use structural naming: </strong>Properly name your page segments and avoid at all cost to use presentational naming. (E.g. Use sidebar and not right-column). Presentational naming prevents you from having names in your markup that actually describe what the elements are.</p>
<p><strong>4. Use whitespace carefully but have proper indentation</strong><br />
Whitespace, including spaces, tabs, and extra line breaks, is important for readability of your CSS code. However, whitespace does add to page weight and you should be careful not to add whitespace that is not needed.</p>
<p>To make your code easy to read while you work on it and if you provide it for others to maintain use proper indentation. Code that is not well structured can be almost impossible to read so it is worth the effort to maintain some kind of formatting.</p>
<p><strong>Unmanaged CSS</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.div</span> <span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">780px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p><strong>Managed CSS</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.div</span> <span style="color: #cc00cc;">#container</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">780px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p><strong>5. Use Optimized CSS Code</strong><br />
You can optimize the CSS by grouping selectors that have the same properties. Each selector should be separated with a comma rather than writing same code separately.<br />
<strong>E.g.</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> .<span style="color: #993333;">block</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f0f0f0</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bkg.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">5px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p><strong>6. Use Shorthand properties</strong><br />
Like grouping elements to re-use styles makes you write less code you should always use shorthand properties. Several key CSS properties that you use over and over again support use shorthand: margin, border, padding, background, font, list-style, and even outline.<br />
<strong>E.g.</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* CSS */</span>
p <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span>  <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">//Should be replaced by<span style="color: #00AA00;">:</span>
p <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">10px</span> <span style="color: #933;">15px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p><img class="alignnone size-full wp-image-1535" src="http://www.designgala.com/wp-content/uploads/2010/01/shorthand.jpg" alt="" width="380" height="237" /></p>
<p><strong>7. Set up typography in CSS</strong><br />
It should be clear to anyone that applying style (fonts, size, color alignment etc.) directly in the markup is bad practice and not a durable solution. It may look right but it&#8217;s a pain to maintain. Typical Typographic effects in CSS are: Size, Case, Style, Color, Alignment etc.</p>
<p><strong>E.g.</strong></p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Having only CAPs in headers or menus is typography
and should be left to CSS. */</span>
&nbsp;
&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #00AA00;">&gt;</span>FRONT&lt;/a<span style="color: #00AA00;">&gt;</span> <span style="color: #808080; font-style: italic;">/* Not Directly in HTML like this */</span>
&nbsp;
&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #00AA00;">&gt;</span>Front&lt;/a<span style="color: #00AA00;">&gt;</span> <span style="color: #808080; font-style: italic;">/* Just content in HTML and Design on CSS */</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* css */</span>
a
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p><strong>8. Validate &amp; fix the bugs</strong></p>
<blockquote><p>Before putting a new design live you should validate that your CSS is OK and get rid of any mistakes you may have made because even small mistakes in markup and CSS results different outputs in different browsers. A designer should eliminate those bugs to make the product final and perfect. You can use relevant validation tools.</p></blockquote>
<p><strong>Tools</strong><br />
- <a href="http://validator.w3.org/">The W3C Markup Validation Service</a><br />
- <a href="http://xhtml-css.com/">XHTML-CSS Validator</a></p>
<p><strong>9. Document your work</strong><br />
First thing you should take serious is in-line comments in the CSS code. A designer can also make separate documentation of the template s/he is developing.</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">&lt;!-- markup --<span style="color: #00AA00;">&gt;</span>
&nbsp;
&lt;!-- This is how you insert documentation in the code --<span style="color: #00AA00;">&gt;</span>
&lt;!-- css --<span style="color: #00AA00;">&gt;</span>
<span style="color: #808080; font-style: italic;">/* In CSS this is how you insert documentation in the code */</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/***** Initialize to 0 *****/</span>
<span style="color: #00AA00;">*</span><span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/***** Style for the page header *****/</span>
&nbsp;
Header<span style="color: #00AA00;">&#123;</span>
	…
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/***** Style for the displaying Menu *****/</span>
menu<span style="color: #00AA00;">&#123;</span>
	…
	<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/essential-best-practices-to-improve-markup-and-css/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Important Tips for Web Design</title>
		<link>http://designgala.com/important-tips-for-web-design/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=important-tips-for-web-design</link>
		<comments>http://designgala.com/important-tips-for-web-design/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 08:24:09 +0000</pubDate>
		<dc:creator>S@R0Z</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design Tips]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=1262</guid>
		<description><![CDATA[Website is the best online platform for the promotion of business or services. So the greatest necessity of website is its design. Design needs to be eye catchy and attractive enough so that...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.designgala.com/wp-content/uploads/2010/01/webdesign2.jpg" alt="webdesign" width="560"  class="alignnone size-full wp-image-1298" /></p>
<p>Website is the best online platform for the promotion of business or services. So the greatest necessity of website is its design. Design needs to be eye catchy and attractive enough so that the visitors stop by to browse through your site. A visitor hardly stays on a website for less than 5 seconds or so if the design is not catchy. So a web designer has to be careful enough to turn the first impression of the site into a good one. Acquiring designing skill is very important for a beginner which can be developed and polished with rigorous practice.</p>
<p>The web layouts, the look and feel of the website as well as many other things are taken into consideration for website designing. A proper knowledge and skill to use the web designing tools are essential for any web designer.</p>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/important-tips-for-web-design/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to create pagination using CSS</title>
		<link>http://designgala.com/how-to-create-pagination-using-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-pagination-using-css</link>
		<comments>http://designgala.com/how-to-create-pagination-using-css/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 14:15:53 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[pagination]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=232</guid>
		<description><![CDATA[We can see different types of pagination style in webpage .They simply link pages. There are various ways to add pagination in our webpage. Here I have tried to show one of the...]]></description>
			<content:encoded><![CDATA[<p>We can see different types of pagination style in webpage .They simply link pages. There are various ways to add pagination in our webpage. Here I have tried to show  one of the common way to create pagination using CSS .<img class="alignleft size-thumbnail wp-image-239" title="page" src="http://www.designgala.com/wp-content/uploads/2009/10/page1-150x142.jpg" alt="page" width="100" height="100" /></p>
<p>First simple technique</p>
<p>We can create a pagination style similar to flicker with the following CSS .</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">&lt;!--
&lt;html<span style="color: #00AA00;">&gt;</span>
&lt;style<span style="color: #00AA00;">&gt;</span>
&nbsp;
ul<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#pagination-flickr</span> li<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pagination-flickr</span> a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#DDDDDD</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pagination-flickr</span> .previous-off<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#pagination-flickr</span> <span style="color: #6666ff;">.next-off</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pagination-flickr</span> <span style="color: #6666ff;">.next</span> a<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#pagination-flickr</span> <span style="color: #6666ff;">.previous</span> a <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pagination-flickr</span> .active<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ff0084</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pagination-flickr</span> a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#pagination-flickr</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#0063e3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pagination-flickr</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span>
&lt;ul id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;pagination-flickr&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;li class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;previous-off&quot;</span><span style="color: #00AA00;">&gt;</span>«Previous&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;active&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">1</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li<span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=2&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">2</span>&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li<span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=3&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">3</span>&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li<span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=4&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">4</span>&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li<span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=5&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">5</span>&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li<span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=6&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">6</span>&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li<span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=7&quot;</span><span style="color: #00AA00;">&gt;</span><span style="color: #cc66cc;">7</span>&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;li class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;next&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;a href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;?page=2&quot;</span><span style="color: #00AA00;">&gt;</span>Next »&lt;/a<span style="color: #00AA00;">&gt;</span>&lt;/li<span style="color: #00AA00;">&gt;</span>
&lt;/ul<span style="color: #00AA00;">&gt;</span>
&nbsp;
--<span style="color: #00AA00;">&gt;</span></pre>
</div>
</div>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/how-to-create-pagination-using-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Controlling the border with CSS</title>
		<link>http://designgala.com/controlling-border-with-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=controlling-border-with-css</link>
		<comments>http://designgala.com/controlling-border-with-css/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 05:12:16 +0000</pubDate>
		<dc:creator>Rabi Shrestha</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=174</guid>
		<description><![CDATA[We can customize the borders around the image , text and tables using the CSS.We can have absolute control over the page&#8217;s layout.The features like colour , size and width of four sides(top,...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.designgala.com/wp-content/uploads/2009/10/border-150x89.jpg" alt="border" title="border" width="150" height="89" class="alignleft size-thumbnail wp-image-184" /><br />
We can customize the borders around the image , text and tables using the CSS.We can have absolute control over the page&#8217;s layout.The features like colour , size and width of four sides(top, bottom,left, right) can be customized as per our requirement.<br />
Here , we are  discussing  on customizing the  border around a text using CSS.   </p>
<p>Example:<br />
code:</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">&lt;!--
&lt;p class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;tborder&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;br /<span style="color: #00AA00;">&gt;</span><span style="color: #ff0000;">&quot;Man and MOON&quot;</span>&lt;br /<span style="color: #00AA00;">&gt;</span>&lt;br /<span style="color: #00AA00;">&gt;</span>
&lt;style<span style="color: #00AA00;">&gt;</span>
.tborder<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-top-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">170</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">204</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-bottom-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">16</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">92</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">182</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-left-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">128</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">182</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">42</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-right-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">128</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">182</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">149</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-top-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-left-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
       <span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span>
--<span style="color: #00AA00;">&gt;</span></pre>
</div>
</div>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/controlling-border-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magazine style drop cap first letter with CSS</title>
		<link>http://designgala.com/magazine-style-drop-cap-first-letter-with-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=magazine-style-drop-cap-first-letter-with-css</link>
		<comments>http://designgala.com/magazine-style-drop-cap-first-letter-with-css/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 05:54:17 +0000</pubDate>
		<dc:creator>Design Gala</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Drop Cap]]></category>

		<guid isPermaLink="false">http://www.designgala.com/magazine-style-drop-cap-first-letter-with-css/</guid>
		<description><![CDATA[Its been a quite while the trend of drop cap being used in website paragraphs. This article demonstrate on techniques on first letter drop cap using CSS.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.designgala.com/wp-content/uploads/2008/04/drop_cap_first_letter.jpg" class="alignleft" alt="Drop cap first letter" />When was the first time drop caps first letter introduced in newspaper, magazine? But its been a quite while the trend of drop cap used in web business. First letter drop cap makes your paragraph catchy and stylish. First letter drop cap can be achieved in many ways using CSS. Two ways are going to be discussed on this article.</p>
<ol>
<li><a title="Using span tag to style the first letter" href="#technique_1">Using span tag to style the first letter</a></li>
<li><a title="Using pseudo element :first-letter" href="#technique_2">Using pseudo element :first-letter</a></li>
</ol>
<p><a id="technique_1" title="technique 1"></a></p>
<h3><strong>1. Using <em>span</em> tag to style the first letter</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.firstletter</span> <span style="color: #00AA00;">&#123;</span>     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>     <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>     <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-0.63em</span> <span style="color: #933;">0.5em</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-0.56em</span><span style="color: #00AA00;">;</span>     <span style="color: #000000; font-weight: bold;">height</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">4.5em</span><span style="color: #00AA00;">;</span>     <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">;</span>   <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.firstletter</span> span <span style="color: #00AA00;">&#123;</span>     <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">200%</span><span style="color: #00AA00;">;</span>     <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.0em</span><span style="color: #00AA00;">;</span>   <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.firstletter</span> <span style="color: #00AA00;">+</span> span<span style="color: #00AA00;">&#123;</span>     <span style="color: #000000; font-weight: bold;">margin-left</span>  <span style="color: #00AA00;">:</span> <span style="color: #933;">-0.5em</span><span style="color: #00AA00;">;</span>   <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<blockquote><p>You might be interested to know about + sign in above CSS code. It is adjacent-sibling selector that was introduced in CSS 2. Adjacent-sibling targets an element directly after another element with the same parent.</p></blockquote>
<h3><strong>How to Use it?</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;firstletter&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>W<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>hen was the first time drop caps first letter introduced in newspaper, magazine? But its been a quite while the trend of drop cap used in web business. First letter drop cap can be achieved in many ways.</pre>
</div>
</div>
<p>You can view <a title="Live Demo CSS Drop cap" href="http://www.designgala.com/demos/drop_cap_first_letter_1.html">Live Demo</a> here.</p>
<p><a id="technique_2" title="technique 2"></a></p>
<h3><strong>2. Using pseudo element <em>:first-letter</em></strong></h3>
<p>Most of the sites use span technique for the drop cap first letter. With invent of CSS 2, the <em>:first-letter</em> pseudo-element was introduced for this purpose. It’s easy creating drop caps with <em>:first-letter</em>. Most of the latest browsers supports <em>:first-letter</em> pseudo element.</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">p<span style="color: #3333ff;">:first-letter </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">400%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.06em</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">3.5em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<h3><strong>How to Use it?</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="html4strict" style="font-family:monospace;">When was the first time drop caps first letter introduced in newspaper, magazine? But its been a quite while the trend of drop cap used in web business. First letter drop cap can be achieved in many ways.</pre>
</div>
</div>
<p>You can view <a title="Live Demo CSS Drop cap" href="http://www.designgala.com/demos/drop_cap_first_letter_2.html">Live Demo</a> here.</p>
<p>Inside the STYLE tag, we added style for paragraph, and suffix it with the code <em>:first-letter</em>, and whatever declarations that follow will be applied to the first letter of that paragraph.</p>
<blockquote><p>Some fix might be needed for cross browser compatibility.</p></blockquote>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/magazine-style-drop-cap-first-letter-with-css/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>One Line CSS Magic</title>
		<link>http://designgala.com/one-line-css-magic/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=one-line-css-magic</link>
		<comments>http://designgala.com/one-line-css-magic/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 04:51:36 +0000</pubDate>
		<dc:creator>Design Gala</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[One Line CSS]]></category>

		<guid isPermaLink="false">http://www.designgala.com/one-line-css-magic/</guid>
		<description><![CDATA[Its pure beauty of CSS that gives life to the website and makes it lively. Sometimes, one line in CSS can be more than a magic providing solutions. I reviewed some of the CSS files and came up with some one line CSS.
]]></description>
			<content:encoded><![CDATA[<p>No need to mention <abbr title="Cascading Style Sheets">CSS</abbr> is awesome. Its pure beauty of CSS that gives life to the website and makes it lively.  Yes, it&#8217;s not simple to write CSS for newbie and even professionals sometimes gets stuck because of cross browser issues. Sometimes, One line in CSS can be more than a magic providing solutions. I reviewed some of the CSS files and came up with some one line CSS.</p>
<p>Below are list of one line CSS. One line <a title="CSS" href="http://www.designgala.com/topics/css/">CSS</a> mentioned below may or may validate <a title="Web Standards" href="http://www.designgala.com/topics/web-standards/">web standards</a> and <a title="Web Accessibility" href="http://www.designgala.com/topics/web-accessibility/">web accessibility</a> rules.</p>
<h3><strong>1. Set default margin and padding to all elements</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p>Every  element that have not assigned margin or padding will have default value of above.<br />
Some CSS designers argue that this is not necessary at all because all CSS element at the end will have their assigned value.</p>
<h3><strong>2. Set image border to zero</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">img<span style="color: #00AA00;">,</span> a img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p>This can be used to prevent any linked images from displaying borders.</p>
<h3><strong>3. Remove Firefox&#8217;s link border</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p>This removes dotted outline from focused or active links on firefox.</p>
<h3><strong>4. Scrolling Render IE</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">html <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span> <span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>null<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">fixed</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<h3><strong>5. Prevent line breaks in links, over sized content to break</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">a<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span><span style="color: #993333;">nowrap</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
element <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p>This trick prevents line breaks on links.</p>
<h3><strong>6. Centering block elements horizontally</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">element <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<p>This one line CSS horizontally centers a block level element.</p>
<p>For IE less than 7, following line should be added though.</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">element <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<h3><strong>7. Show Firefox scrollbar</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #3333ff;">:-moz-scrollbars-</span>vertical<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<h3><strong>8. Remove textarea scrollbar in IE</strong></h3>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">textarea<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre>
</div>
</div>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/one-line-css-magic/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Creating an Iframe in CSS</title>
		<link>http://designgala.com/creating-an-iframe-in-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-an-iframe-in-css</link>
		<comments>http://designgala.com/creating-an-iframe-in-css/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 20:10:56 +0000</pubDate>
		<dc:creator>Design Gala</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IFrame]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=4</guid>
		<description><![CDATA[Creating Iframe with help of CSS is an easy task. This article demonstrate how Iframe can be built within few minutes.]]></description>
			<content:encoded><![CDATA[<p><span class="firstletter"><span>C</span></span>reating Iframe with help of CSS is an easy task. We will take help of CSS selector.</p>
<div class="wp_syntax">
<div class="code">
<pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
.iframe_class<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#369</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#33a</span><span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre>
</div>
</div>
<p><!--adsense#longbottom--></p>
<p>Somewhere in body, we can use above created iframe_class selector in following way.</p>
<div class="wp_syntax">
<div class="code">
<pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;iframe_class&quot;</span>&gt;</span>Some Text Goes Here.. Dummy Text.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span></pre>
</div>
</div>
<p><strong>Download Example: </strong><br />
<a href="http://www.designgala.com/wp-content/uploads/2008/03/iframe.zip" title="Example of Creating Iframe in CSS">Example of Creating Iframe in CSS</a>
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/creating-an-iframe-in-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building Web with Web Standards</title>
		<link>http://designgala.com/building-web-with-web-standards/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-web-with-web-standards</link>
		<comments>http://designgala.com/building-web-with-web-standards/#comments</comments>
		<pubDate>Sat, 05 Feb 2005 13:32:49 +0000</pubDate>
		<dc:creator>Design Gala</dc:creator>
				<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Standard]]></category>

		<guid isPermaLink="false">http://www.designgala.com/?p=9</guid>
		<description><![CDATA[Quite a few people in Nepal are following a web standards to build web application. Whether be it small or large web application, no one cares about the web standards. The web standard has been there for a long time and its been continuously upgrading and updating. ]]></description>
			<content:encoded><![CDATA[<p><span class="firstletter"><span>Q</span></span>uite a few people in Nepal are following a web standards to build web application. Whether be it small or large web application, no one cares about the web standards. The web standard has been there for a long time and its been continuously upgrading and updating. But, here people, company, designers, (whoever) are still developing web with HTML 4.</p>
<p>Why are we being like an ostrich? Is it because, we just wanted to earn money and forget all the things behind? Or Is it because clients here are unaware of the web standards? Or no one knows about the benefits that we could achieve with building web with web standards? Or there are other factors or reasons?<br />
Even most popular and mostly viewed site do not follow web standards. For example<br />
1. <a href="http://www.ekantipur.com" rel="nofollow" title="eKantipur">eKantipur</a>, claims oneself as number one news site uses frame and heavy graphics.<br />
2. <a href="http://www.cybersansar.com" rel="nofollow" title="cybersansar">Cyber Sansar</a>, a popular entertainment site has heavy graphics and is built with HTML 4.0 transistional.</p>
<p>There are numerous other popular sites that does not even passes the W3C validation. A lot of work is yet to be done. These site has to come with as an example for others. Other follows these popular sites.<br />
So, lets not use deprecated features. Lets upgrade and update ourselves. Lets build web applications that meet web standards.<br />
What is Web Standards?</p>
<p>The <a href="http://www.w3.org" title="W3C">W3C</a> along with other groups and standards bodies, established a framework for creating and interpreting web-based content. These framework are web standards. These are carefully designed to deliver the greatest benefits to the greatest number of web users while ensuring the long-term viability of any document published on the Web. Designing and building with these standards simplifies and makes site accessible to more people and more types of Internet devices.</p>
<p>We should follow the basic guidelines of W3C. Its not compulsory that you should build sites with XHTML Strict and CSS 2.0. But make sure to follow primary rules to build pages.<br />
Most of us Ignores</p>
<p>1. Declaration of doctype at the beginning of page<br />
2. capitalizing of HTML tags<br />
3. missing of proper alt and longdesc attribute in image tag.<br />
4. Improper nesting of HTML tags</p>
<p>and other follows&#8230;&#8230;&#8230;. (if you know please state others mistakes we commit as well)
<div id="fb-root"></div>
<p><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><!-- Do not remove --></p>
]]></content:encoded>
			<wfw:commentRss>http://designgala.com/building-web-with-web-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

