<?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>The Design Superhero &#187; css</title>
	<atom:link href="http://thedesignsuperhero.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://thedesignsuperhero.com</link>
	<description>Design Blog by Aravind Ajith, A UI developer</description>
	<lastBuildDate>Mon, 30 Aug 2010 07:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Tutorial to create a pretty cool, simple, horizontal CSS menu</title>
		<link>http://thedesignsuperhero.com/2008/04/tutorial-to-create-a-pretty-cool-simple-horizontal-css-menu/</link>
		<comments>http://thedesignsuperhero.com/2008/04/tutorial-to-create-a-pretty-cool-simple-horizontal-css-menu/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 13:10:24 +0000</pubDate>
		<dc:creator>aravind</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://thedesignsuperhero.com/blog/?p=35</guid>
		<description><![CDATA[This is a beginner level tutorial to create a horizontal CSS menu. Many of the beginners are not aware how simple is to create a pure CSS menu. This tutorial helps to create a simple and attractive CSS menu with a cool hover effect. Check out the demo below.. #button { padding: 0; margin:40px 0; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a beginner level tutorial to create a horizontal CSS menu. Many of the beginners are not aware how simple is to create a pure CSS menu. This tutorial helps to create a simple and attractive CSS menu with a cool hover effect. Check out the demo below..</p>
<style>#button { padding: 0; margin:40px 0; } #button li { display: inline; } #button li a { font-family: Arial; font-size:11px; text-decoration: none; float:left; padding: 10px; background-color: #2175bc; color: #fff; } #button li a:hover, #button li a.activea { background-color: #2586d7; margin-top:-2px; padding-bottom:12px; color: #fff; opacity:1; }</style>
<div>
<ul id="button">
<li><a href="#">Home</a></li>
<li><a class="activea" href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Clients</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">F.A.Q</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<p><span id="more-49"></span></p>
<p style="clear:both">First of all let us write HTML list for menu. Say we have 8 links, as shown in image, here goes the code..</p>
<blockquote><p>&lt;ul id=&#8221;button&#8221;&gt;</p>
<blockquote><p>&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;About&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Services&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Clients&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Products&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;F.A.Q&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Help&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;</p></blockquote>
<p>&lt;/ul&gt;</p></blockquote>
<p><img src="http://72.18.130.22/~thedesig/wp-content/uploads/2008/04/a-pretty-cool-css-menu-beginner-levell-css-tutorial-from-thedesignsuperherocom_1208524535171.png" alt="CSS menu" /></p>
<p>Now, lets go the CSS part, We used only one ID name here to write CSS code. That is &#8216;button.&#8217;</p>
<blockquote><p>#button {<br />
padding: 0;<br />
}</p></blockquote>
<p>The CSS code above will remove the padding which will be there in default for list elements.</p>
<p>I am going to create a horizontal menu now, so lets make the list inline</p>
<blockquote><p>#button li {<br />
display: inline;<br />
}</p></blockquote>
<p><img src="http://72.18.130.22/~thedesig/wp-content/uploads/2008/04/a-pretty-cool-css-menu-beginner-levell-css-tutorial-from-thedesignsuperherocom_1208524571343.png" alt="CSS menu" /></p>
<p>Okay, now lets make it look beautiful by adding some styles for anchor tag</p>
<blockquote><p>#button li a {<br />
font-family: Arial;<br />
font-size:11px;<br />
text-decoration: none;<br />
float:left;<br />
padding: 10px;<br />
background-color: #2175bc;<br />
color: #fff;<br />
}</p></blockquote>
<p><img src="http://72.18.130.22/~thedesig/wp-content/uploads/2008/04/a-pretty-cool-css-menu-beginner-levell-css-tutorial-from-thedesignsuperherocom_1208524594078.png" alt="CSS menu" /></p>
<p>Lets make it more attractive by giving hover effects, we are here going to give a special hover effect <img src='http://thedesignsuperhero.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p>#button li a:hover {<br />
background-color: #2586d7;<br />
margin-top:-2px;<br />
padding-bottom:12px;<br />
}</p></blockquote>
<p><img class="alignnone size-full wp-image-279" title="Horizontal CSS menu tutorial" src="http://thedesignsuperhero.com/wp-content/uploads/2008/10/screen.jpg" alt="" width="444" height="120" /></p>
<p>Yeah..! its done! see how simple is to create a CSS menu&#8230; A demo..?<a href="http://72.18.130.22/~thedesig/wp-content/uploads/2008/04/css_menu.html" target="_blank"><strong> CLICK HERE!</strong></a></p>
<hr/>
Easy and fast success in <a href="http://www.pass4sure.org/Cisco/642-983.html">642-983</a>  is not a dream now. Sign up for pass4sure and get 100% reliable question and answers for <a href="http://www.pass4sure.org/Cisco/642-533.html">642-533</a>  as well as <a href="http://www.pass4sure.org/Cisco/350-050.html">350-050</a>  prepared by certified team to help you pass your exams without any difficulty.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://thedesignsuperhero.com/2008/01/the-most-usefull-firefox-addons-for-webmasters/" rel="bookmark" title="January 16, 2008">the most useful firefox addons for webmasters</a></li>
<li><a href="http://thedesignsuperhero.com/2009/05/color-up-your-screens-45-stunningly-colorful-wallpapers/" rel="bookmark" title="May 18, 2009">Color up your screens! 45 Stunningly Colorful Wallpapers</a></li>
<li><a href="http://thedesignsuperhero.com/2008/01/wanna-create-a-favicon/" rel="bookmark" title="January 17, 2008">want to create a favicon?</a></li>
<li><a href="http://thedesignsuperhero.com/2008/02/drop-down-menu-disappears-behind-select-box-in-ie6/" rel="bookmark" title="February 1, 2008">Drop down menu disappears behind SELECT box in IE6 ?</a></li>
<li><a href="http://thedesignsuperhero.com/2008/04/free-font-geobats-now-create-maps-of-countries-and-states-easily/" rel="bookmark" title="April 23, 2008">Free font &#8211; GeoBats: Now create maps of countries and states easily</a></li>
</ul>
<p><!-- Similar Posts took 4.849 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://thedesignsuperhero.com/2008/04/tutorial-to-create-a-pretty-cool-simple-horizontal-css-menu/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
		<item>
		<title>Drop down menu disappears behind SELECT box in IE6 ?</title>
		<link>http://thedesignsuperhero.com/2008/02/drop-down-menu-disappears-behind-select-box-in-ie6/</link>
		<comments>http://thedesignsuperhero.com/2008/02/drop-down-menu-disappears-behind-select-box-in-ie6/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 05:44:05 +0000</pubDate>
		<dc:creator>aravind</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://thedesignsuperhero.com/blog/?p=33</guid>
		<description><![CDATA[Recently I came across a problem in IE6 which my client had reported. We had six SELECT boxes in main page and these SELECT boxes were placed just below the main menu. There were three menu items with drop down just above the SELECT boxes. I have placed everything correctly and finalized it. It was [...]]]></description>
			<content:encoded><![CDATA[<p><span class="style4">Recently I came across a problem in IE6 which my client had reported. We had six SELECT boxes in main page and these SELECT boxes were placed just below the main menu. There were three menu items with drop down just above the SELECT boxes. I have placed everything correctly and finalized it. It was working fine with IE7 and Firefox. But when we checked it in IE6, <strong>the drop  down menus were displaying behind the SELECT boxes</strong>.! I tried Z-Index  to fix it- 1, -1, 100, 300.. But it didn&#8217;t help me anyway.</span></p>
<p><img src="http://thedesignsuperhero.com/blog/wp-content/uploads/2008/02/ss2.JPG" alt="Drop down menu disappears behind SELECT box in IE6 ?" /></p>
<p>Then I asked help to the most helpful thing in the world -google!. Yeah, it gave me lots of forum links with the same problem reported. But none of them had a working solution. I tried a lot, none of the solutions I found was capable to manage six SELECT boxes and three drop downs at a time. At last I found something like below in a blog.</p>
<p><span id="more-47"></span></p>
<blockquote><p><em>Windowed controls in IE will always cover DHTML layers. That means if you have a DIV that pops up or floats on the page and it intersects with a windowed control (such as the common SELECT box), the windowed control</em><em> will obscure the DIV, no matter what zIndex you have set for  each element. </em></p></blockquote>
<p class="style4" align="left">That is, in IE6 SELECT box was considered to be a windowed element and they have changed it to a windowless element in IE7. The problem is based on the historical fact that form fields have typically been rendered by the operating system/windowing system, where everything else on the page is rendered by the browser. This for a long time caused problems because the OS rendered form fields would draw on top of everything since the operating system has no idea what elements on the page are being drawn.</p>
<p class="style4" align="left">
<p class="style4" align="left"><strong>So..  What&#8217;s the solution..?</strong></p>
<blockquote>
<p class="style4" style="font-size: 16px"><strong>We can overcome this problem by using <em>iframe</em>.<em> iframe</em> can exist in both the zIndex of windowed controls and the zIndex of regular HTML elements</strong></p>
</blockquote>
<p class="style4">All we have to do is to <span class="style5">make the drop down menus called  in an IFRAME</span>. The IFRAME control has a unique nature in IE6.  It can exist in both the zIndex of windowed controls and the zIndex of regular HTML elements.  Simply put, you can shim an IFRAME under your DIV. The IFRAME will block out the windowed control. I was not ready to try my luck on Javascript. I just created HTML files with only the drop down items and called it to the main page using IFRAME. I used a simple Javascript to show the menu and CSS to format the menu items.</p>
<p>Here is an example:</p>
<p class="style7"><strong>HTML PART:</strong></p>
<blockquote>
<p class="script">&lt;head&gt;<br />
<span class="style8">&lt;script language=&#8221;</span><span class="style9">JavaScript</span><span class="style8">&#8221; src=&#8221;</span><span class="style9">mm_menu.js</span><span class="style8">&#8220;&gt;&lt;/script&gt;</span><br />
&lt;link href=&#8221;<span class="style9">./cssDropdown.css</span>&#8221; rel=&#8221;<span class="style9">stylesheet&#8221;</span> type=&#8221;<span class="style9">text/css</span>&#8221; /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
<span class="style10">&lt;a href=</span><span class="style9">&#8220;#&#8221;</span> <span class="style10">onmouseover=</span>&#8220;<span class="style9">MM_menuShowMenu(&#8216;ContainerDropMenu2&#8242;, &#8216;Drop2&#8242;,0,29);</span>&#8220;<span class="style10">&gt;</span> <span class="style11">DROP-2</span><span class="style10">&lt;/a&gt;</span><br />
&lt;div id=&#8221;<span class="style9">ContainerDropMenu2</span>&#8220;&gt;<br />
<strong>&lt;div id=&#8221;<span class="style9">Drop2</span>&#8221; onmouseout=&#8221;<span class="style9">MM_menuStartTimeout(1000);</span>&#8221; onmouseover=&#8221;<span class="style9">MM_menuResetTimeout();</span>&#8220;&gt;</strong><br />
<span class="style18">&lt;iframe src=&#8221;</span><span class="style19">drop2.html</span><span class="style18">&#8221; width=&#8221;150px&#8221; height=&#8221;127px&#8221; scrolling=&#8221;No&#8221; frameborder=&#8221;0&#8243; &gt; &lt;/iframe&gt;</span><br />
<strong>&lt;/div&gt;</strong><br />
&lt;/div&gt;<br />
&lt;/body&gt;</p></blockquote>
<p class="style5"><strong>DROP2.HTML:</strong></p>
<blockquote>
<p class="script">&lt;head&gt;<br />
&lt;link href=&#8221;<span class="style9">./cssDropdown.css</span>&#8221; rel=&#8221;<span class="style9">stylesheet</span>&#8221; type=&#8221;<span class="style9">text/css</span>&#8221; /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#8221;<span class="style9">DropMenu1</span>&#8221; class=&#8221;<span class="style9">links</span>&#8220;&gt;<br />
<span class="style10">&lt;a href=&#8221;"</span> id=&#8221;<span class="style9">Drop1_Item_0</span>&#8221; target=&#8221;<span class="style9">_parent</span>&#8220;<span class="style10">&gt;</span> <span class="style11">FIRST OPTION</span> <span class="style10">&lt;/a&gt;</span> &lt;br /&gt;<br />
<span class="style10">&lt;a href=</span>&#8220;<span class="style9">homevalue_request.php</span>&#8221; id=&#8221;<span class="style9">Drop1_Item_1</span>&#8221; target=&#8221;<span class="style9">_parent</span>&#8220;<span class="style10">&gt;</span> <span class="style11">SECOND OPTION</span> <span class="style10">&lt;/a&gt;</span> &lt;br /&gt;<br />
<span class="style10">&lt;a href=</span>&#8220;<span class="style9">testimonials.php</span>&#8221; id=&#8221;<span class="style9">Drop1_Item_2</span>&#8221; target=&#8221;<span class="style9">_parent</span>&#8220;<span class="style10">&gt;</span> <span class="style11">THIRD OPTION </span><span class="style10">&lt;/a&gt; </span>&lt;br /&gt;<br />
<span class="style10">&lt;a href=</span>&#8220;<span class="style9">contactus.php</span>&#8221; id=&#8221;<span class="style9">Drop1_Item_3</span>&#8221; target=&#8221;<span class="style9">_parent</span>&#8220;<span class="style10">&gt;</span> <span class="style11">FOURTH AND FINAL OPTION </span><span class="style10">&lt;/a&gt;</span><br />
&lt;/div&gt;<br />
&lt;/body&gt;</p></blockquote>
<p class="script">
<p class="script">If the DIV has transparent areas, you&#8217;ll want those areas to punch through the IFRAME to the page background.  There are two ways you can make an IFRAME transparent.  The one that works for this situation is to set the style object&#8217;s filter property:</p>
<p><em>iframe</em>.style.filter=&#8217;progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)&#8217;;</p>
<p>This in effect makes the entire IFRAME transparent, <strong>but it will still block out the windowed controls</strong>.  The other technique, which uses the IFRAME element&#8217;s ALLOWTRANSPARENCY attribute, actually pertains to making the interior page background of the IFRAME transparent, so that any content <em>inside</em> the IFRAME can have transparency.  However, this mode changes the nature of the IFRAME and it no longer serves our purpose for blocking out windowed controls.</p>
<p class="style4">I had to spent two days to solve this problem. I have  the sample files attached as a zip folder. Please <strong><a title="Dropdown" href="http://thedesignsuperhero.com/blog/wp-content/uploads/2008/02/dropdown_iframe.zip">DOWNLOAD</a></strong> and go through it. There are three drop downs in the menu. In DROP1 and DROP2. I have used IFRAME to display it correctly and DROP3 is an ordinary CSS drop down.</p>
<p class="style4">Still I&#8217;m looking for a better solution. Have a better  solution? Please share it with me..</p>
<p>
<script type="text/javascript"><!--
google_ad_client = "pub-4033272750691702";
/* 468x60, created 29/09/08 */
google_ad_slot = "9117708395";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>
<hr />
<div class="sponsered">
Subscribe for <a href="http://www.testking.com/CISA.htm">testking CISM</a> training and get certified in days. Also download <a href="http://www.testking.com/HP0-J33.htm">testking HP0-J33</a> dumps and <a href="http://www.testking.com/JN0-342.htm">testking JN0-342</a> sample test for practice.</p>
</div>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://thedesignsuperhero.com/2008/04/tutorial-to-create-a-pretty-cool-simple-horizontal-css-menu/" rel="bookmark" title="April 18, 2008">Tutorial to create a pretty cool, simple, horizontal CSS menu</a></li>
<li><a href="http://thedesignsuperhero.com/2008/01/the-most-usefull-firefox-addons-for-webmasters/" rel="bookmark" title="January 16, 2008">the most useful firefox addons for webmasters</a></li>
<li><a href="http://thedesignsuperhero.com/2008/04/3-free-tools-to-make-ie-bug-fixing-easy-ie-tester-ie-netrenderer-and-ie-tab/" rel="bookmark" title="April 25, 2008">3 free tools to make IE bug fixing easy- IE Tester, IE NetRenderer and IE Tab</a></li>
<li><a href="http://thedesignsuperhero.com/2008/01/customize-the-flash-right-click-menu/" rel="bookmark" title="January 27, 2008">customize the flash right click menu</a></li>
<li><a href="http://thedesignsuperhero.com/2009/12/welcoming-new-year-with-a-new-design/" rel="bookmark" title="December 30, 2009">2010 is here, so is The *new* Design Superhero!</a></li>
</ul>
<p><!-- Similar Posts took 5.413 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://thedesignsuperhero.com/2008/02/drop-down-menu-disappears-behind-select-box-in-ie6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
