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
Jimel Atkins
2,093 PointsImage 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:
2 Answers
Blair Rorani
6,658 PointsHi 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 Rorani
6,658 PointsJimel,
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.
Jimel Atkins
2,093 PointsJimel Atkins
2,093 PointsBlair.
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