Is this how I should be moving elements?

Is this how I should be moving elements?
0

#1

Hello. I am playing around with

and I’m not good at moving elements around on a webpage right now. I’m looking at tutorials and other resources, but I thought I would ask here as well. Is this normally how someone moves a
?

http://codepen.io/Garlicboy/pen/oLmEqX


#2

There a lot of ways to reach the desired position. However, absolute positionig should be avoided where possible. what you are trying to do here is easier to achieve by floating the elements.Try this:

#block1 {
float: left;
height: 200px;
width: 200px;
background-color: blue;
}

#block2 {
float: left;
height: 200px;
width: 200px;
background-color: yellow;
}


#3

In addition you should try to use a reset style sheet, to avoid the ugly margins that your browser puts there by default. You can pick the reset-sheet as an Option in CodePen.