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

DIV Align. Is it still OK to use

Hi everyone

Just a quick one today. I'm just wondering if it is still viable to use alignment in the div element.

1 Answer

That method is deprecated. You should use the ALIGN property in your CSS, but not HTML. If you can, avoid using any inline CSS.

Hi John,

Thank you so much for this. I gathered that the align property would now be deprecated as it seems a bit old world method of aligning elements.

I just wasn't 100% as I'm currently doing the CSS Fundamentals deep dive and there was mention of the align property, maybe I heard wrong.

Many thanks

Stu :D