Saturday, May 14, 2011

Tip of the Day

One of the most efficient ways of making sidebars is: using CSS and the "table" element, and then inserting an iframe that shows a separate page, which would be your sidebar's content. You can do the same.

The coding below is the start of what you'll need:
<table>
<tr>
<td>Your left sidebar here</td>
<td>Your main content here</td>
<td>Your right sidebar here</td>
</tr>
</table>

So you should get the picture by now. Then we will add CSS to control the left and right sidebar's width, and we'll use CSS for the "iframe" elements inside the left and right sidebars to make the iframes as big as those "td" elements. That's what I did for my coding.

The "table" element should be set to as wide as you want, using CSS.

Just a tip. It's easier than doing lots of "div" elements. Hopefully useful. Your feedback is welcome.

No comments:

Post a Comment

Please keep your comments appropriate.