Forms and CSS

Building a form like this using tables is easy .. scroll down and see the source code … no table no td no tr … just plain css..

CSS is real fun to play with and powerfull too

cssform.jpg
[code lang=”css”]

body{
background-color:#fff;
font-family:Arial;
}
#frmAddress{
background-color:#fee9bd;
padding:0px;
margin:0px;
border:1px solid #FFCC66;
width:50%;
}
#frmAddress h1{
font-size:20px;
background-color:#fff8db;
padding:0px;
margin :0px;
}

.frmin{
width:150px;
background-color:#fff8db;
margin-top:2px;
margin-bottom:4px;
}

label{
background-color:#fff8db;
border:1px solid #ccc;
float: left;
width: 120px;
margin:3px;
padding:3px;
font: bold normal 13px Arial, Helvetica, sans-serif;
}

br{
clear:left;
}

[/code]

[code lang=”html”]

Edit Address



[/code]

Table-less designs are great !! Kudos to CSS

What’s so bad about using tables?

Difficult and annoying to change styles.

Positioning is difficult.

Not Search Engine Friendly.

Cannot transform the page to other markup languages easily.

Tables are slower in loading.

They are not flexible or free flowing on screen unlike layers.

Whats so good about CSS and Layers ?

Ease of use – css is far easier to learn and use rather than tables which have a complicated structure like.

Highly flexible layouts possible – css layouts are known for their flexibility. you can make the columns rows adjust as per the users screen resolution

Positioning is so powerful – layouts which were thought highly complex with native html are a breeze with css. You can position layers both relatively and absolutely

Least load time -lesser html tag elements mean lesser load times. tables have table td tr tags whereas in css only div tags are main players

Templating is made easy – you can have different templates stored in different css style sheets. Load the stylesheet as per template. This makes templating easier

Search engine friendly – since code and content are a bit separate from each other when using css, it might be considered SE friendly some drawbacks of using css layers

Tables are easy to use for beginners. Although CSS is not that tough to learn and use. Its very advanced and very often developers dont make the best use of CSS.

Table Postitions are easy to control in a webpage.Although CSS can be used to control table positions, tables are still regarded as a easy and fast way of putting up content online.

Tables preserve formatting even when the text or data is copied on to a word processing application The conclusion

Today’s Webdeveloper/Designer cant avoid css anymore due to growing demand for accessibility.

So my advice would be to make the best use of CSS wherever its apt and use tables only in areas where CSS layers cannot do the job

Started Working ..

College life sucks 🙁

Office life is going to be fun 😀

At least I will need to use my brains somewhat ?? ( at least more than what i have done for engineering 😛 )

I have joined this company called Photon who are mainly into web based services.

Got this offer via campus last year.

The stuff they do are mainly web based services. Java,J2EE, Flash PHP/MySQL, .Net etc.

Hoping to learn a lot of stuff at this job 🙂 ( apart from the bucks 😛 )

Lady luck says bbye to France finals says Italy are World Champs !!

I followed this football worldcup somewhat closely atleast for the biggies..

I noticed one thing .. France has made it to the final just by luck but France was not lucky when it mattered – the penalty shootout for the penultimate trophy.

Italy was really fortunate to score 5 out 5 in the shoot out .. France was lacking Zidane , Henry , Veirra duing the shootout..

Love your iPod too much ?? Be prepared to be electrocuted !!

Sporting an iPod isn’t always the care-free, non-stop dance party that Apple’s marketing department would like us to believe. We already knew that the devices could cause accelerated hearing loss, get you mugged on the subway, and take away your free will, and now it seems that the popular DAP may also make you an attractive target for the cruel wrath of Mother Nature. Seventeen-year-old Jason Bunch of Colorado was enjoying a lazy Sunday afternoon mowing the lawn this past weekend, when all of a sudden he woke up in bed with burns all over his face, vomiting and bleeding from his ears. Although its not clear whether the iPod he was listening to acted as an antenna for the bolt of lightning that ran through his body, its melted earbuds and a hole in the back of the case would seem to indicate that it did indeed serve as a pathway for the harmful electricity. Not only did Bunch lose hearing in one ear and his sense of equilibrium, but even worse, the incident also forced him to stand up his date for the evening — and we doubt he’ll get another chance with this particular girl after offering such an unbelievable and lame-sounding excuse for his absence.

Read