Tag: absolute position

Cheatsheet for CSS3

a. aligning an object in center of another div : margin-left: auto; margin-right: auto; b. positioning a div anywhere on the screen. top doesn’t work without position being set as absolute. position: absolute; left: 94px; top: 154px; c. rotating a image transform: rotate(-180deg); -ms-transform: rotate(-180deg); /* IE 9 */ -webkit-transform: rotate(-180deg); /* Safari and Chrome

Continue Reading →