I am brand new to CSS and am using this tutorial to make an image circular. But I cannot for the life of me figure out how to center the image on my website. Any help would be greatly appreciated.
Asked
Active
Viewed 530 times
0
-
Nvm here is [a link](http://stackoverflow.com/questions/7055393/center-image-using-text-align-center) to solve the issue. – user2604504 Feb 08 '14 at 08:36
-
here you go http://jsfiddle.net/x287c/ – Karuppiah RK Feb 08 '14 at 11:45
1 Answers
0
Html COde
<center><div class="circleBase demo"></div></center>
css Code
.circleBase {
border-radius: 50%;
behavior: url(PIE.htc); /* remove if you don't care about IE8 */
}
.demo {
width: 100px;
height: 100px;
background: Blue;
border: 3px solid red;
}

Ferrakkem Bhuiyan
- 2,741
- 2
- 22
- 38