Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

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.

Saturday, April 23, 2011

Tip of the Day

Oh, yes, I'd like to announce the first "Tip of the Day". Every day, I'll post a new tip on something for developers that can be helpful.

Don't format with the <font> tag.

Many people use the font tag. It is a popular HTML tag and is easier than CSS, but it will be removed in the future from HTML (yes, and the latest browsers most likely won't support it anymore) and is not recommended by W3C. And we want our websites to be "cleanly coded", no? So if you want to style, don't forget that there is CSS out there. Like I said in an earlier blog post, CSS3 overpowers the non-standard "marquee" element.

So, I'm just telling you. No, I'm not making this up. W3Schools, the biggest developer site, says so. All styling will be done with CSS.