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

<channel>
	<title>Zhille's Creative Dump &#187; HTML</title>
	<atom:link href="http://zhille.wordpress.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://zhille.wordpress.com</link>
	<description>A place for my art and everything related</description>
	<lastBuildDate>Sat, 21 Nov 2009 22:56:30 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='zhille.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e02cf5be21bdc01b309a440ca2dbf301?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Zhille's Creative Dump &#187; HTML</title>
		<link>http://zhille.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://zhille.wordpress.com/osd.xml" title="Zhille&#8217;s Creative Dump" />
		<item>
		<title>HTML over Flash in Firefox, Opera 9&#8230;</title>
		<link>http://zhille.wordpress.com/2008/07/23/html-over-flash/</link>
		<comments>http://zhille.wordpress.com/2008/07/23/html-over-flash/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 12:05:53 +0000</pubDate>
		<dc:creator>zhille</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[overlapping]]></category>

		<guid isPermaLink="false">http://zhille.wordpress.com/?p=7</guid>
		<description><![CDATA[While working on a website I encountered a problem some of you are familiar with - flash overlapping any HTML. I found a solution, and I need a little feedback from other people that have a problem with that. For me, it works on Opera 9, Firefox 2 and IE 6. It's an unusual thing that IE6 got things right from the beginning - kinda not used to that :)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhille.wordpress.com&blog=3336951&post=7&subd=zhille&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>While working on a website I encountered a problem some of you are familiar with &#8211; flash overlapping any HTML. I found a solution, and I need a little feedback from other people that have a problem with that. For me, it works on Opera 9, Firefox 2 and IE 6. It&#8217;s an unusual thing that IE6 got things right from the beginning &#8211; kinda not used to that <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>First &#8211; let me explain what I wanted to make in the first place. I have a flash that occupies the top part of the page, but &#8211; at the bottom of the flash I wanted a pure HTML/CSS list navigation for easy modification and SEO reasons. Here is the picture, so you can understand me better.</p>
<div id="attachment_8" class="wp-caption aligncenter" style="width: 490px"><a href="http://zhille.files.wordpress.com/2008/07/html-over-flash.jpg"><img class="size-full wp-image-8" src="http://zhille.files.wordpress.com/2008/07/html-over-flash.jpg?w=480&#038;h=189" alt="Flash example" width="480" height="189" /></a><p class="wp-caption-text">Flash example</p></div>
<p>Ok, the simplest solution is to make the CSS list navigation below the flash in HTML, and just make it&#8217;s margin negative, so it would move up. And then use the <code>wmode=transparent</code> fix, when you import the flash movie in dreamweaver just add another parameter named &#8220;wmode&#8221; and set it&#8217;s mode to &#8220;transparent&#8221;. That should allow some navigation sub-menus to overlap flash files. A reminder &#8211; if there is no background graphic in your flash file it will be transparent if wmode=transparent, so just  in case, make a bottom layer and paint it in the color you want. And if you want parts to be transparent just delete the paint. I deleted the paint where the navigation should go, just in case <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Then, just adjust the <strong>z-index</strong> on your divs, make the navigation div&#8217;s z-index higher that flash div&#8217;s z-index. I am a maniac and I used <code>z-index: 1000;</code> on the nav <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  hahaha. That should fix the most overlapping troubles, but unfortunately didn&#8217;t fix mine <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In my case, I don&#8217;t use Javascript except the one used to display the flash file(the Dreamweaver feature), my menu is manually made in xHTML/CSS with no drop-downs. So there are no fixes or whatever people use to put content above flash. So &#8211; the flash overlapped my navigation div in Firefox and Opera, I could see it (becasue I deleted the white paint in the area) , but I couldn&#8217;t click on the menu or see mouse-overs. IE6 worked &#8211; can you imagine that <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I tried playing with the z-index values over and over again, but it was no use, id didn&#8217;t work, even with the wmode fix. Then it came to me, a most stupid solution &#8211; which turned out to work! In my HTML code the #flash comes before #nav, it&#8217;s a logical thing, but logic seems to work only sometimes. I decided to try a different approach to positioning the #nav. I just made the navigation render before the flash in HTML, and positioned it relatively to move it down in it&#8217;s place using: <code>position:relative; top: 393px;/*the height of my flash*/</code>. The menu was right where I wanted it and it worked right, and displayed over the flash?! Of course, because of positioning it relatively, I got 35px of blank space (height of the #nav) where my #nav should have been &#8211; on the top of the page, and simply fixed it by giving the #container a top margin of -35px; The blank space disappeared, and all three browsers I have display the same, and display it good.</p>
<p>I just wondered if it would work in other cases, so if someone comes across a problem similar to mine, I would like to have some feedback how my quick fix works in your cases. Thanks for reading, I hope this will help someone <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/zhille.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/zhille.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/zhille.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/zhille.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/zhille.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/zhille.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/zhille.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/zhille.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/zhille.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/zhille.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/zhille.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/zhille.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zhille.wordpress.com&blog=3336951&post=7&subd=zhille&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://zhille.wordpress.com/2008/07/23/html-over-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a897935bce80e0fa0debfe8d62e745af?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">zhille</media:title>
		</media:content>

		<media:content url="http://zhille.files.wordpress.com/2008/07/html-over-flash.jpg" medium="image">
			<media:title type="html">Flash example</media:title>
		</media:content>
	</item>
	</channel>
</rss>