Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i written the code as follows:

.maindiv, deviceWidth {
border: 1px solid black;
display: inline-block;
transform: translate(40%, 5%);
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
-khtml-border-radius: 15px;
border-radius: 15px;
margin-bottom: 10px;
margin-top:-50px;
text-align: -webkit-center; !important;
}

radius border is working in desktop but its not working in mobile.what i need to do for mobile.please guide me as soon as possible.
Thanks
Posted

1 solution

I don't know why mobile doesn't understand border-radius. Try the following,
CSS
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;

Let me know if it works.

-KR
 
Share this answer
 

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