RSSCategory: CSS

May

12

Vertically Align Text or Elements Using CSS

Posted by Leave a Comment

In the past, getting text or other elements to align vertically was often much harder than it should have been. Luckily, modern CSS makes this task much simpler; as simple as three lines actually.

First, we’ll create a container div with a border so we can see the parent element we want to align to:

Continue Reading

Mar

8

Create a Multiple Column List with CSS

Posted by 1 Comment

If you want to create a multiple column list you don’t need tables or javascript to manipulate the list items, you can do it with a few lines of CSS. First you will want to set the width of list container:

ul {
    width: 400px;
}

Continue Reading