<?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>Rakshit Khare's Blog- Aarambh &#187; yellow bar</title>
	<atom:link href="http://www.rakshitk.com/blog/tag/yellow-bar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rakshitk.com/blog</link>
	<description>Not just a blog but my 2nd home &#124; The Technology Inside</description>
	<lastBuildDate>Wed, 11 Nov 2009 04:39:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to put a Yellow Warning Bar at the top of your website</title>
		<link>http://www.rakshitk.com/blog/2008/03/28/how-to-put-a-yellow-warning-bar-at-the-top-of-your-website/</link>
		<comments>http://www.rakshitk.com/blog/2008/03/28/how-to-put-a-yellow-warning-bar-at-the-top-of-your-website/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 09:35:31 +0000</pubDate>
		<dc:creator>Rakshit</dc:creator>
				<category><![CDATA[Archives]]></category>
		<category><![CDATA[Tutorials- "How To..."]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS bar]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[warning bar]]></category>
		<category><![CDATA[yellow bar]]></category>

		<guid isPermaLink="false">http://www.rakshitk.com/blog/2008/03/28/how-to-put-a-yellow-warning-bar-at-the-top-of-your-website/</guid>
		<description><![CDATA[If you are reading this article on my blog, you could clearly see a yellow bar at the top of your browser with a message &#8220;Welcome to just another day at Aarambh.&#8221;

With a little use of CSS, you can easily catch the attention of your readers. It&#8217;s really an effective way to inform your readers [...]]]></description>
			<content:encoded><![CDATA[<p>If you are reading this article on my blog, you could clearly see a yellow bar at the top of your browser with a message <em>&#8220;Welcome to just another day at <a href="http://www.rakshitk.com/blog" target="_blank"><strong>Aarambh</strong></a>.&#8221;</em><br />
<a href="http://s213.photobucket.com/albums/cc127/roxisayshi1/?action=view&amp;current=yellowbaratthetopofwebiste.jpg" target="_blank"></a></p>
<p>With a little use of CSS, you can easily catch the attention of your readers. It&#8217;s really an effective way to inform your readers about important announcements and updates. Also, you can sell that space for advertisements. The CSS bar is very easy to implement. Let&#8217;s learn how to deploy it into your own blog or website.<br />
Before doing anything just make sure that there is <strong>no margin</strong> on the BODY tag.</p>
<p><font color="#808080"><strong>body {<br />
margin: 0px;<br />
padding: 0px;<br />
}</strong></font></p>
<p>Now we are going to create CSS code for the bar. Add the following CSS code to your Blog&#8217;s Stylesheet  (<em>most probably <strong>style.css</strong> file</em>)</p>
<p><u>Code #1:</u></p>
<p><font color="#808080"><strong>#warningbox</strong><strong> </strong><strong>a</strong><strong>, #</strong><strong>warningbox</strong><strong> </strong><strong>a</strong><strong>:</strong><strong>link</strong><strong>, #</strong><strong>warningbox</strong><strong> </strong><strong>a</strong><strong>:</strong><strong>visited</strong><strong>, #</strong><strong>warningbox</strong><strong> </strong><strong>a</strong><strong>:</strong><strong>active</strong><strong> </strong><strong>{</strong></font></p>
<p><font color="#808080"><strong>display</strong><strong>: </strong><strong>block</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>color</strong><strong>: #</strong><strong>000</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>width</strong><strong>:</strong><strong>100</strong><strong>%;</strong></font></p>
<p><font color="#808080"><strong>background</strong><strong>: #</strong><strong>FFFFE1</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>border</strong><strong>-</strong><strong>bottom</strong><strong>: </strong><strong>1</strong><strong>px</strong><strong> </strong><strong>outset</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>text</strong><strong>-</strong><strong>decoration</strong><strong>: </strong><strong>none</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>font</strong><strong>-</strong><strong>family</strong><strong>: </strong><strong>Verdana</strong><strong>, </strong><strong>Arial</strong><strong>, </strong><strong>Helvetica</strong><strong>, </strong><strong>sans</strong><strong>-</strong><strong>serif</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>}</strong></font></p>
<p><u>Code #2:</u></p>
<p><font color="#808080"><strong>#warningbox</strong><strong> </strong><strong>a</strong><strong>:</strong><strong>hover</strong><strong> </strong><strong>{</strong></font></p>
<p><font color="#808080"><strong>color</strong><strong>: #</strong><strong>FFF</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>background</strong><strong>: #</strong><strong>3169</strong><strong>B6</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>}</strong></font></p>
<p><u>Code #3:</u></p>
<p><u></u></p>
<p><font color="#808080"><strong>#warningbox</strong><strong> </strong><strong>p</strong><strong>{</strong></font></p>
<p><font color="#808080"><strong>margin</strong><strong>:</strong><strong>0</strong><strong>px</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>padding</strong><strong>: </strong><strong>3</strong><strong>px</strong><strong> </strong><strong>10</strong><strong>px</strong><strong> </strong><strong>3</strong><strong>px</strong><strong> </strong><strong>10</strong><strong>px</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>font</strong><strong>-</strong><strong>size</strong><strong>:</strong><strong>11</strong><strong>px</strong><strong>;</strong></font></p>
<p><font color="#808080"><strong>}</strong></font></p>
<p>Now when you are finish adding all the CSS codes, it&#8217;s time to actually use these CSS codes in our main program. We need the html code, this code will need to be at the top off your page <strong>right after</strong> the <strong><em>&lt;body&gt;</em></strong> tag.</p>
<p><font color="#808080"><strong>&lt;</strong><strong>div</strong><strong> </strong><strong>id</strong><strong>=</strong><strong>&#8220;</strong><strong>warningbox</strong><strong>&#8220;</strong><strong>&gt;&lt;</strong><strong>a</strong><strong> </strong><strong>href</strong><strong>=&#8217;#'&gt;&lt;</strong><strong>p</strong><strong>&gt;</strong><strong>This</strong><strong> </strong><strong>is</strong><strong> </strong><strong>an</strong><strong> </strong><strong>example</strong><strong> </strong><strong>of</strong><strong> </strong><strong>the</strong><strong> </strong><strong>warning</strong><strong> </strong><strong>box</strong><strong>&lt;/</strong><strong>p</strong><strong>&gt;&lt;/</strong><strong>a</strong><strong>&gt;&lt;/</strong><strong>div</strong><strong>&gt;</strong></font></p>
<p><u></u></p>
<p>You can change the message enclosed within the <strong><em>&lt;p&gt;</em></strong> tag as per your requirements. Also, it is not annoying because it stays at the top of the browser and as soon as you scroll down it disappears.</p>
<p>Hope, you find it useful. If you encounter any problem do mention that in the comments section. I will try to resolve that to the best of my ability. Moreover, any feedback is whole heartedly appreciated.</p>
<p><em>I would like to thank <a href="http://www.whoisdeep.com/">DEEP</a> for giving me an extra 1GB bandwidth as a Holi Gift when my site was down (B/W limit exceeded) few days back. I appreciate his and also my hosting <a href="http://web1.in/">Web1</a> hospitality. They really value their customers.</em></p>
<br/><p><b>People who viewed this article also liked the following articles:-</b></p>
<ul><li><a href="http://www.rakshitk.com/blog/2008/01/09/recognizing-and-avoiding-fraudulent-websites/" rel="bookmark" title="Permanent Link: Recognizing and Avoiding Fraudulent Websites">Recognizing and Avoiding Fraudulent Websites</a></ul></li><ul><li><a href="http://www.rakshitk.com/blog/2008/05/23/tnxnet-a-text-ad-network-to-earn-money-and-increase-traffic/" rel="bookmark" title="Permanent Link: TNX.Net- A Text Ad Network to Earn Money and Increase Traffic">TNX.Net- A Text Ad Network to Earn Money and Increase Traffic</a></ul></li><ul><li><a href="http://www.rakshitk.com/blog/2008/05/18/how-to-block-websites-without-using-any-software/" rel="bookmark" title="Permanent Link: How to Block Websites without using any Software">How to Block Websites without using any Software</a></ul></li><ul><li><a href="http://www.rakshitk.com/blog/2008/06/03/web1-solutions-indias-most-trusted-web-hosting-company/" rel="bookmark" title="Permanent Link: Web1 Solutions &#8211; India&#8217;s most trusted Web Hosting Company">Web1 Solutions &#8211; India&#8217;s most trusted Web Hosting Company</a></ul></li><ul><li><a href="http://www.rakshitk.com/blog/privacy-policy/" rel="bookmark" title="Permanent Link: Privacy Policy">Privacy Policy</a></ul></li>
<i>© Rakshit Khare’s Blog- Aarambh 2007-08</i>]]></content:encoded>
			<wfw:commentRss>http://www.rakshitk.com/blog/2008/03/28/how-to-put-a-yellow-warning-bar-at-the-top-of-your-website/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
