My first div tag

March 26, 2008 - 6:05 pm

I just learned my first div <div> tag to post a iframe lookalike webpage.

You just need to place the <div> tag in a <td> tag. For example:
1. Make a table in you html page, it will look like this, with a width of 520 pixel.

<table width=”520″ border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>

2. Place the <div> tag under a <td> tag with attributes (width=”414″). Like this. The width of the <div> tag (width:414px) should be less then the <td> tag. Otherwise the content will be much wider, you will make the table expand. The height of the <div> tag depends how big you want your window be. Should it be a 500pixel X 500 pixel. Make sure the <div> tag height and width be the same but less wider then the <td> tag.

<td width=”414″ valign=”top”><div style=”width:414px; height:355px; overflow:auto;”> your content</div></td>

3. Final:

<table width=”520″ border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td width=”414″ valign=”top”><div style=”width:414px; height:355px; overflow:auto;”>
your content

</div>
</td>
<td> </td>
<td> </td>
</tr>
</table>

4. Example:

When you’re not home, nagging little doubts can start to­ crowd your mind. Did I turn the coffee maker off? Did I set the security alarm? Are the kids doing their homework or watching television?

With a smart home, you could quiet all of these worries with a quick trip online. When you’re home, the house takes care of you by playing your favorite song whenever you walk in or instantaneously dimming the lights for a movie. Is it magic? No, it’s home automation. Smart homes connect all the devices and appliances in your home so they can communicate with each other and with you.

Anything in your home that uses electricity can be put on the home network and at your command. Whether you give that command by voice, remote control or computer, the home reacts. Most applications relate to lighting, home security, home theater and entertainment and thermostat regulation.

The idea of a smart home might make you think of George Jetson and his futuristic abode or maybe Bill Gates, who spent more than $100 million building his smart home [source: Lev-Ram]. Once a draw for the tech-savvy or the wealthy, smart homes and home automation are becoming more common. About $14 billion was spent on home networking in 2005, and analysts predict that figure will climb to more than $85 billion by 2011 [source: Regan].

Leave a Reply

You must be logged in to post a comment.