<?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>Code With Design &#187; Web Development</title>
	<atom:link href="http://codewithdesign.com/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://codewithdesign.com</link>
	<description>web application development blog by Caleb Jonasson</description>
	<lastBuildDate>Thu, 15 Sep 2011 17:52:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Easyworks a new PHP front end framework</title>
		<link>http://codewithdesign.com/2009/12/22/easyworks-a-new-php-front-end-framework/</link>
		<comments>http://codewithdesign.com/2009/12/22/easyworks-a-new-php-front-end-framework/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 17:01:23 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[easyworks]]></category>
		<category><![CDATA[Framework]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=226</guid>
		<description><![CDATA[The framework is still in its V1.0 stage but it does have potential to be something. The idea behind this framework is simple site construction through a header navigation. It is supporting a validating login and register system but it does not yet have the back end coding to make it all happen. To get a copy of it for yourself you can download it here.


Related posts:<ol><li><a href='http://codewithdesign.com/2009/11/13/going-through-website-creation-part-1-layout/' rel='bookmark' title='Permanent Link: Going Through Website Creation Part 1: Layout'>Going Through Website Creation Part 1: Layout</a></li>
<li><a href='http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/' rel='bookmark' title='Permanent Link: Intro to HTML: CSS Creating a Style Sheet'>Intro to HTML: CSS Creating a Style Sheet</a></li>
<li><a href='http://codewithdesign.com/2010/09/24/check-email-function-php/' rel='bookmark' title='Permanent Link: Check Email Function PHP'>Check Email Function PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Easyworks a new PHP front end framework" data-via="" data-url="http://codewithdesign.com/2009/12/22/easyworks-a-new-php-front-end-framework/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2009/12/22/easyworks-a-new-php-front-end-framework/"></g:plusone><p>Creating a <a href="http://codewithdesign.com/pages/framework/cjd_easyworks/index.php">framework</a> was on the list of things to do and so when getting off a 7.5 hour shift I started working on the base of it. A few hours later and 7 episodes of Boston Legal later I found myself uploading it and running out the door to work another 7.5 hours. The frame work is very basic, it does link to site information, class files, function but it is not a true framework yet.<br />
The framework is still in its V1.0 stage but it does have potential to be something. The idea behind this framework is simple site construction through a header navigation. It is supporting a validating login and register system but it does not yet have the back end coding to make it all happen. To get a copy of it for yourself you can <a href="http://codewithdesign.com/pages/framework/cjd_easyworks/index.php">download it here</a>.</p>
<p><img class="alignnone size-medium wp-image-225" title="cjd_easyframeworkv1.0" src="http://codewithdesign.com/wp-content/uploads/2009/12/cjd_easyframeworkv1.0-600x400.jpg" alt="" width="540" height="360" /></p>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=226&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2009/11/13/going-through-website-creation-part-1-layout/' rel='bookmark' title='Permanent Link: Going Through Website Creation Part 1: Layout'>Going Through Website Creation Part 1: Layout</a></li>
<li><a href='http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/' rel='bookmark' title='Permanent Link: Intro to HTML: CSS Creating a Style Sheet'>Intro to HTML: CSS Creating a Style Sheet</a></li>
<li><a href='http://codewithdesign.com/2010/09/24/check-email-function-php/' rel='bookmark' title='Permanent Link: Check Email Function PHP'>Check Email Function PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2009/12/22/easyworks-a-new-php-front-end-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess Simple Protection</title>
		<link>http://codewithdesign.com/2009/10/15/htaccess-simple-protection/</link>
		<comments>http://codewithdesign.com/2009/10/15/htaccess-simple-protection/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 18:14:48 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[protection]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=110</guid>
		<description><![CDATA[Tweet.htaccess files can be used for many things, redirects, password protection, etc. However there is something that some people do not know about htaccess files. The first is that you can only allow a certain IP address to connect with certain areas of the site. The Second is that if you do not set your [...]


Related posts:<ol><li><a href='http://codewithdesign.com/2011/05/03/htaccess-handling-bad-server-requests/' rel='bookmark' title='Permanent Link: .htaccess Handling Bad Server Requests'>.htaccess Handling Bad Server Requests</a></li>
<li><a href='http://codewithdesign.com/2011/04/12/password-protecting-your-directory-with-htaccess-htpasswd/' rel='bookmark' title='Permanent Link: Password Protecting Your Directory With .htaccess &#038; .htpasswd'>Password Protecting Your Directory With .htaccess &#038; .htpasswd</a></li>
<li><a href='http://codewithdesign.com/2010/12/28/stop-direct-page-access-with-php/' rel='bookmark' title='Permanent Link: Stop Direct Page Access With PHP'>Stop Direct Page Access With PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text=".htaccess Simple Protection" data-via="" data-url="http://codewithdesign.com/2009/10/15/htaccess-simple-protection/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2009/10/15/htaccess-simple-protection/"></g:plusone><p>.htaccess files can be used for many things, redirects, password protection, etc. However there is something that some people do not know about htaccess files. The first is that you can only allow a certain IP address to connect with certain areas of the site. The Second is that if you do not set your .htaccess file up right, you may have some serious security flaws down the road.</p>
<p>Having the ability to deny all IP addresses except your own from reaching a specific page can be very handy if you are using a program such as WordPress to host your blog or a Wikigroup. (note that this works with anything that has an admin page, It could be a form or your own PHP login, admin setup.)</p>
<p>Here is the following code that will be inserted into your htaccess.</p>
<blockquote><p>AuthUserFile /dev/null<br />
AuthGroupFile /dev/null<br />
AuthName “Access Control”<br />
AuthType Basic<br />
&lt;LIMIT GET&gt;<br />
order deny.allow<br />
deny from all<br />
# Whitelist home IP address<br />
allow from 72.91.345.213<br />
# whitelist home2 IP adress<br />
allow from 172.19.2.13<br />
&lt;/LIMIT&gt;</p></blockquote>
<p>The second setup is required so people cannot view your htaccess file directly from their browser. This is a large improvement that will block people from being able to read your file and thus you will be more secure.</p>
<p>Here is the following code that is placed into your .htaccess file.</p>
<blockquote><p>&lt;Files .htaccess&gt;<br />
order allow,deny<br />
deny from all<br />
&lt;/Files&gt;</p></blockquote>
<p>By: Caleb Jonasson</p>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=110&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2011/05/03/htaccess-handling-bad-server-requests/' rel='bookmark' title='Permanent Link: .htaccess Handling Bad Server Requests'>.htaccess Handling Bad Server Requests</a></li>
<li><a href='http://codewithdesign.com/2011/04/12/password-protecting-your-directory-with-htaccess-htpasswd/' rel='bookmark' title='Permanent Link: Password Protecting Your Directory With .htaccess &#038; .htpasswd'>Password Protecting Your Directory With .htaccess &#038; .htpasswd</a></li>
<li><a href='http://codewithdesign.com/2010/12/28/stop-direct-page-access-with-php/' rel='bookmark' title='Permanent Link: Stop Direct Page Access With PHP'>Stop Direct Page Access With PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2009/10/15/htaccess-simple-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intro to HTML: CSS Creating a Style Sheet</title>
		<link>http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/</link>
		<comments>http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 19:05:45 +0000</pubDate>
		<dc:creator>Caleb Jonasson</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[creating a style sheet]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[intro to html]]></category>

		<guid isPermaLink="false">http://codewithdesign.com/?p=22</guid>
		<description><![CDATA[TweetCSS stands for cascading style sheet, this is the document that will contain all of the information required to make your site look more appealing to the people reading it. Some of the things that CSS files can do are as follows: give areas of the page or the page a background, change the font [...]


Related posts:<ol><li><a href='http://codewithdesign.com/2009/11/20/creating-a-fixed-header-and-footer/' rel='bookmark' title='Permanent Link: Creating a fixed header and Footer'>Creating a fixed header and Footer</a></li>
<li><a href='http://codewithdesign.com/2009/10/04/creating-a-single-page-login-%e2%80%93-design-view/' rel='bookmark' title='Permanent Link: Creating a Single Page login – Design View'>Creating a Single Page login – Design View</a></li>
<li><a href='http://codewithdesign.com/2009/10/08/javascript-hoirzontal-menu/' rel='bookmark' title='Permanent Link: Javascript Hoirzontal Menu'>Javascript Hoirzontal Menu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div style = 'float:left; margin-right:5px;'>            <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-text="Intro to HTML: CSS Creating a Style Sheet" data-via="" data-url="http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/" en>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><g:plusone size="tall" href="http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/"></g:plusone><p>CSS stands for cascading style sheet, this is the document that will contain all of the information required to make your site look more appealing to the people reading it. Some of the things that CSS files can do are as follows: give areas of the page or the page a background, change the font and font color, and manage placement of div tags. Take note that the page created in this example is going to be very ugly and its sole purpose is to give you a better understanding as to how CSS works.</p>
<p>For the following we are going to use this as a layout and I would recommend that you use it as a base structure that you can build your site upon for the duration of this article.</p>
<blockquote><p>&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;link href=”style.css” rel=”stylesheet” type=”text/css” /&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;div id=”container”&gt;<br />
&lt;div id=”header”&gt;<br />
&lt;h1&gt;Code With Design&lt;/h1&gt;<br />
&lt;/div&gt;<br />
&lt;div id=”sidebar1″&gt;<br />
&lt;h3&gt;navigation&lt;/h3&gt;<br />
&lt;p&gt;navigation links coming in another tutorial.&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;div id=”mainContent”&gt;<br />
&lt;h1&gt; Header 1&lt;/h1&gt;<br />
&lt;p&gt;Paragraph text.&lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;br /&gt;<br />
&lt;div id=”footer”&gt;<br />
&lt;p&gt;Code With Design&lt;/p&gt;<br />
&lt;/div&gt;</p>
<p>&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p>On this page we are going to work with styling the div tags. If you look at the code you will notice that the tags aren’t just a simple open and closing tag. These look differently because the div tags are named. This is important because the style.css file needs to know what to do with the separate content.</p>
<blockquote><p>&lt;div id=”footer”&gt;</p></blockquote>
<p>You are also going to notice that in the head of the file there is a link to the style sheet. If you where to put your pages into a separate folder you would have to change the link because it is relative. You can also call on it through a URL.</p>
<blockquote><p>&lt;link href=”style.css” rel=”stylesheet” type=”text/css” /&gt;</p></blockquote>
<p>If you need to push the link back use ../ before style.css</p>
<blockquote><p>&lt;link href=”../style.css” rel=”stylesheet” type=”text/css” /&gt;</p></blockquote>
<p>Now that we have gone over how to properly link to a style sheet it is time to take a look at what an actual style sheet. The beginning of a style sheet will contain some simple code then will start to stylize the body. All of the content within the style.css sheet will be named as divs and other parts of content such as p for paragraph or hover for content with a mouse over. The attributes that go with these separate sections are placed within curly bracers.</p>
<blockquote><p>@charset “utf-8″;<br />
body  {<br />
font: 100% Verdana, Arial, Helvetica, sans-serif;<br />
background: #ffffff;<br />
margin: 0;<br />
padding: 0;<br />
text-align: center;<br />
color: #000000;<br />
}<br />
#container {<br />
width: 900px;<br />
background: #FFFFFF;<br />
margin: 0 auto;<br />
text-align: left;<br />
}<br />
#header {<br />
background: #ffffff;<br />
padding: 0 10px 0 20px;<br />
}<br />
#header h1 {<br />
margin: 0;<br />
padding: 10px 0;<br />
}<br />
#sidebar1 {<br />
float: right;<br />
width: 200px;<br />
background: #ffffff;<br />
padding: 15px 10px;<br />
}<br />
#mainContent {<br />
margin: 0 250px 0 0;<br />
padding: 0 20px;<br />
}<br />
#footer {<br />
padding: 0 10px 0 20px;<br />
background:#ffffff;<br />
}<br />
#footer p {<br />
margin: 0;<br />
padding: 10px 0;<br />
}<br />
.fltrt {<br />
float: right;<br />
margin-left: 8px;<br />
}<br />
.fltlft {<br />
float: left;<br />
margin-right: 8px;<br />
}<br />
.clearfloat {<br />
clear:both;<br />
height:0;<br />
font-size: 1px;<br />
line-height: 0px;<br />
}</p></blockquote>
<p>Because I intend on linking an image to this page I want to make sure that the image will not have a border when I mouse over it. So in this demo I will first add an image that is linkable to the index.php page. The code looks like this.</p>
<blockquote><p>&lt;a href=”http://www.google.ca/”&gt;&lt;img src=”http://www.google.ca/intl/en_ca/images/logo.gif” alt=”&#8221; name=”image” width=”276″ height=”110″ id=”image” /&gt;&lt;/a&gt;</p></blockquote>
<p>Place the code into the main content div of your page and preview the page before changing the CSS so you know what the browser will want to do automatically. Now that you can see the large blue lines around the image you can place this code into the style.css page. As long as the code is not placed inside of another attribute it will work, it is a good idea to keep the separate styles close together based on where they come on the page so you may want header first then content followed by sidebar then footer.</p>
<blockquote><p>#mainContent img{<br />
float:left;<br />
border: 0px;<br />
text-decoration:none;<br />
}</p></blockquote>
<p>Because the CSS entered above has a hash sign followed by the content section and a space with “img” typed after; the following effects will only apply themselves to images inside of the main content. If you would like all of the images to display no border then you would have to enter the following code.</p>
<blockquote><p>img {<br />
border: 0px;<br />
}</p></blockquote>
<p>This is a very important technique when styling a page and it comes in handy quite often. If I wanted the paragraph to be indented 20 pixels and the header to only be indented 10 pixels I would use a very similar method.</p>
<blockquote><p>#mainContent h1,h2,h3{<br />
padding-left: 10px;</p>
<p>}</p>
<p>#mainContent p {<br />
padding-left:20px;<br />
}</p></blockquote>
<p>In order to give the page some boarders we could use the simple code.</p>
<blockquote><p>#container {<br />
border: 1px solid #444444;<br />
}</p></blockquote>
<p>Now you should have a simple understanding as to how CSS files can effect your document and one of the great things about them is that you can easily style all of the pages on your website by just linking back to the style sheet. This way if you need to change the look of something all you need to do is update the style.css file.</p>
<img src="http://codewithdesign.com/?ak_action=api_record_view&id=22&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://codewithdesign.com/2009/11/20/creating-a-fixed-header-and-footer/' rel='bookmark' title='Permanent Link: Creating a fixed header and Footer'>Creating a fixed header and Footer</a></li>
<li><a href='http://codewithdesign.com/2009/10/04/creating-a-single-page-login-%e2%80%93-design-view/' rel='bookmark' title='Permanent Link: Creating a Single Page login – Design View'>Creating a Single Page login – Design View</a></li>
<li><a href='http://codewithdesign.com/2009/10/08/javascript-hoirzontal-menu/' rel='bookmark' title='Permanent Link: Javascript Hoirzontal Menu'>Javascript Hoirzontal Menu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://codewithdesign.com/2009/09/30/intro-to-html-css-creating-a-style-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

