Electric Type

Multimedia

About Us

News

Help

Introduction to CSS Positioning

Page 4 — Too Much Stuff for One Little Space?

You can determine what happens when you have more stuff in a container than there's room for by using overflow. If I were to print out the complete works of Shakespeare in a 40-pixel wide, 40-pixel high <div>, what should happen? Well, that's what overflow is for.

Its values are clip, scroll, and none. The clip value means that if the contents are too large, they just get chopped off and aren't rendered. This is the default behavior of the browsers (even if the spec says differently). The scroll value places scrollbars on the parent container and allows you (the reader) to scroll through the content. This is superfantastic, since it accomplishes a good deal of what frames are used for 60 percent of the time. Plus, you (the author) don't have to make silly workarounds, like a scrollball. I've never seen the none value work correctly on any browser as of yet, but if it were to magically start working, it would cause contents to bust their way out of their parent and be rendered as if there were no walls.

next page»


Dynamic HTML  

Frames  

HTML Basics  

Stylesheets  

Tables  

XML  

Javascript  

Database Connections  

Intro To Perl  

HTML 4.0  

User Blogs

Screen Shots

Latest Updates

Contact Us

Valid HTML 4.01!
Valid CSS!

Breadcrumb

© ElectricType
Maintained by My-Hosts.com
Site map | Copyright | Disclaimer
Privacy policy | Acceptable Use Policy
Legal information.