<?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>web enavu &#187; Daily Tip</title>
	<atom:link href="http://web.enavu.com/category/daily-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.enavu.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 05 May 2011 01:00:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The 10 Most Useful Business Web Applications of 2011</title>
		<link>http://web.enavu.com/daily-tip/the-10-most-useful-business-web-applications-of-2011/</link>
		<comments>http://web.enavu.com/daily-tip/the-10-most-useful-business-web-applications-of-2011/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 16:56:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[News and Announcements]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1989</guid>
		<description><![CDATA[Most businesses today have to sift through thousands of web applications to find what would be useful to them, so I decided to write down which 10 applications my business couldn't live without.
]]></description>
			<content:encoded><![CDATA[<p>Most businesses today have to sift through thousands of web applications to find what would be useful to them, so I decided to write down which 10 applications my business couldn&#8217;t live without.<br />
<!-- more --><br />
You are probably already using 1-3 web applications to manage and run your business but what if there are better alternatives or just other applications you don&#8217;t know about that could potentially save you a lot of time or improve your business dramatically? Well today I will list the 10 applications any business owner or even web users needs to be aware of.</p>
<h2>1. Google Docs &#8211; <a target="_blank" href="http://docs.google.com">link</a></h2>
<p>The Google document suite is just irreplaceable in our office, from sharing documents quickly and efficiently to editing them at the same time. This tool single handedly replaced Microsoft Office overnight for us, and besides the financial savings, it yields many other benefits that my company couldn&#8217;t live without.</p>
<h2>2. Google Reader &#8211; <a target="_blank" href="http://www.google.com/reader">link</a></h2>
<p>The web is changing so fast, in the industry of web development there are new and important news every single day and you don&#8217;t want to be out of the loop. When a blog is posted and you are not subscribed to its RSS does that blog article still help you&#8230; no it doesn&#8217;t. So if you are not using RSS yet go ahead start, it will allow you to quickly skim through all the latest in any industry you want. Just go to your favorite websites and find their little RSS link. Google reader is honestly the best RSS reader by far, it allows you to keep track of everything, share with friends, and it just works.</p>
<h2>3. Freedcamp &#8211; <a target="_blank" href="http://freedcamp.com">link</a></h2>
<p>Project Management is an essential part of any business, keeping track of what&#8217;s happening and keeping everyone informed is a must. Freedcamp offers all of that for free in a beautiful package that anyone can start using today.</p>
<h2>4. Wordpress &#8211; <a target="_blank" href="http://www.wordpress.com">link</a></h2>
<p>Whether you want to keep your customers informed or you want to make a simple website for your product with WordPress you can be up and running in hours (for beginners) or minutes (for experts). It has a theme/plugin that is right for you to help you do anything you may want to do!</p>
<h2>5. Pandora &#8211; <a target="_blank" href="http://www.pandora.com">link</a></h2>
<p>I know people may complain about adding a music streaming service in this list, but I can&#8217;t lie, I use Pandora 24/7 in the office and in my car and at home. It makes it easier to work, it makes everyone else happy&#8230; it&#8217;s a win win!</p>
<h2>6. Alexa &#8211; <a target="_blank" href="http://www.alexa.com">link</a></h2>
<p>There is no feeling like that of waking up and seeing that your Alexa world ranking dropped 10k overnight. Alexa does a terrific job of monitoring the internet and keeping records of which websites are doing good and which are not. It&#8217;s especially important for you as a web user or possibly a site owner to check your Alexa ranking once in a while.</p>
<h2>7. WaveAccounting &#8211; <a target="_blank" href="http://www.waveaccounting.com">link</a></h2>
<p>WaveAccount is a beautiful FreshBooks replacement that like Freedcamp is absolutely free and awesome. WaveAccount will help you manage all those annoying things that accountants usually have to do for a bunch of money. It&#8217;s an amazing application, and its price tag is along enough to make you check it out right now.</p>
<h2>8. Google Analytics &#8211; <a target="_blank" href="http://www.google.com/analytics">link</a></h2>
<p>Knowing your audience is pretty much the first advice you will ever get from anyone in the Business industry. I have read countless books that start with some variation of &#8220;Know your audience&#8221;. With google analytics you can do just that by tracking the visitors of your website and seeing how your traffic is doing.</p>
<h2>9. Beanstalkapp &#8211; <a target="_blank" href="http://www.beanstalkapp.com">link</a></h2>
<p>You may have never heard of SVN, GIT, or Mercurial&#8230; that&#8217;s okay. What all of these Versioning systems allow you to do is keep a complete back up of your code/designs and so forth. You can see every step that was taking in modifying the Code and so forth. I promise you once in a while this is a Life Saver! Or if you just want to know who to blame for something that&#8217;s wrong with the code.</p>
<h2>10. Gmail &#8211; <a target="_blank" href="http://www.gmail.com">link</a></h2>
<p>The ultimate business user tool since 2005 (or at least that&#8217;s when i joined). Emailing has never been so powerful, fast, and free! We have thrown out Outlook a long time ago now, and haven&#8217;t missed it since.</p>
<p>We hope this list has been informative and helpful! Feel free to post comments with the applications you simply can&#8217;t live without!</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/daily-tip/the-10-most-useful-business-web-applications-of-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery focus on first field trick</title>
		<link>http://web.enavu.com/snippets/jquery-focus-on-first-field-trick/</link>
		<comments>http://web.enavu.com/snippets/jquery-focus-on-first-field-trick/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 07:32:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1954</guid>
		<description><![CDATA[I have developed quite a few Web Apps and something that I have always found useful is the ability to pre-select the first input field on the page so it's easy for the user to start filling out a form.]]></description>
			<content:encoded><![CDATA[<p>I have developed quite a few Web Apps and something that I have always found useful is the ability to pre-select the first input field on the page so it&#8217;s easy for the user to start filling out a form.<span id="more-1954"></span></p>
<p>So without further ado here is my little trick that will automatically work for any situation!</p>
<pre name="code" class="js">
$(document).ready(function(){
	$("input[type=text]:first").focus();
});
</pre>
<p>Pretty nifty little &#8220;plugin&#8221;. I&#8217;m sure you guys can use this in all kinds of situations!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/jquery-focus-on-first-field-trick/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What will 2011 mean for Web Development</title>
		<link>http://web.enavu.com/daily-tip/what-will-2011-mean-for-web-development/</link>
		<comments>http://web.enavu.com/daily-tip/what-will-2011-mean-for-web-development/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 18:53:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[News and Announcements]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1951</guid>
		<description><![CDATA[Every year I like to write a post and put in my 2 cents about the future of web development and where it is heading.]]></description>
			<content:encoded><![CDATA[<p>Every year I like to write a post and put in my 2 cents about the future of web development and where it is heading.<span id="more-1951"></span></p>
<p>This year I have to say has really been the year to see progress in the field. Why is that, well because whether we like it or not everything is moving to the web. Of course the biggest reason for that is Google and their &#8220;It has to work in the browser&#8221; attitude. I was recently talking to a couple employees in google and they have confirmed my speculations that google is working hard to make everything play nice in the browser. So what does this mean? Well it means that HTML5 is now, even though we have to use all these Fallbacks for Internet Explorer we are still using the Video tag, and the Audio tag and all that good jazz. Of course all of this will be reflected in the upcoming release of 52framework which really supports it all. Another interesting observation is the drag and drop education our users have received. A few years ago we tried a drag and drop shopping cart and we managed to confuse the hell out of our users, but now they are more understanding of the concept. The upcoming release of the Enavu Networks free project management system uses a very good amount of drag and drop for its To-Do&#8217;s application. Why is drag and drop so important for the web, well it&#8217;s simple, we have been using dragging and dropping on our desktop for decades and now it&#8217;s finally making its way into our browser.</p>
<p>Other interesting developments in the web is the Virtual Desktop. I know I am a little biased on the subject because I have worked for AlwaysOnPC.com who actually offer your own virtual linux box that is accessible with every mobile device and browser. But besides my bias I just got an iPad and guess what, I keep accessing my iMac and MacBookPro with it. I also access my computer at work (dell something) with my iMac and use both screens on one window, it&#8217;s nice. Personally I really find this to be a huge move towards the real virtual desktop. With googles notebook that has no HardDrive the ability to access a computer equipped with everything you need is more and more important. So keep an eye for computers with less and less&#8230; and virtual solutions with more and more!</p>
<p>Have yourself a great 2011, by being in the Web Development Industry you are in the real center of things.</p>
<p>Sincerely,<br />
Angel Grablev<br />
(enavu president)</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/daily-tip/what-will-2011-mean-for-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I started with jQuery Mobile Alpha</title>
		<link>http://web.enavu.com/tutorials/why-i-started-with-jquery-mobile-alpha-2/</link>
		<comments>http://web.enavu.com/tutorials/why-i-started-with-jquery-mobile-alpha-2/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 17:57:28 +0000</pubDate>
		<dc:creator>tpae</dc:creator>
				<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1926</guid>
		<description><![CDATA[With the evolution of mobile application development, the learning curve for the current generation of phones have been ever growing. From Objective-C to Android Java SDK, ASP.NET to MIDlet applications, mobile application development trend has always been moving forward with latest technologies.]]></description>
			<content:encoded><![CDATA[<p>With the evolution of mobile application development, the learning curve for the current generation of phones have been ever growing. From Objective-C to Android Java SDK, ASP.NET to MIDlet applications, mobile application development trend has always been moving forward with latest technologies. In this day and age, the learning curve for mobile application development has been ever diverse, thus it&#8217;s hard to become adept in just &#8220;mobile application development.&#8221;</p>
<p>As developers, we&#8217;re often stuck in the middle deciding, which application to make, and often, what platform. Sometimes developers in the industry sometimes doesn&#8217;t have a choice, but to make the same application for different platforms. Often, companies hire different breed of programmers, such as iPhone developers, Android developers, Blackberry developers, etc.. but can we ask ourselves, is there a better way?</p>
<p>As a web developer, I could not help but to be intrigued by <a href="http://jquerymobile.com/" target="_blank">jQuery mobile</a>.</p>
<blockquote><p>&#8220;A unified user interface system across all popular mobile device  platforms, built on the rock-solid jQuery and jQuery UI foundation. Its  lightweight code is built with progressive enhancement, and has a  flexible, easily themeable design.&#8221;</p></blockquote>
<p>According to jQuery mobile, they&#8217;re building something grand here. With evolution of HTML5, powerful javascript framework such as jQuery, and smaller learning curve, there is a great potential with such framework.</p>
<p><strong>1. Cross Platform for A-Grade phones</strong></p>
<p><img class="alignnone" src="http://cdnimages.fzilla.com.s3.amazonaws.com/1288111893-xplatform.jpg" alt="" width="500" height="500" /></p>
<p>jQuery Mobile is still in alpha phase. Currently, only a handful of the A-Grade phones support it. However, the development has been steady, and they have handful more features coming out with the next release, as well as more support for others.</p>
<p>The question now becomes, should we support older phones? Unlike old computers, people carry phones around all the time. Phones wear and tear over time, such as battery life and etc. With mobile providers offering free phones upon activation and re-activation, we know for certain that people will continue to get better phones over time.  Why support it, when we know they will be gone in few years?</p>
<p><strong>2. Customizable interface via HTML and CSS</strong></p>
<p>The advantages of designing interface through html/css has many advantages. It&#8217;s not just html, we&#8217;re talking html5. with proper rounded corners and box shadows, your app will look amazing in phones with html5 support.</p>
<p>The customizable interface made by the jQuery mobile team is also amazing. From list views to buttons, they are easily customizable, themable, and user friendly.</p>
<p><strong>3. jQuery mobile makes <em>almost </em>everything possible</strong></p>
<p>If you are a jQuery programmer, you should know that almost everything is possible to do with just jQuery and a web browser. Inside jQuery mobile, there are events which makes development a lot easier. jQuery mobile also supports static header/footer navigations not found in Blackberry Widgets or Blackberry Java development, which makes it more appealing to Blackberry developers. Did I mention, everything is 100% customizable?</p>
<p><strong>4. PhoneGap support</strong></p>
<p><a href="http://www.phonegap.com/" target="_blank">PhoneGap</a> makes things possible so that apps developed in jQuery Mobile can be used as offline apps, and they are now being accepted in iPhone App store.</p>
<blockquote><p>&#8220;PhoneGap is an open source development framework for building cross-platform mobile apps.  Build apps in HTML and JavaScript and <em>still</em> take advantage of core features in iPhone/iPod touch, iPad, Google Android, Palm, Symbian and Blackberry SDKs.&#8221;</p></blockquote>
<p>PhoneGap itself is pretty new, and it&#8217;s steadily evolving. Pretty soon, they will support better functionality for each individual OS, and with jQuery Mobile, it will be feasible to develop cross platform applications in the near future.</p>
<p><strong>Closing Remarks</strong></p>
<p>Though there are many positives to jQuery mobile, there are still few negatives. It&#8217;s still premature, not ready for production <em>yet</em>. They are to release version 1 sometime in January of 2011, and we&#8217;re hoping to see where this goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/tutorials/why-i-started-with-jquery-mobile-alpha-2/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mock Design Slice HTML CSS JavaScript &#8211; Modern Approach to Creating Websites</title>
		<link>http://web.enavu.com/daily-tip/mock-design-slice-html-css-javascript-modern-approach-to-creating-websites/</link>
		<comments>http://web.enavu.com/daily-tip/mock-design-slice-html-css-javascript-modern-approach-to-creating-websites/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 15:47:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1876</guid>
		<description><![CDATA[The optimal process I have developed after creating thousands of websites, if you follow my pattern and understand the reasoning behind it you can be making websites two to three times faster!]]></description>
			<content:encoded><![CDATA[<p>The optimal process I have developed after creating thousands of websites, if you follow my pattern and understand the reasoning behind it you can be making websites two to three times faster!<span id="more-1876"></span></p>
<h2 style="margin-bottom:4px;">My Designer Shades Have Cookie Jars</h2>
<h3><span style="color: #a4a4a4;"><em>(Mock Design Slice HTML CSS JavaScript/JQuery)</em></span></h3>
<p>Okay the acronym MDSHCJ might be hard to remember, but <strong>My Designer Shades Have Cookie Jars</strong> is pretty darn catchy. As you can see in the title this stands for Mock Design Slice HTML CSS and JavaScript/JQuery. Let&#8217;s get started, I will go over each part of this development process so you can get an idea of how it all works and how it can help you make websites faster.</p>
<h2>Mock Up</h2>
<p><a href="http://web.enavu.com/wp-content/uploads/m.jpg"><img class="alignnone size-full wp-image-1882" title="m" src="http://web.enavu.com/wp-content/uploads/m.jpg" alt="Mock Up" width="400" height="95" /></a></p>
<p>Mocking up, and planning a website is an important part of the creation of any kind of websites. Whether you are going to work with your client to come up with some rough sketches, or you are creating your own website. You need to sit down and figure out exactly what you want on the website. Whenever I am talking with designers who haven&#8217;t done this often I ask them to think about what the website does, what you are trying to get across, and what is the overall goal. If you can come up with a list of design elements and goals for the website creating a mock up will become extremely easy.</p>
<p>Start with understanding who your audience is, how often do they browse the internet, what is their skill level, what kind of website are they looking for. Then go into trying to figure out the main purposes of their visit, for example if it&#8217;s a store website the main purpose for them being there is to purchase items and pay for them. Knowing this information helps you understand what you need to make stand out and what should be placed where.</p>
<h2>Design</h2>
<p><a href="http://web.enavu.com/wp-content/uploads/d.jpg"><img class="alignnone size-full wp-image-1883" title="d" src="http://web.enavu.com/wp-content/uploads/d.jpg" alt="Design" width="400" height="95" /></a></p>
<p>Once you have created your <strong>Mock Up</strong> you are ready to move onto designing the website. Whether you use Photoshop, Fireworks, or Paint you need to start thinking about things like colors and patterns you want to use throughout your design to give it consistency and usability. Something I have found helpful when designing the website is to keep in mind you will be eventually slicing it and getting it ready for use. What this means is that staying mindful to the overall process can help you or whoever is going to slice the design to do everything in a much nicer manner. This could mean keep things in Folders, keep layers organized so that it&#8217;s easy to find elements. User rulers and slices so that the Coder can easily distinguish between the distances you used and the intentions you had. This is useful to you especially if you leave the design to marinate for a while and then come back to it, looking at all those rulers you added can remind you what you really had in mind. Also when creating the design comes the time when you need to pay attention to things like spacing, grids, colors, sizes and all the great stuff that comes with being a designer.</p>
<h2>Slice</h2>
<p><a href="http://web.enavu.com/wp-content/uploads/s.jpg"><img class="alignnone size-full wp-image-1884" title="s" src="http://web.enavu.com/wp-content/uploads/s.jpg" alt="Slice" width="400" height="95" /></a></p>
<p>Slicing is one of those things that you can do a hundred different ways and you still might find ways to improve it. Personally i have found that with every next website i make it becomes easier and easier to know what exactly i will need. If you are not familiar with slicing it&#8217;s the part where you take a design and start generating the images you will need to create your website. Whether it&#8217;s a repeating background or a submit button this is where you create your jpgs, pngs, and gifs. Keep in mind that a lot of the things in your design can likely be recreating using clean and simple CSS, and even CSS3 which with the right amount of Progressive Enhancement can be very beneficial to you and your users.</p>
<h2>HTML</h2>
<p><a href="http://web.enavu.com/wp-content/uploads/h.jpg"><img class="alignnone size-full wp-image-1885" title="h" src="http://web.enavu.com/wp-content/uploads/h.jpg" alt="HTML" width="400" height="95" /></a></p>
<p>The HTML is my favorite part of this process, because it is very precise and beautiful if you do it right. I first start by breaking down the components of my design. Header, footer, navigation, side column and so on. Once i have those down, i start filling them up with the smaller elements like Unordered Lists and Paragraphs with Lorem Ipsum. Something i like to do is use ID&#8217;s for the bigger elements like the header footer and main part of the website, and use classes within for the elements that i will be reusing. Use indentation of course to keep your code organized and easy to work with, and add little pretty HTML comments when you close a DIV or a UL, this will save you a lot of headaches when you come back to add/edit things in your website.</p>
<h2>CSS</h2>
<p><a href="http://web.enavu.com/wp-content/uploads/c.jpg"><img class="alignnone size-full wp-image-1886" title="c" src="http://web.enavu.com/wp-content/uploads/c.jpg" alt="CSS" width="400" height="95" /></a></p>
<p>I find CSS to be an art, just like when a painter sits down and starts adding color to his painting. With CSS i like to start by styling the Main elements as mentioned above, i keep an area in my stylesheet just for those big elements that go on every page. Then once i start adding page specific styling i create a new section with a CSS comment to distinguish between my pages. Now don&#8217;t worry too much about whether an element will be used across the board or in a single page, i have had to take elements out of the specific page code into the general code. With css i also like to use indentation to specify that the styling for the element belongs to the element above it.</p>
<h2>JavaScript/jQuery</h2>
<p><a href="http://web.enavu.com/wp-content/uploads/j.jpg"><img class="alignnone size-full wp-image-1887" title="j" src="http://web.enavu.com/wp-content/uploads/j.jpg" alt="JS" width="400" height="95" /></a></p>
<p>JavaScript and jQuery/MooTools/YUI and so on should be the last thing you add to your website. They are the interactive part of your website, they are what the user can do with the page. If you kept in mind that you will be using JavaScript for your HTML elements when you were writing the code for your page this should be a breeze as all the elements have the correct classes and ID&#8217;s for you to easily manipulate and have your final interactive website ready.</p>
<h2>Conclusion</h2>
<p>The process i have described might not be what works best for you, but if you can understand why i follow those steps, and why this works for me i think you will have a much better idea as to how to optimize your process. For example once you write your HTML you can use the <a title="CSS GENERATOR" href="http://lab.xms.pl/css-generator/">CSS GENERATOR</a> and get the CSS corresponding to your code. Also having the images once you are writing the HTML and the CSS helps with sizing things correctly, and especially with Dreamweaver you can always click browse when you are adding an img src or a css background and directly select the correct image!  Now go out and make a few websites, have fun and happy coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/daily-tip/mock-design-slice-html-css-javascript-modern-approach-to-creating-websites/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Centering a Div Vertically and Horizontally via pure CSS or with JS</title>
		<link>http://web.enavu.com/snippets/centering-a-div-vertically-and-horizontally-via-pure-css-or-with-js/</link>
		<comments>http://web.enavu.com/snippets/centering-a-div-vertically-and-horizontally-via-pure-css-or-with-js/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 17:36:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1894</guid>
		<description><![CDATA[This tutorial goes over a very simple and clean method of Centering a Div or any other block element Vertically and Horizontally.]]></description>
			<content:encoded><![CDATA[<p>This tutorial goes over a very simple and clean method of Centering a Div or any other block element Vertically and Horizontally.<span id="more-1894"></span></p>
<p>So we begin with our div. Let&#8217;s call it div_center. </p>
<pre name="code" class="html">
&lt;div class=&quot;div_center&quot;&gt;
 Our text can go in here.
&lt;/div&gt;&lt;!--div_center--&gt;
</pre>
<p>The only little problem with the pure CSS method is that we need to know the exact width of the element and a good estimation of the height. So we will need to set a width and a height, then add our padding and add those together. You can set the height to Auto and then just not fully center it Vertically. But here is the actual trick. You position the element fixed, then you add a position left of 50% and a position top of 50%. This doesn&#8217;t exactly do it just yet, now we take the width divide it by two and the resulting number we use as a negative margin left. Same thing for the height, divide and use as negative margin top. Here is a css example:</p>
<pre name="code" class="css">
.div_center {
	width:490px;
	height:390px;
	padding:5px;
	position:fixed;
	left:50%;
	top:50%;
	margin-left:-250px;
	margin-top:-200px;
}
/* alternatively */
.div_center {
	width:490px;
	height:auto;
	padding:5px;
	position:fixed;
	left:50%;
	top:35%;
	margin-left:-250px;
}
/* or if you have a better idea of the height,
assuming the elements height will be around 500px,
you want to use a higher value */

.div_center {
	width:490px;
	height:auto;
	padding:5px;
	position:fixed;
	left:50%;
	top:5%;
	margin-left:-250px;
	margin-top:-250px;
}
</pre>
<p>So now that you know how you can easily do this with pure CSS, it&#8217;s even easier with jQuery.</p>
<p>Since you have already grasped the concept from above, here is the jquery:</p>
<pre name="code" class="js">
$(".center_me").css({'margin-top':$(this).height()/-2, 'margin-left':$(this).width()/-2,"position":"fixed","left":"50%","top":"50%"});
</pre>
<p>Now all you have to worry about is making your element pretty, jquery will take care of everything else!</p>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/centering-a-div-vertically-and-horizontally-via-pure-css-or-with-js/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Web Forms: Semantic Mark Up in our Forms [part 2]</title>
		<link>http://web.enavu.com/snippets/web-forms-semantic-mark-up-in-our-forms-part-2/</link>
		<comments>http://web.enavu.com/snippets/web-forms-semantic-mark-up-in-our-forms-part-2/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 23:52:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1836</guid>
		<description><![CDATA[Creating forms can be a tricky subject, especially if you go in the table-less path. In this article we discuss the methods of creating semantic forms.]]></description>
			<content:encoded><![CDATA[<p>Creating forms can be a tricky subject, especially if you go in the table-less path. In this article we discuss the methods of creating semantic forms.<span id="more-1836"></span></p>
<p>In the first part of this series we discussed the ways we can help our users to use our forms, today we are going to review how to create forms from the perspective of a Web Developer. I would like to state that this is only one way to accomplish this and there are alternative ways.</p>
<h2>Preface</h2>
<p>Using tables is something I do not like to do unless i am truly forced to by the circumstances (like tabular data). Tables is something you definitely can do without tables, all you need is some good clean html and css. Let&#8217;s create a clean and simple form using pure html and css. And discuss other possible techniques.</p>
<h3>Semantic Form Type 1</h3>
<p>First let us lay down the HTML ground work on which we can start building our form.</p>
<pre class="html" name="code">&lt;form class="form" &gt;
    &lt;fieldset&gt;
		&lt;legend&gt;Semantic Form&lt;/legend&gt;
        &lt;div&gt;
        	&lt;label&gt;First Name:&lt;/label&gt;
            &lt;input type="text" class="field" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;label&gt;Last Name:&lt;/label&gt;
            &lt;input type="text" class="field" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;label&gt;Address:&lt;/label&gt;
            &lt;input type="text" class="field" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;label&gt;Phone:&lt;/label&gt;
            &lt;input type="text" class="field phone" /&gt;
        &lt;/div&gt;
        &lt;div&gt;
        	&lt;input type="submit" value="submit" /&gt;
        &lt;/div&gt;
    &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p>In the code above you will notice I use div&#8217;s to horizontally separate the fields. You can use unordered/ordered lists, paragraphs or any other block element.</p>
<p>Now let&#8217;s style the simple form.</p>
<pre class="css" name="code">.form { width:250px; margin:50px auto;} /* set a width for our form, and center it with some spacing above */
.form fieldset {border-top:1px solid #ccc;} /* just for styling the top of the fieldset */
.form fieldset legend {font-size:1.2em; font-weight:600; padding:0px 5px 0px 0px;} /* add some styling to form header */
.form div {clear:both; padding:10px 0px;} /*clear the floated label and input */
.form label {display:block; float:left; width:46%;} /* position the labels to the left */
.form input.field {float:left; margin-left:3%; width:47%;} /* position the input */
</pre>
<p>Keep in mind the above code has had a Eric Meyer reset which removed all margins paddings and borders. As you can see i have added a comment for what each line does in the CSS.</p>
<p>That was easy, simple clean form that just works!</p>
<h3>The Other Possible Methods</h3>
<p>The method above is one of many possible solutions. I have seen people use Unordered Lists instead of my div&#8217;s and others use paragraphs they are all block level elements so they will work just fine. In my demo you will notice the labels float to the left of our input fields, you can also create forms with the text being above each field, all you have to do is remove the float and display the label block! Vuala you have a whole new style in 2 steps!</p>
<p>You can also easily create this into a two column form by simply adding a new fieldset that has its own set width and is floated, it&#8217;s as simple as that!</p>
<h3>What&#8217;s Next</h3>
<p>In our next installment of Web Forms we will talk about validation, the good, the bad and the ugly! Stay tuned for a series that will truly talk about every single aspects of Web Forms!</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/web-forms-semantic-mark-up-in-our-forms-part-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Quick and Easy Sprites</title>
		<link>http://web.enavu.com/snippets/quick-and-easy-sprites/</link>
		<comments>http://web.enavu.com/snippets/quick-and-easy-sprites/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 16:27:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1806</guid>
		<description><![CDATA[The easiest and fastest method of using sprites in your websites.]]></description>
			<content:encoded><![CDATA[<p>The easiest and fastest method of using sprites in your websites.<span id="more-1806"></span></p>
<p>Sprites might seem like a complicated subject, and i won&#8217;t lie to you they can get confusing at times especially if you decide to make them complicated. Today i wanted to go over the simplest and fastest method there is.</p>
<p>Let&#8217;s define a sprite so it&#8217;s easier to understand the method. Sprites are a way for you to use a single image and display it in multiple ways. Here is a little graphic to illustrate it.</p>
<p><a href="http://web.enavu.com/wp-content/uploads/spritegraphic1.jpg"><img class="alignnone size-full wp-image-1808" title="spritegraphic1" src="http://web.enavu.com/wp-content/uploads/spritegraphic1.jpg" alt="sprite explain graphic 1" width="600" height="128" /></a></p>
<p>As you can see we have an element like an anchor. We usually use an anchor because on hover (cross-browser) we can switch the background position to top and have the bottom of our sprite show up, this usually contains a hover effect of a link. Let&#8217;s look at some sample code.</p>
<pre name="code" class="html">
<style>
a.facebook {display:block; float:left; background:url(http://images.fzilla.com/images/facebook.jpg) top center no-repeat; width:105px; height:34px;}
a.facebook:hover {background-position:bottom;}
</style>

<a class="facebook" href="#"></a>
</pre>
<p>So here is the information you need to know from the styling above. We make the anchor display block so that we can set a custom width and height, otherwise our width and height won&#8217;t apply. We set our background with position top center and make it not repeat although that should be unnecessary  since we are specifying the exact height and width of our sprite. Then the trick is adding the hover effect that changes only the background position to the bottom.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/snippets/quick-and-easy-sprites/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Releases a Library of Web Fonts you can use</title>
		<link>http://web.enavu.com/daily-tip/google-releases-a-library-of-web-fonts-you-can-use/</link>
		<comments>http://web.enavu.com/daily-tip/google-releases-a-library-of-web-fonts-you-can-use/#comments</comments>
		<pubDate>Thu, 20 May 2010 15:56:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1786</guid>
		<description><![CDATA[Yesterday google announced a library of fonts that use the CSS3 @font-face properties to be embedded into webpages. You can go and get some free fonts for your website from here.
So why is google releasing a library of web fonts, well it&#8217;s quite simple actually. Google promotes the newest web technologies because they are a [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday google announced a library of fonts that use the CSS3 @font-face properties to be embedded into webpages. You can go and get some free fonts for your website from <a href="http://code.google.com/webfonts">here</a>.</p>
<p>So why is google releasing a library of web fonts, well it&#8217;s quite simple actually. Google promotes the newest web technologies because they are a web company. I am assuming not too far from now they will have a wide selection of fonts to use in Google Docs (the Microsoft Word web alternative). Google is a web company and they strive on progressing the web. Our sources in the Google IO conference this year told us that google is working on a Flash alternative that will build HTML5 animations. Very excited to see how that turns out.</p>
<p>As I wrote in my <a href="http://web.enavu.com/daily-tip/fonts-web-2-0-edition/">Web Fonts 2.0</a> article there are some light down sides to using @font-face. But with googles delivery speed it&#8217;s a good bet you won&#8217;t find yourself in too much hassle.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/daily-tip/google-releases-a-library-of-web-fonts-you-can-use/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fonts Web 2.0 Edition</title>
		<link>http://web.enavu.com/daily-tip/fonts-web-2-0-edition/</link>
		<comments>http://web.enavu.com/daily-tip/fonts-web-2-0-edition/#comments</comments>
		<pubDate>Thu, 13 May 2010 16:01:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[DESIGN]]></category>
		<category><![CDATA[Daily Tip]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://web.enavu.com/?p=1697</guid>
		<description><![CDATA[Fonts are one of the most important design elements in any website. When the term Web 2.0 first started coming out a lot of logo&#8217;s were considered Web 2.0 because of a common use of certain fonts. 
Personally I see the use of certain fonts in our designs as a Web 2.0 element. When Web [...]]]></description>
			<content:encoded><![CDATA[<p>Fonts are one of the most important design elements in any website. When the term Web 2.0 first started coming out a lot of logo&#8217;s were considered Web 2.0 because of a common use of certain fonts. </p>
<p>Personally I see the use of certain fonts in our designs as a Web 2.0 element. When Web 2.0 started there was a big burst of people using sIFR to display any font on their website with Flash. But flash isn&#8217;t an idea solution so things like Cufon came out that allowed you to display those fonts with JavaScript image replacement techniques. </p>
<p>Today we have the most amazing technique that works close to perfectly, and that is the @font-face CSS property that is supported by 97% of browsers. However this wasn&#8217;t always the case as this technique requires you to use a few different font formats at the same time for it to work on all browsers. This can become a rather unpleasant task but we have tools like <a href="http://typekit.com">TypeKit</a> that give us everything that is necessary to do it.</p>
<p>I had the pleasure of meeting the Founder of <a href="http://typekit.com">TypeKit</a> and the Owner of FontShop.com and after a discussion about web fonts I was very excited to write an article about fonts and how they are transforming the way we create website. </p>
<p>So let&#8217;s address the 2 known issues with using @font-face fonts. First of all the process of applying these fonts can cause a problem if the font takes time to load. The problem can play out in two ways, either the browser will use a fallback font until the font is loaded and then it will jump the new font in place after its downloaded, this can make the page jump around a little bit. The second thing is you can make the page wait until the font is loaded. With today&#8217;s fast speed internet and <a href="http://typekit.com">TypeKit</a>&#8217;s special techniques in place you will probably never have to worry about either. </p>
<p>Never used @font-face before and are worried that it&#8217;s complicated, go to <a href="http://typekit.com">TypeKit</a> register for an account and follow the steps, you will be using @font-face like a pro in minutes!</p>
<p>If you love <a href="http://typekit.com">TypeKit</a> then you will enjoy <a href="http://www.fontsquirrel.com/">FontSquirrel</a> as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://web.enavu.com/daily-tip/fonts-web-2-0-edition/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

