<?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>:: a z y u r e . c o m :: &#187; brain rubbish</title>
	<atom:link href="http://www.azyure.com/category/brain-rubbish/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.azyure.com</link>
	<description>the home of the cass</description>
	<lastBuildDate>Sun, 25 Jul 2010 19:02:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>background transparency on div with solid text &#8211; all browsers</title>
		<link>http://www.azyure.com/2010/03/24/background-transparency-on-div-with-solid-text-all-browsers/</link>
		<comments>http://www.azyure.com/2010/03/24/background-transparency-on-div-with-solid-text-all-browsers/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 10:50:44 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[transparent]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=434</guid>
		<description><![CDATA[Text in transparent box &#8211; all browsers IE6 / IE7 / FF/ Safari / Opera
The css looks like this:

div.background
  {
  width:500px;
  height:250px;
  background:url(klematis.jpg) repeat;
  border:2px solid black;
  }
div.transbox
  {
  width:400px;
  height:180px;
  margin:30px 50px;
  background-color:#ffffff;
  border:1px solid black;
  /* for IE */
  [...]]]></description>
			<content:encoded><![CDATA[<p>Text in transparent box &#8211; all browsers IE6 / IE7 / FF/ Safari / Opera</p>
<p>The css looks like this:</p>
<style type="text/css">
div.background
  {
  width:500px;
  height:250px;
  background:url(klematis.jpg) repeat;
  border:2px solid black;
  }
div.transbox
  {
  width:400px;
  height:180px;
  margin:30px 50px;
  background-color:#ffffff;
  border:1px solid black;
  /* for IE */
  filter:alpha(opacity=60);
  /* CSS3 standard */
  opacity:0.6;
  }
div.transbox p
  {
  margin:30px 40px;
  font-weight:bold;
  color:#000000;
  }
</style>
<p>and the html looks like this:</p>
<div class="background">
<div class="transbox">
<p>This is some text that is placed in the transparent box.</p>
</p></div>
</div>
<p>This came from: http://www.w3schools.com/Css/css_image_transparency.asp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2010/03/24/background-transparency-on-div-with-solid-text-all-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Bug &#8211; making a 0px high div</title>
		<link>http://www.azyure.com/2009/12/03/ie-bug-making-a-0px-high-div/</link>
		<comments>http://www.azyure.com/2009/12/03/ie-bug-making-a-0px-high-div/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 10:36:04 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>
		<category><![CDATA[life's like this]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=396</guid>
		<description><![CDATA[I found that when I was creating div&#8217;s with &#8216;clear:both&#8217; of different heights (which I use for spacing in my design)
.clear {clear: both; height: 0px; line-height: 0px; width:100%;}
.clear5 {clear: both; height: 5px; line-height: 5px; width:100%;}
.clear10 {clear: both; height: 10px; line-height: 10px; width:100%;}
.clear20 {clear: both; height: 20px; line-height: 20px; width:100%;}
Basically spanky IE makes your empty div [...]]]></description>
			<content:encoded><![CDATA[<p>I found that when I was creating div&#8217;s with &#8216;clear:both&#8217; of different heights (which I use for spacing in my design)</p>
<blockquote><p>.clear {clear: both; height: 0px;<strong> line-height: 0px</strong>; width:100%;}<br />
.clear5 {clear: both; height: 5px; <strong>line-height: 5px</strong>; width:100%;}<br />
.clear10 {clear: both; height: 10px;<strong> line-height: 10px</strong>; width:100%;}<br />
.clear20 {clear: both; height: 20px;<strong> line-height: 20px</strong>; width:100%;}</p></blockquote>
<p>Basically spanky IE makes your empty div the same height as your line height &#8211; so to fix this you need to specify line height &#8216;0px&#8217; etc etc.</p>
<p>Bad bad IE</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2009/12/03/ie-bug-making-a-0px-high-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Correct accessible image / text replacement</title>
		<link>http://www.azyure.com/2009/09/08/correct-accessible-image-text-replacement/</link>
		<comments>http://www.azyure.com/2009/09/08/correct-accessible-image-text-replacement/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 16:12:51 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=380</guid>
		<description><![CDATA[Stolen from : csswizardry
7.3.2 Gilder/Levin Method
Really great method…
By far the most robust and accessible method to date is the Gilder/Levin method (no URL available). This method maintains its integrity with all combinations of images on/off and CSS on/off.
This method works by laying an empty &#60;span&#62; over the top of the parent element with the required [...]]]></description>
			<content:encoded><![CDATA[<p>Stolen from : <a title="csswizardry" href="http://csswizardry.com/web-design+/#images" target="_blank">csswizardry</a></p>
<h4 id="images7-3-2">7.3.2 Gilder/Levin Method</h4>
<p>Really great method…</p>
<p>By far the most robust and accessible method to date is the Gilder/Levin method (no <abbr title="Uniform Resource Locator">URL</abbr> available). This method maintains its integrity with all combinations of images on/off and <abbr title="Cascading Style Sheets">CSS</abbr> on/off.</p>
<p>This method works by laying an <strong>empty</strong> <code>&lt;span&gt;</code> over the top of the parent element with the required image applied as a background to that <code>&lt;span&gt;</code>:</p>
<h5>Markup:</h5>
<pre>&lt;h1&gt;&lt;a href="./" title="Return Home"&gt;&lt;span&gt;&lt;/span&gt;Home&lt;/a&gt;&lt;/h1&gt;</pre>
<h5>CSS:</h5>
<pre>#header h1 a{
	display:block; /* Required */
	width:250px; /* Width of image in question */
	height:70px; /* Height of image in question */
	position:relative; /* Required */
}
#header h1 a span{
	position:absolute; /* Required */
	width:100%; /* Stretch full width of parent */
	height:100%; /* Stretch full height of parent */
	background:url(images/logo.gif) top left no-repeat; /* Image */
	cursor:pointer; /* Required for links to appear like links in IE */
}</pre>
<p>…but has its drawbacks:</p>
<p>There is however a drawback to this method; the empty <code>&lt;span&gt;</code>. This is bearable though as the <code>&lt;span&gt;</code> will have no impact on the usability/accessibility on the page, and will only impact ever so slightly on semantics. Now users can always see an image or text regardless of whether they have <abbr title="Cascading Style Sheets">CSS</abbr> and/or images disabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2009/09/08/correct-accessible-image-text-replacement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weird first list item indent IE 6/7 &#8211; fix!</title>
		<link>http://www.azyure.com/2009/09/03/weird-first-list-item-indent-ie-67-fix/</link>
		<comments>http://www.azyure.com/2009/09/03/weird-first-list-item-indent-ie-67-fix/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 13:46:11 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=377</guid>
		<description><![CDATA[For some reason &#8211; IE 6/7 has a bug *sometimes* of making the first item of a list indented *RANDOM*
so your list looks like this:
&#60;ul&#62;
&#60;li&#62;Item 1&#60;/li&#62;
&#60;li&#62;Item 2&#60;/li&#62;
&#60;li&#62;Item 3&#60;/li&#62;
&#60;/ul&#62;
Which will end up looking something like this (yes I just dummied it to look like this &#8211; it&#8217;s not the actual error):

 Item 1
Item 2
Item 3

To fix [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason &#8211; IE 6/7 has a bug *sometimes* of making the first item of a list indented *RANDOM*</p>
<p>so your list looks like this:</p>
<p>&lt;ul&gt;<br />
&lt;li&gt;Item 1&lt;/li&gt;<br />
&lt;li&gt;Item 2&lt;/li&gt;<br />
&lt;li&gt;Item 3&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>Which will end up looking something like this (yes I just dummied it to look like this &#8211; it&#8217;s not the actual error):</p>
<ul>
<li> Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<p>To fix it:</p>
<p>ul{<br />
min-height: 1%;<br />
}</p>
<p>ta da!<br />
 <img src='http://www.azyure.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2009/09/03/weird-first-list-item-indent-ie-67-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>accessibile css styled headings h1/h2/h3&#8217;s and menu navigation</title>
		<link>http://www.azyure.com/2009/07/14/accessibile-css-styles/</link>
		<comments>http://www.azyure.com/2009/07/14/accessibile-css-styles/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 14:57:49 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>
		<category><![CDATA[accessibile]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[headings]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[overflow:hidden]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=355</guid>
		<description><![CDATA[This is for heading/navigation etc.  It allows you to style images so they degrade gracefully (if the image is broken etc &#8211; it will show the text)
Is accessible!
Can be used on h1/h2/h3 etc for headings with a div/span or with an ul/li/a tag for a menu/navigation &#8211; can combine lots of combinations
H1 example
&#60;div id=&#8221;contentMain&#8221;&#62;
&#60;h1 class=&#8221;heading&#8221;&#62;Heading&#60;/h1&#62;
&#60;/div&#62;
#content [...]]]></description>
			<content:encoded><![CDATA[<p>This is for heading/navigation etc.  It allows you to style images so they degrade gracefully (if the image is broken etc &#8211; it will show the text)</p>
<p>Is accessible!</p>
<p>Can be used on h1/h2/h3 etc for headings with a div/span or with an ul/li/a tag for a menu/navigation &#8211; can combine lots of combinations</p>
<p><strong>H1 example</strong></p>
<p>&lt;div id=&#8221;contentMain&#8221;&gt;</p>
<p>&lt;h1 class=&#8221;heading&#8221;&gt;Heading&lt;/h1&gt;</p>
<p>&lt;/div&gt;</p>
<p>#content h1<br />
{<br />
display:block;<br />
height: 0px;<br />
padding-top:23px; (this is the height of the image)<br />
overflow:hidden;<br />
color: #444444;<br />
}<br />
#contentMain h1.heading<br />
{<br />
background:transparent url(~/url/to/the/image/heading.gif) no-repeat left top;<br />
}</p>
<p>&lt;ul id=&#8221;mainMenu&#8221;&gt;<br />
&lt;li id=&#8221;home&#8221;&gt;&lt;a href=&#8221;home.htm&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p><strong>Active Page</strong><br />
&lt;ul id=&#8221;mainMenu&#8221;&gt;<br />
&lt;li id=&#8221;home&#8221;&gt;&lt;a href=&#8221;home.htm&#8221; class=&#8221;highlighted&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>#mainMenu<br />
{<br />
float: left;<br />
list-style: none;<br />
overflow: hidden;<br />
padding-top: 40px;<br />
text-decoration: none;<br />
}</p>
<p>#mainMenu #home a<br />
{<br />
display:block;<br />
height: 40px;<br />
width: 100px;<br />
background: url(~/url/to/the/image/Home_Off.png);<br />
background-repeat: no-repeat;<br />
}<br />
#mainMenu #home a:hover, #mainMenu #home .highlighed (for when you roll over &amp; on the active page)<br />
{<br />
display:block;<br />
height: 40px;<br />
width: 100px;<br />
background: url(~/url/to/the/image/Home_Off.png);<br />
background-repeat: no-repeat;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2009/07/14/accessibile-css-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Center align site using CSS</title>
		<link>http://www.azyure.com/2009/06/17/center-align-site-using-css/</link>
		<comments>http://www.azyure.com/2009/06/17/center-align-site-using-css/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 08:25:35 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>
		<category><![CDATA[align]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=344</guid>
		<description><![CDATA[HTML bit
&#60;body&#62;
&#60;div id="wrapper"&#62;
**Rest of site goes here**
&#60;/div&#62;
&#60;/body&#62;
CSS bit
body {
text-align: center;
}
#container {
margin: 0 auto;
width: ***px;
} 
]]></description>
			<content:encoded><![CDATA[<p>HTML bit</p>
<p><code>&lt;body&gt;<br />
&lt;div id="wrapper"&gt;<br />
**Rest of site goes here**<br />
&lt;/div&gt;<br />
&lt;/body&gt;</code></p>
<p>CSS bit</p>
<p><code>body {<br />
text-align: center;<br />
}</p>
<p>#container {<br />
margin: 0 auto;<br />
width: ***px;<br />
} </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2009/06/17/center-align-site-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide div&#8217;s onload using class</title>
		<link>http://www.azyure.com/2008/10/29/hide-divs-onload-using-class/</link>
		<comments>http://www.azyure.com/2008/10/29/hide-divs-onload-using-class/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 15:15:53 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[hide div]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=268</guid>
		<description><![CDATA[&#60;script type=&#8221;text/javascript&#8221;&#62;
window.onload = hideDivs;
function hideDivs()
{
var divs = document.getElementsByTagName(&#8216;div&#8217;);
for(var no=0;no&#60;divs.length;no++)
{
if(divs[no].className==&#8217;homeHide&#8217;)
{
divs[no].style.display=&#8217;none&#8217;;
}
}
}
&#60;/script&#62;
OR
&#60;script type=&#8221;text/javascript&#8221;&#62;
window.onload = hideDivs;
function hideDivs()
{
var divs = document.getElementsByTagName(&#8216;div&#8217;);
for (var i in divs)
{
if(divs[i].className==&#8217;homeHide&#8217;)
{
divs[i].style.display=&#8217;none&#8217;;
}
}
}
&#60;/script&#62;
]]></description>
			<content:encoded><![CDATA[<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
window.onload = hideDivs;<br />
function hideDivs()<br />
{<br />
var divs = document.getElementsByTagName(&#8216;div&#8217;);<br />
for(var no=0;no&lt;divs.length;no++)<br />
{<br />
if(divs[no].className==&#8217;homeHide&#8217;)<br />
{<br />
divs[no].style.display=&#8217;none&#8217;;<br />
}<br />
}<br />
}<br />
&lt;/script&gt;</p>
<p><strong>OR</strong></p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
window.onload = hideDivs;<br />
function hideDivs()<br />
{<br />
var divs = document.getElementsByTagName(&#8216;div&#8217;);<br />
for (var i in divs)<br />
{<br />
if(divs[i].className==&#8217;homeHide&#8217;)<br />
{<br />
divs[i].style.display=&#8217;none&#8217;;<br />
}<br />
}<br />
}<br />
&lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2008/10/29/hide-divs-onload-using-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 double margin fix</title>
		<link>http://www.azyure.com/2008/09/24/ie6-double-margin-fix/</link>
		<comments>http://www.azyure.com/2008/09/24/ie6-double-margin-fix/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 17:02:53 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[code bits]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[IE 6m]]></category>
		<category><![CDATA[margin]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=246</guid>
		<description><![CDATA[add display:inline; to your floating element
]]></description>
			<content:encoded><![CDATA[<p>add <em>display:inline;</em> to your floating element</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2008/09/24/ie6-double-margin-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>photoshop &#8211; Black/White Checkered Graphic</title>
		<link>http://www.azyure.com/2008/04/20/photoshop-blackwhite-checkered-graphic/</link>
		<comments>http://www.azyure.com/2008/04/20/photoshop-blackwhite-checkered-graphic/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 17:55:07 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[brain rubbish]]></category>
		<category><![CDATA[Black/White Checkered Graphic]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://www.azyure.com/?p=156</guid>
		<description><![CDATA[Create a new doc the exact number of pixels across and down as the number of squares in the graphic you want.
Zoom in on the new canvas
Use the pencil tool, set it to 1 pixel in size and create the squares in their approx location &#8211; at this size the pencil will look like a [...]]]></description>
			<content:encoded><![CDATA[<p>Create a new doc the exact number of pixels across and down as the number of squares in the graphic you want.</p>
<p>Zoom in on the new canvas</p>
<p>Use the pencil tool, set it to 1 pixel in size and create the squares in their approx location &#8211; at this size the pencil will look like a square.</p>
<p>Once done, resample your image (Image -&gt; Image Size) to the size you want it to be &#8211; with Constrain Proportions checked and the interpolation method as Nearest Neighbor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2008/04/20/photoshop-blackwhite-checkered-graphic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: dreamscape</title>
		<link>http://www.azyure.com/2007/03/30/dreamscape/</link>
		<comments>http://www.azyure.com/2007/03/30/dreamscape/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 09:02:39 +0000</pubDate>
		<dc:creator>azyure</dc:creator>
				<category><![CDATA[brain rubbish]]></category>

		<guid isPermaLink="false">http://azyure.com/2007/03/30/dreamscape/</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://www.azyure.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-108">Password:<br />
<input name="post_password" id="pwbox-108" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.azyure.com/2007/03/30/dreamscape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
