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

SVG in a div: horizontaly align css rule?

hi, i've created a div inside a header, and i have 3 svg's object inside, inline. Is there any rule that i should use to auto align the svg's horizontaly? thank you!

Hi Cristian,

Just to clarify - are you wanting to evenly space the images horizontally or are you just wanting them to show up next to each other as opposed to vertically?

Anthony

1 Answer

Hi Anthony, i have 3 svg's with diferent heights, and i want to aling the center of each item on horizontal axe. So, i am not concerned about the spacing, just the horizontal alignment. Thank you!