﻿<?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>Programming By A Tool &#187; HTML</title>
	<atom:link href="http://byatool.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://byatool.com</link>
	<description>This is my recorded stumbling through ASP.Net, Framework 3.5, C# 3.0, Ajax, Javascript, and Love.  Stay, learn, destroy.  It's your life.</description>
	<lastBuildDate>Thu, 03 May 2012 17:28:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>HTML Thing&#8230; Label versus Div or Span When it Comes to Inputs</title>
		<link>http://byatool.com/lessons/html-thing-label-versus-div-or-span-when-it-comes-to-inputs/</link>
		<comments>http://byatool.com/lessons/html-thing-label-versus-div-or-span-when-it-comes-to-inputs/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 02:51:46 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Lessons]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://byatool.com/?p=1917</guid>
		<description><![CDATA[One of the things that PyCharm tells me over and over again when it comes to HTML and Inputs is that I&#8217;m just not using those &#8212;&#8212;- &#8212; labels you &#8212;- &#8212;&#8212;- excuse for a &#8212;&#8212;- programmer. (Ok, so I might be paraphrasing a bit) Now for the most part it isn&#8217;t the end of [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things that <a href="http://www.jetbrains.com/pycharm/">PyCharm</a> tells me over and over again when it comes to HTML and Inputs is that I&#8217;m just not using those &#8212;&#8212;- &#8212; labels you &#8212;- &#8212;&#8212;- excuse for a &#8212;&#8212;- programmer.  (Ok, so I might be paraphrasing a bit) Now for the most part it isn&#8217;t the end of days if you use a span or div instead.  No kittens will be harmed either way.  However, and I admit I must be slow for not seeing this, but labels do have one advantage as told by the <a href="http://www.w3schools.com/tags/tag_label.asp">dub see three</a>:</p>
<pre>
The label element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the label element, it toggles the control.
</pre>
<p>Quite simple put, if the user clicks the label or the input, it will put focus on the input.  Yeah so not earth shattering but for people with stupid hands like me, it just gives me a better chance of actually clicking a textbox than the massive <a href="http://www.codinghorror.com/blog/2009/07/how-not-to-advertise-on-the-internet.html">Evony Online ad</a> right next to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://byatool.com/lessons/html-thing-label-versus-div-or-span-when-it-comes-to-inputs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force Embeded Video Behind A JQuery Modal Dialog</title>
		<link>http://byatool.com/lessons/force-embeded-video-behind-a-jquery-modal-dialog/</link>
		<comments>http://byatool.com/lessons/force-embeded-video-behind-a-jquery-modal-dialog/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 17:22:22 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Lessons]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://byatool.com/?p=1361</guid>
		<description><![CDATA[Another quick one, [insert joke about sexual performance... HAHAHAHEHARHAHRAH] and I&#8217;ll probably file this under &#8220;I don&#8217;t care you if need this but I&#8217;m posting it because I have a bad memory&#8221;. When you use the jQuery Modal Dialog with an embedded video, like say something from youtube, and you have a modal dialog on [...]]]></description>
			<content:encoded><![CDATA[<p>Another quick one, [insert joke about sexual performance... HAHAHAHEHARHAHRAH] and I&#8217;ll probably file this under &#8220;I don&#8217;t care you if need this but I&#8217;m posting it because I have a bad memory&#8221;.  When you use the jQuery Modal Dialog with an embedded video, like say something  from youtube, and you have a modal dialog on the same page, you might notice that the video stays in front of the dialog.  This would be considered contrary to design.  Nice thing is, it&#8217;s an easy fix:</p>
<pre>&lt;<span style="color: #800000;">object</span> <span style="color: #0000ff;">class<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"nospace"</span> <span style="color: #0000ff;">data=</span><span style="color: #ff0000;">"http://www.youtube.com/v/jU_lNNwCLp0&amp;hl=en_US&amp;fs=1&amp;" height="320" type="application/x-shockwave-flash"</span> <span style="color: #0000ff;">width=</span><span style="color: #ff0000;">"400"</span> &gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"movie"</span> <span style="color: #0000ff;">value=</span><span style="color: #ff0000;">"http://www.youtube.com/v/jU_lNNwCLp0&amp;hl=en_US&amp;fs=1&amp;"</span> /&gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name=</span><span style="color: #ff0000;">"allowFullScreen"</span> <span style="color: #0000ff;">value<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"true"</span> /&gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"allowscriptaccess"</span> <span style="color: #0000ff;">value<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"always"</span>/&gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"wmode"</span> <span style="color: #0000ff;">value<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"opaque"</span>/&gt; <span style="color: #008000;">&lt;----- RIGHT THERE LOOK SEE IT?????</span>
&lt;/<span style="color: #800000;">object</span>&gt;
</pre>
<p>It&#8217;s the last parameter in that block.  I posted the whole thing because it just seemed easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://byatool.com/lessons/force-embeded-video-behind-a-jquery-modal-dialog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Element &#8216;Embed&#8217; Is Not Supported: Embedding YouTube Video Without The Embed Tag</title>
		<link>http://byatool.com/lessons/element-embed-is-not-supported-embedding-youtube-video-without-the-embed-tag/</link>
		<comments>http://byatool.com/lessons/element-embed-is-not-supported-embedding-youtube-video-without-the-embed-tag/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 16:52:44 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Lessons]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://byatool.com/?p=1356</guid>
		<description><![CDATA[This should be quick, so don&#8217;t expect my usual charming self. If you&#8217;ve run into this problem, and chances are you have, you&#8217;re probably as frustrated as a thumbless hitchhiker. Good thing is, I have the solution and you can watch it here on video: HAHAH THAT WAS FUNNY! Yeah I&#8217;m not that big of [...]]]></description>
			<content:encoded><![CDATA[<p>This should be quick, so don&#8217;t expect my usual charming self.  If you&#8217;ve run into this problem, and chances are you have, you&#8217;re probably as frustrated as a thumbless hitchhiker.  Good thing is, I have the solution and you can <a href="http://byatool.com/wp-content/uploads/2010/04/nodog.jpg">watch it here on video:</a></p>
<p>HAHAH THAT WAS FUNNY!  Yeah I&#8217;m not that big of a bag.  I actually will give you the code.  Go figure.</p>
<pre>&lt;<span style="color: #800000;">object</span> <span style="color: #0000ff;">class<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"nospace"</span> <span style="color: #0000ff;">data=</span><span style="color: #ff0000;">"http://www.youtube.com/v/jU_lNNwCLp0&amp;hl=en_US&amp;fs=1&amp;" height="320" type="application/x-shockwave-flash"</span> <span style="color: #0000ff;">width=</span><span style="color: #ff0000;">"400"</span> &gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"movie"</span> <span style="color: #0000ff;">value=</span><span style="color: #ff0000;">"http://www.youtube.com/v/jU_lNNwCLp0&amp;hl=en_US&amp;fs=1&amp;"</span> /&gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name=</span><span style="color: #ff0000;">"allowFullScreen"</span> <span style="color: #0000ff;">value<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"true"</span> /&gt;
  &lt;<span style="color: #800000;">param</span> <span style="color: #0000ff;">name<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"allowscriptaccess"</span> <span style="color: #0000ff;">value<span style="color: #ff0000;">=</span></span><span style="color: #ff0000;">"always"</span>/&gt;
&lt;/<span style="color: #800000;">object</span>&gt;
</pre>
<p>And there it is.  Easy as something other than pie because pie isn&#8217;t f&#8212;ing easy to make.</p>
]]></content:encoded>
			<wfw:commentRss>http://byatool.com/lessons/element-embed-is-not-supported-embedding-youtube-video-without-the-embed-tag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Hit: Hiding Horizontal or Vertical scroll using CSS</title>
		<link>http://byatool.com/ui/quick-hit-hiding-horizontal-or-verticle-scroll-using-css/</link>
		<comments>http://byatool.com/ui/quick-hit-hiding-horizontal-or-verticle-scroll-using-css/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 19:19:14 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[UI]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://byatool.com/?p=438</guid>
		<description><![CDATA[If nothing else the motto for this site is, &#8220;Why was this written?&#8221; but sometimes it can also be, &#8220;I bypass the middle man and pass the savings on to you.&#8221; In this case, it has to do with a really simple way to show only on scroll bar on a section be it a [...]]]></description>
			<content:encoded><![CDATA[<p>If nothing else the motto for this site is, &#8220;Why was this written?&#8221; but sometimes it can also be, &#8220;I bypass the middle man and pass the savings on to you.&#8221; In this case, it has to do with a really simple way to show only on scroll bar on a section be it a div, span, pre tag, ect. In fact, I actually used it to for this site.</p>
<p>Here&#8217;s the problem, you have a section that you want to only show the horizontal scroll bar. Now the scroll bar is usually set with the overflow keyword in css:</p>
<pre>  <span style="color: #993300;">overflow:auto;</span></pre>
<p>But what does this do? Well if the section you have is larger than its parent (Say a pre section in a set width div), both scroll bars come up. Sometimes that&#8217;s not a bad thing but sometimes it looks really annoying if you only have two lines in it like:<br />
<img class="alignnone size-full wp-image-442" title="bat_scroll1" src="http://byatool.com/wp-content/uploads/2009/02/bat_scroll1.jpg" alt="bat_scroll1" width="613" height="104" /><br />
Since it will automatically force both scroll bars. And on top of that, the scroll bars themselves now take up space and essentially cover up some of that second line. Well there&#8217;s two ways you can go about this in order to at least allow for everything to be seen without a verticle scroll.</p>
<p>1)</p>
<p>You can use the overflow-x and overflow-y keywords:</p>
<pre>  {
    <span style="color: #993300;">overflow-y:hidden;</span>
    <span style="color: #993300;">overflow-x:auto;</span>
  }</pre>
<p>What this does is completely hides the verticle scroll bar. Now this will work very well if you have sections that are of a specific height. Problem is if the height isn&#8217;t set specifically, it will just not show the parts that would normally need the verticle scroll for. (Happens sometimes)</p>
<p><img class="alignnone size-full wp-image-443" title="bat_scroll2" src="http://byatool.com/wp-content/uploads/2009/02/bat_scroll2.jpg" alt="bat_scroll2" width="598" height="86" /></p>
<p>This brings us to the second solution:</p>
<p>B)</p>
<p>Padding.</p>
<pre>  <span style="color: #993300;">padding:8px 0px 40px 0px;</span>
  <span style="color: #993300;">overflow-x:auto;</span>
  <span style="color: #993300;">overflow-y:hidden;</span></pre>
<p>Really simple addition that will basically push the bottom of the container down so that the writing that was being hidden before (Because the scroll bar didn&#8217;t exist) is now pushed upwards causing no loss of stuff.</p>
<p><img class="alignnone size-full wp-image-441" title="bat_scroll3" src="http://byatool.com/wp-content/uploads/2009/02/bat_scroll3.jpg" alt="bat_scroll3" width="604" height="93" /></p>
<p>As you can see, now everything can be&#8230; eh seen. Sure you get that annoying bit of space, but the 40px I&#8217;m using could be a bit of overkill. You really just have to shoot for a number that allows the bottom to be shown. But hey, life is tough.</p>
]]></content:encoded>
			<wfw:commentRss>http://byatool.com/ui/quick-hit-hiding-horizontal-or-verticle-scroll-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

