News

Find out what's been happening in the world of Fat Heads. What are we up to? Where have we been? What are we working on? What's coming up?
Fat Heads share tips and techniques about HTML and CSS

So you need to build that footer menu on your website and have it neatly centre aligned. Work out the width of the menu in pixels, add that to your <ul> tag in your CSS files and set the margin-left and margin-right to auto. Easy right? But what happens if you can't determine the width of the menu becuase the menu items can be renamed, added or removed by the client? This code will centre your unordered list regardless of the width.

The HTML:

Pages