Graphics Photoshop Battles Art Writing Goodies Domain Clear

Scrolling Divs

Scrolling DIVS look a lot like iframes, but they can be used with PHP whereas iframes can't. Well, technically they can, but it looks awful, and we won't get into that.

First, open up your header file if you are using PHP, or if not, just the .htm or .html file. This is the code I used for my Padmé skin.

Copy and paste this code:

into your header, before the content area. It sets the DIV properties. Just put a number in front of the letters 'px'. Have no spaces between the number and 'px' and keep the space between the number and the designation { LEFT, WIDTH, TOP, HEIGHT }. LEFT determines how many pixels from the left of the window it is, width, is how wide, and so on.