4

Code thus far:

#master {
position: absolute;
height: auto;
width: 1000px;
min-height: 50px;
}

I want to center the tag horizontally, but not the task. What code do I need to add to do this?

TallChinaDoll
  • 49
  • 1
  • 2
  • You can horizontally-center a `div` inside a parent `div` by giving the `div` a width, and then adding `margin: 0 auto;`: http://jsfiddle.net/spikey/FLL5Z/ – uSeRnAmEhAhAhAhAhA Mar 08 '14 at 20:10

1 Answers1

4

Add the following to your css rules

margin: 0 auto;

This will horizontally center block level elements.

JaredMcAteer
  • 21,688
  • 5
  • 49
  • 65