Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried this piece of code in Edit fiddle - JSFiddle[^]

I changed the width of .numberCircle to 35px.

Without the bootstrap maxcdn its working fine. However if I use maxcdn link its not working as shown in JSFiddle output.

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Circle</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" ></link>
<style>
.numberCircle {
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
width: 35px;
padding: 8px;
font-size: 32px;
line-height: 1em;
border: 2px solid #666;
position: relative;

}
.numberCircle .height_fix {
margin-top: 100%;
}
.numberCircle .content {
position: absolute;
left: 0;
top: 50%;
height: 100%;
width: 100%;
text-align: center;
margin-top: -16px; /* Note, this must be half the font size */
}
</style>
</head>
<body>


1




100




10


</body>
</html>

What I have tried:

I tried the same thing with maxcdn link and all div in a single column in a single row it does not work also.Kindly Help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900