Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can i make DIV border raduis for just top left corner ?

user-image
Question added by karem ibrahemm , ويب ديزاينر , فالكو
Date Posted: 2017/03/26
Moez Faisal
by Moez Faisal , مصمم جرافيك ومطور واجهات , شركة بناء وتخطيط

div {
border-top-left-radius: 10px;
border-radius: 0;
}

Ayoola Ilesanmi
by Ayoola Ilesanmi , Systems Analyst , Fertile Tech Business Systems

{

border-top-left-radius: Xem;

}

 

(X is the length of the border)

Alaa Tabash
by Alaa Tabash , مبرمج صفحات الكترونية وتطبيقات الانترنت , وزارة الإتصالات وتكنولوجيا المعلومات

<!DOCTYPE html>

<html>

<head>

<title></title>  

<style type="text/css"> 

   .di{ 

 display: inline-block; 

 width: 200px; 

 height: 200px; 

 border: 2px;

 background: red; 

 border-top-left-radius: 20px;  

 padding-left: 20px;

padding-top: 20px;

 

      }

 

</style>

</head>

<body>   

<!-- <input type="text" id="myInput" oninput="myFunction()"> -->

 

 

<!-- <button id="button"> show </button>  -->

<!-- <iframe src="https://www.w3schools.com" id="load" width="100%" height="590"></iframe> -->

<input type="text" id="in" onchange=" myname()" > 

<!-- <button  onclick="click() ">  </button> -->

  <p id="demo"></p>

<!-- <input type="text" id="demo" value=" 5"> -->  

<div class="di">

alaa tabash

</div>

<div class="di">

alaa tabash

</div>

<div class="di">

alaa tabash

</div>

<div class="di">

alaa tabash

</div>

<script type="text/javascript" src="alaa.js"> </script> 

 

</body>

</html>

Umair Khan
by Umair Khan , Web Developer , Innovative Designers

div{

 border:2px solid;

 border-top-left-radius: 3em;

}

Muhammad Zaid
by Muhammad Zaid , Senior Front End Developer , Royaltri Inc.

Dear Karim,

 

Border radius has 4 value i.e. border-radius: 0000;

 

First: Top-left

Second: Top-right

Third: Bottom-right

Forth: Bottom-left

 

As far as your question concern, you can  just provide border:radius: 5px 000;

 

Regards,

Muhammad Zaid

More Questions Like This