Published by Chris Coyier This post was originally published on August 21, 2009 and is now being being republished as it has been entirely revised . Both original methods are removed and now replaced by four new methods. The goal here is a background image on a website that covers the entire browser window at all times. Let's put some specifics on it: Fills entire page with image, no white space Scales image as needed Retains image proportions (aspect ratio) Image is centered on page Does not cause scrollbars As cross-browser compatible as possible Isn't some fancy shenanigans like Flash
Classes & Courses Timetable — Yorkshire Dance
While...End While Statement (Visual Basic) Use a While...End While structure when you want to repeat a set of statements an indefinite number of times, as long as a condition remains True . If you want more flexibility with where you test the condition or what result you test it for, you might prefer the Do...Loop Statement (Visual Basic) . If you want to repeat the statements a set number of times, the For...Next Statement (Visual Basic) is usually a better choice. If condition is True , all of the statements run until the End While statement is encountered.
1. position:static The default positioning for all elements is position:static , which means the element is not positioned and occurs where it normally would in the document. Normally you wouldn't specify this unless you needed to override a positioning that had been previously set. 2. position:relative