Archive for tag 'css'

Centered horizontal menus with CSS

Source: matthewjamestaylor.com

I got an e-mail asking how to make a centered horizontal menu, using XHTML and CSS. It may sound easy, but it cause me a lot of headache before I learned how to do it. After trying a lot of "text-align:center" and "margin: 0 auto;" approaches that didn't work as I wanted, I realized that the trick is to think outside the box when positioning the unsorted list I use for navigation menus.

Rather than just answering the e-mail question, I want to share a link to an excellent and very well illustrated guide on how to make centered horizontal menus. The guide is written by Matthew James Taylor, and it has a no-hacks approach that keeps the code clean and efficient. A few examples are provided that you can use and learn from. Check it out, and don't miss the many other good posts in Matthew's design blog.

Video tutorials: Learn to write XHTML and CSS manually

After being asked about HTML/CSS coding tutorials for beginners, I ran across a site with a number of excellent guides: LearnWebCode.com. In a number of simple steps, you can learn the basics of both (X)HTML and CSS, and along with the texts you can find a number of videos that give you a visual guide on how it works. After viewing several videos and reading a number of the tutorial posts, I can warmly recommend it for anyone who wants to learn how to build websites from scratch using manual coding. Read more by following the links below:

XHTML and CSS tutorials (text with code examples)
CSS video tutorials
HTML video tutorials

Thanks Brad for these guides, I think that they could be really useful to a lot of aspiring site builders…

Inspiration: Examples of responsive websites

madebysplendid.com - one of the inspiring sites on the list

Through Inspirationfeed.com, I found a great article that I would like to recommend to anyone interested in the concept of responsive web design. The article is called 60 examples of responsive website design, and as the title says it features a long list of websites that adjust the design for small-screen devices in a beautiful way.

I've spent hours browsing through the sites on this list, with both my desktop computer and the mobile devices I have at hand. Some examples are simply brilliant, and most are well worth a visit!

Variant Whitespace template re-organized

Guy Rutenberg found a couple of details in the Variant Whitespace template which could be improved, and decided to create and release a modified version of it. Guy changed the code order and edited the way that the sidebar is positioned, and the result sure is an improvement. Check it out!

New template: The Grid

A new template has been added to the website template page: The Grid. It is the first template I release which is using a grid layout system, and it provides a lot of freedom for template users to create advanced multi-column layouts. As always, I have kept the code as short and simple as possible to make it easy to work with. Four layout examples have been included to give you an idea about the flexibility of using a grid system. More layout examples and a tutorial about how the grid system works (and how you create the layout you want) will be published next week.

This is what The Grid template looks like. To download the template, click the screenshot below. To read more, see a live demo or screenshots of the different layout examples, go to the The Grid template page

.PSD source files

In case anyone would want to modify the background or the sample header image that is included, here is a .zip containing the .PSD source files for both the header and the background images: the-grid-psd.zip (242 KB)

')