<?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>Learn HTML Code &#187; Browser Compatability</title>
	<atom:link href="http://www.thosecodes.com/category/browser-compatability-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thosecodes.com</link>
	<description>HTML Codes and Tutorials the Easy Way</description>
	<lastBuildDate>Sun, 24 Jan 2010 22:57:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spacing Issues with Firefox and Internet Explorer</title>
		<link>http://www.thosecodes.com/spacing-issues-with-firefox-and-internet-explorer/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.thosecodes.com/spacing-issues-with-firefox-and-internet-explorer/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:32:11 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Browser Compatability]]></category>

		<guid isPermaLink="false">http://www.thosecodes.com/?p=117</guid>
		<description><![CDATA[Paragraphs can create spacing errors in the views between Firefox and Internet Explorer.  Now these browsers wont display your text the exact same in each, but I will show you how to style your CSS to make them show very similar.  The CSS code will also help images and content that you move around with [...]]]></description>
			<content:encoded><![CDATA[<p>Paragraphs can create spacing errors in the views between Firefox and Internet Explorer.  Now these browsers wont display your text the exact same in each, but I will show you how to style your CSS to make them show very similar.  The CSS code will also help images and content that you move around with margins look almost the same <span id="more-117"></span>in both browsers.</p>
<p> </p>
<p>When you declare your body, create a div, and put a paragraph in it, Firefox and Internet explorer interpret the spacing differently.  Firefox will create a space between the top of the page and the div.  Internet explorer will create a space between the div and the paragraph.  An example of this can be seen below, Internet Explorer is on the right and Firefox can be seen on the left.</p>
<p><img class="aligncenter size-full wp-image-217" title="HTML Code Browser Spacing" src="http://www.thosecodes.com/wp-content/uploads/2009/09/ffandie.gif" alt="Browser Spacing" width="500" height="313" /></p>
<p> </p>
<p>The code for you to view this is:</p>
<div class="code">&lt;html&gt;<br />
&lt;head&gt;</p>
<p>&lt;title&gt;fun with text&lt;/title&gt;</p>
<p>&lt;style type=&#8221;text/css&#8221;&gt;</p>
<p>body { margin: 0;</p>
<p>padding: 0;</p>
<p>background-color: #000;</p>
<p>text-align: center;</p>
<p>}</p>
<p>#box</p>
<p>{</p>
<p>width: 400px;</p>
<p>margin: 0 auto;</p>
<p>height: 600px;</p>
<p>padding: 0;</p>
<p>background-color: #fff;</p>
<p>}</p>
<p>&lt;/style&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;div id=&#8221;box&#8221;&gt;</p>
<p>&lt;p&gt;asdfasdfsdafsda&lt;/p&gt;</p>
<p>&lt;p&gt;Another line to test&lt;/p&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p></div>
<p>To fix this we need to give the paragraph code a style margin of 0px.  The code we would add to our CSS is:</p>
<div class="code">
p {<br />
    margin: 0px;<br />
}</div>
<p>If you want to give your paragraphs spacing you would use padding.  Changing the margin from 0px will bring you back to the same error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thosecodes.com/spacing-issues-with-firefox-and-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Properly Wrap Text Around an Image</title>
		<link>http://www.thosecodes.com/how-to-properly-wrap-text-around-an-image/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.thosecodes.com/how-to-properly-wrap-text-around-an-image/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:22:43 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Browser Compatability]]></category>

		<guid isPermaLink="false">http://www.thosecodes.com/?p=6</guid>
		<description><![CDATA[With Firefox 3 and Internet Explorer 8 wrapping text can be done two ways. You can either float it or align it. However, when you float the image the text will not wrap around it in Internet Explorer 7. The paragraph text will either appear above or below the image, depending on where it is [...]]]></description>
			<content:encoded><![CDATA[<p>With Firefox 3 and Internet Explorer 8 wrapping text can be done two ways. You can either <em>float</em> it or <em>align</em> it. However, when you float the image the text will not wrap around it in Internet Explorer 7. The paragraph text will either appear above or below the image, depending on where it is in your code. As Internet Explorer 7 phases off and people begin to use Internet Explorer 8 <span id="more-6"></span>you wont have to worry about this, but until then lets get that text wrapping in all three browsers!</p>
<p>You can either declare the <em>align</em> in the CSS or in the img tag itself. Do not declare an align in the image tag and then a float in the CSS. This will cause the text wrap to not work in Internet Explorer 7! If you wanted to put it in your CSS it would look like so:</p>
<div class="code">#imgid {<br />
align=&#8221;value&#8221;<br />
}</div>
<p>Where value is either bottom, left, middle, top, or right. Whatever you set this value to is where the <strong>image</strong> will go. For example, if you text align right, the image will push to the right of your container and then text will wrap around it from the left.</p>
<p>If you put this in the image tag, it would look like so:</p>
<div class="code">&lt;img src=&#8221;location/pic.jpg&#8221; align=&#8221;right&#8221; alt=&#8221;runner&#8221; height=&#8221;150&#8243; width=&#8221;90&#8243; /&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thosecodes.com/how-to-properly-wrap-text-around-an-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centering issues with IE and FF</title>
		<link>http://www.thosecodes.com/centering-issues-with-ie-and-ff/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.thosecodes.com/centering-issues-with-ie-and-ff/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:22:21 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Browser Compatability]]></category>

		<guid isPermaLink="false">http://www.thosecodes.com/?p=4</guid>
		<description><![CDATA[Having trouble centering the body of your page in both Internet Explorer and Firefox?
When you style your body in CSS and you do a text align: center; Firefox will not center your page in the window. However, Internet explorer will center your page. Example CSS would look like:
body {
text-align:center;
margin: 0;
padding: 0;
}
If you want to center [...]]]></description>
			<content:encoded><![CDATA[<p>Having trouble centering the body of your page in both Internet Explorer and Firefox?</p>
<p>When you style your body in CSS and you do a <em>text align: center;</em> Firefox will not center your page in the window. However, Internet explorer will center your page. Example CSS would look <span id="more-4"></span>like:</p>
<div class="code">body {<br />
text-align:center;<br />
margin: 0;<br />
padding: 0;<br />
}</div>
<p>If you want to center your body in both browsers you need to encompass all your content in one div that has a <em>margin: 0 auto;</em>. What this means is that everything in that div will shift down 0px from the top and bottom, while auto adjusting to the center of your browser from the left and right. This holds true even while your page is moved in an out by the user if he/she resizes the window.</p>
<p>Example CSS code would look like this:</p>
<div class="code">body {<br />
text-align:center;<br />
margin: 0;<br />
padding: 0;<br />
}<br />
#main {<br />
margin: 0 auto;<br />
}</div>
<p>And your HTML code would look like this:</p>
<div class="code">&lt;body&gt;<br />
&lt;div id=&#8221;main&#8221;&gt;<br />
content will go here!<br />
&lt;/div&gt;<br />
&lt;/body&gt;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thosecodes.com/centering-issues-with-ie-and-ff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Six Easy Steps to Make your Website Compatable in Multiple Browsers</title>
		<link>http://www.thosecodes.com/six-easy-steps-to-make-your-website-compatable-in-multiple-browsers/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.thosecodes.com/six-easy-steps-to-make-your-website-compatable-in-multiple-browsers/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:21:53 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[Browser Compatability]]></category>

		<guid isPermaLink="false">http://www.thosecodes.com/six-easy-steps-to-make-your-website-compatable-in-multiple-browsers/</guid>
		<description><![CDATA[Coding a website to work in both Firefox and Internet Explorer can be downright frustrating. You get your website looking good in one browser, then you or a user opens it up in another browser and you are alerted to it looking mangled and almost un-readable. To help avoid this follow these six easy tips.
 
1. [...]]]></description>
			<content:encoded><![CDATA[<p>Coding a website to work in both Firefox and Internet Explorer can be downright frustrating. You get your website looking good in one browser, then you or a user opens it up in another browser and you are alerted to it looking mangled and almost un-readable. To help avoid this follow these six easy tips.<span id="more-3"></span></p>
<p> </p>
<p>1. Know what browsers you want to code for! Look at your websites statistics and know what browsers your users are viewing your website with. Of course it would be nice to have your website look the same in every browser, but lets get realistic. This is not going to happen. Every browser looks a little different. You just need to know what the differences are and whether you can live with it or not. Obviously, if your navigation bar drops down when the user scrolls over it in Firefox, but does not drop down for Internet Explorer users then you wont be able to live with it. If you have 50 viewers using Internet Explorer 7 &amp; 8, 40 users viewing in Firefox, and 2 users viewing in Safari, then it is going to be a waste of time for you to optimize how your site looks in Safari.</p>
<p> </p>
<p>2. When coding out your website be sure to check how your website looks in each browser. This means after you put in an area that content will be held check your site. Do not wait until your site is fully coded before checking. If you wait you will find yourself having more problems and less ways of being able to fix these problems. It may take longer to code out a page when you have to check it in both browsers after every content change you do, but it will be shorter in the long run because you will not have to go back and re-code everything once it has already been completed.<strong>Check after every major change, such as content held in a div or text wrapping around an image.</strong></p>
<p><strong> </strong></p>
<p>3. K.I.S.S.! Keep it simple ________. Most users today do not need a fancy layout that will take their connection forever to download and view. They want a website that is easy to navigate and has the content that they are searching for. Do not blow your whole time developing the layout of your site. It is the knowledgable content that the visitor came for, not the fancy flash image that takes them 2 minutes to download until they can view it. Besides attracting viewers, keeping your website simple enables it to be more functional on other browsers. The more specific your commands get, some browers will not support it. Creating a website with 90% javascript may be fun for you, but if a user does not have scripting enabled on their browser they will not be able to see much of your website.</p>
<p> </p>
<p>4. Process of elimination. Do not change all of your code at once while trouble shooting your browser issues. You want to make one change at a time and view it in both browsers. The ultimate goal is to find the change that makes both browsers appear the same. This is very hard to achieve if you are changing multiple lines of code at once. If your first attempt doesn&#8217;t work, change it back to the original and try something else. Some of the most common errors with Firefox and Internet Explorer are CSS issues. Both browsers parse through your CSS differently. If you don&#8217;t have a padding or margin defined for an object in your HTML each browsers has different spacing or ways to handle the code.</p>
<p> </p>
<p>5. Make sure your tags are closed. If you want to keep your website as robust as possible for other browsers, I strongly recommend you code in XHTML. XHTML is similar to HTML, it just means you have to close all your tags and you cant shortcut on coding. Everything must be done to a tee. Though this takes longer, and can be difficult to trouble shoot what you forgot, it will make your website more robust for other browsers. Remember, if you open a paragraph tag you close it. If you open an img tag you add the <em>/ &gt; </em>to close it.</p>
<p> </p>
<p>6. Use the W3C validator to check your code. It parses through your code using the DOCTYPE you declared to tell you what problems, if any, there are. From this you can take its reccommendations and fix your code. Once it passes through the validator as XHTML or HTML transitional you can post a picture link they give you on your website. This shows visitors that you took the time to make sure your code is correct.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thosecodes.com/six-easy-steps-to-make-your-website-compatable-in-multiple-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
