This is a quick tip for that situation where you need to center an html element whose width isn't fixed because it's determined by its content. For example an unordered list. This is the kind of problem that is easy to solve when you know the element's width beforehand. You…