Originally Posted by Excavator
100% is full width and cannot be centered. You can use other measurements, it doesn't necessarily have to be set at a px width but it does need to be smaller than it's parent or there will be nothing to center.
gotcha.. sir how about if I want to center my element from top to bottom. I did try the process I did like having margin auto from top to bottom and a smaller heigth than its parent.