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

CSS CSS Layout Techniques Positioning Schemes Absolute Positioning

Henrique Zafniksi
Henrique Zafniksi
8,560 Points

Absolute positioning with relative length units. How to prevent issues?

I will find issues if I apply absolute positioning to the navigation links but give the header a relative length unit of 100%.

The header will expand thicker but the links will always be Xpx away from the top-left corner. How to solve that problem?

2 Answers

Kevin Korte
Kevin Korte
28,148 Points

Why do the anchor links need to be positioned absolutely? It seems they shouldn't be. If you can find a solution to position them statically, or relatively.

Hey Henrique,

It would be great to see some code here to get a better sense of what you're doing / what you're trying to achieve.

Best, Alex