treehouse : what would you like to learn today?
Web Design Web Development iOS Development

The proper way to code this

  • I'm working on a theme, and I would like some insight on what the proper way to code this.

    What I want is a paragraph on the top left side of the webpage, then a whole other paragraph on the top right side. The same for the bottom left and right sides. So there will be a paragraph on each corner. One thing I can do is have a 'div id' for each corner and position each one, but I'm not sure if that's the proper way, show can someone please help me :)

    Thanks in advance!
  • Do you want them fixed to the corners? or will the page scroll? Do you have an example?

    You could use div's if there'll be more than one <p> per box. Doesn't really matter.

    Just position each into their respective corner. You can either fix them, or absolutely position them.

    #box-one {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    padding: 20px;
    }