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

General Discussion

Need some basic DIV help :')

Hey there,

I am trying to move a block of color up to cover some content above it.

http://imgur.com/yBUTocF

I am working in Joomla so I am doing this in an HTML editor. I am unsure how to go about this

1 Answer

It would help if you included your code, but you are going to need two divs. There are a couple of ways to do this, but since you are covering content the one you might want to use would be absolute positioning with CSS. The outside div (the blue one) would be positioned relative. The inside div (black one) would be positioned absolute with right of 0 and bottom of 0. Here is an example of what I'm talking about. Codepen