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

Image wont center in header

Hello,

My svg arrow just as guil hernandez used, wont center in the header unless its size is huge. How can I fix this.

Also when i want to add a h1 heading after my gallery it wraps to the right of the images when I would like it underneath.

thanks in advance

Heres a snapshot to my code:

https://w.trhou.se/g8mxmhvtiq

2 Answers

Hi Liz,

In your .css file try:

.arrow { display: block; /* tells the content to be on its own line / margin-left: auto; / tells margins to be equal on each side */ margin-right: auto' }

Blair.

That worked!

Lastly what would be the best way to have it to the bottom of the header container. Now its centered but right in the middle of the header

Jimel,

You could try adding this to the .arrow class:

position: absolute; bottom: 0;

Without seeing your code I'm not sure what the best way to do it is.