ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل karem ibrahemm , ويب ديزاينر , فالكو
تاريخ النشر: 2017/03/26
Ayoola Ilesanmi
من قبل Ayoola Ilesanmi , Systems Analyst , Fertile Tech Business Systems

{

border-top-left-radius: Xem;

}

 

(X is the length of the border)

Alaa Tabash
من قبل 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
من قبل Umair Khan , Web Developer , Innovative Designers

div{

 border:2px solid;

 border-top-left-radius: 3em;

}

Muhammad Zaid
من قبل 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

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟