Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
The major measurement is the width in this case, though, Forrest. While LNR is correct about specifying both, in your CSS you must specify the width in order to ensure that it knows how wide the element is supposed to be.
The other thing I'm not sure about (mostly because I've never tried it) is whether the centering method will work on an image since it's an inline element. Mind you, that one you'll have to play with. If the image doesn't work, a div definitely will.
|