Select Page

The CSS Vertical-align Property

Use the CSS vertical-align property to control how various elements that sit next to one another on a line are displayed relative to one another. In simple terms, it’s how they are lined up. A simple example is shown below: img { vertical-align: middle; } This only...

Perfect Full Page Background

The intent here is to create a website background image that fills the browser window all the time. The details include: The page is filled with the image and zero white space The image can be scaled as needed Image proportions (aspect ratio) are retained The image is...

When Using !important is The Right Choice

Using !important The use of !important in your CSS might indicate to some that you don’t respect the rules, that you’re selfish and egotistical or just plain lazy. This isn’t necessarily true! In case you don’t know, this is how the !important rule functions: p {...