Friday, December 10, 2010

CSS Positioning Pt. 1 - Floating

CSS positioning can seem to be complicated but its quite easy. By default in our HTML pages, elements have a 100% width and they place themselves one on top of each other.Floats exist in order to change this. Their main focus is to show elements parallel to each other. When you float something, its regular width reduces just to fit it’s content (unless specified), and stops having the full width of the browser.

Floating Content

There are three float option:
* float:left;
* float:right;
* float:none;
CSS gives us the ability to float anything. Divs, paragraphs, images, lists, any HTML tag. The way to use it is always the same, but sometimes we use floats for pieces of content and other times for blocks in order to create a layout.
Examples
#cont_wrap {
margin:0 auto;
width:900px;
}

#left_cont {
float:left;
width:300px
}

#right_cont {
float:right;
width:600px;
}

The left_cont if being floated to the left and right_cont to the right.
I also defined a width for each div to fit inside the cont_wrap.
Float none is used to override previous floats. If nothing is floating, the float none property won’t do anything.

Clearing Floats

The sister property of floats is clear. The clear property has three possibilities as well:
* clear:left;
* clear:right;
* clear:both;
This basicly tells the item to stop floating. It must be applied to the first element that will not float located after an element currently floating.

Examples

#footer {
clear:both;
margin:0 auto;
width:900px;
}

Now the footer is clearing the #left_cont and #right_cont elements.
This helps the container element (#cont_wrap), to succesfuly wrap around it’s children once again.
Float none is used to override previous floats. If nothing is floating, the float none property won’t do anything.


TO BE CONTINUED......

Sale Online, Is it for me?

We get tons of calls in regards to whether someone should sale online or not and the answer is very simple, Yes!
If you already have a physical store or running a retail business from your house, you should extend your clientele reach by having an online presence.

Electronic commerce is a reality and is not just for multimillion dollar corporations; Anyone can sell online.

But, what do you need to sell online?

  1. A product,

  2. An e-commerce store, and

  3. Time to market your store.


Lots of people have done it and so can you! Give it shot! The number of online customers is increasing by the second, don't miss out!

Wednesday, December 8, 2010

What is HTML5?

A lot of buzz has been flying around the web development community about HTML5. Years after the introduction of HTML, a lot of people wonder about what the web is and its true potential. What apps and programs would users find necessary, encouraging, and entertaining? What tools do programmers need to great more interactive and interesting websites? and ultimately? how can this be shown on a web browser?

Previously, HTML websites required plug-ins in order to watch videos, play animations, play games, or move objects on their pages. With HTML5, the next step in HTML, you can do all this with simple tags and no longer require the use of plug-ins.

HTML5, like the web itself, is in perpetual evolution, based on users’ needs and developers’ imaginations. As an open standard, HTML5 embodies some of the best aspects of the web: it works everywhere, and on any device with a modern browser. But just as you can only watch HDTV broadcasts on an HD-compatible television, you need to use an up-to-date, HTML5-compatible browser in order to enjoy sites and apps that take advantage of HTML5’s features. Thankfully, as an Internet user, you have lots of choice when it comes to web browsers — and unlike TVs, web browsers can be downloaded for free.

HTML5 is constantly evolving based on the user and programmers needs. HTML5 is standard and incorporates some of the best aspects online today. its open source and works on any modern browser. but just like HD monitors and televisions are required to view HD and 3D programs so too is it necessary to have the most up to date browser for the full use of HTML5’s features. There are various great choices for web browsers, the following being:

www.mozilla.com
www.opera.com
http://www.apple.com/safari/