Friday, May 2, 2008

Good News

Websites in a Flash MascotIt's not very often that you see the News reporting on uplifting or good news. It's really a shame that the general public is so attracted to "bad news"; creating a television system where only "bad news" gets good ratings.

I did happen upon a couple great stories of good people doing things that only good people would do. There's this story of Unbelievable Sportsmanship as well a Boy Scout Doing his good turn.

Enjoy a little piece of goodness, and do the world a favor: turn off the "bad news."
-Ashton Sanders

Labels:

Thursday, May 1, 2008

CSS Scroll Box instead of iFrames

Websites in a Flash MascotYou've probably heard "iframes are horrible with search engines." Well, they are.

I recently had a client want me to create scroll boxes for their website so they could fit 1000+ words into a 300x457 pixel scroll box. How can I create this scroll box without the iframe? Well, you are about to find out.

Here is how you use CSS to create a scroll box instead of an iframe:


We're going to use a css attribute called "overflow," and by setting it to auto, it turns a normal div into a scroll box!

#scrollbox {
  width:300px;
  height:457px;
  overflow:auto;
}
<div id="scrollbox"> *enter endless amounts of words*</div>


That's it!
Enjoy

Labels: ,