Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Tables Headers and Footers

João Ignácio Brito
João Ignácio Brito
1,201 Points

Center/middle

Is there any difference between using center and middle in the valign proppertie? Tried both and both worked...

Peter Gess
Peter Gess
16,553 Points

If they both worked, you should be in good shape. There are sometimes multiple values that can communicate the same thing. Also, some browsers are able to fill in or fix minor code imperfections if things are close enough

1 Answer

Alex Koumparos
seal-mask
.a{fill-rule:evenodd;}techdegree
Alex Koumparos
Python Development Techdegree Student 36,887 Points

Hi João,

The only correct one is middle. However, because middle is what gets rendered by default, if you provide an incorrect value, such as center or nonsense, you will get middle.

However, valign is not supported at all in HTML5 and you should use the vertical-align CSS property instead. See this Stack Overflow question for more details.

Cheers

Alex