Style borderTopWidth Property

Definition and Usage

borderTopWidth Set or return the border width of the element.

See also:

CSS Tutorial:CSS বর্তন

CSS Reference Manual:border-top-width property

HTML DOM Reference Manual:border property

Example

Example 1

Change the top border width of the <div> element to 10px:

document.getElementById("myDiv").style.borderTopWidth = "10px";

Try it yourself

Example 2

Change the top border width of the <div> element to thin:

document.getElementById("myDiv").style.borderTopWidth = "thin";

Try it yourself

Example 3

return border width of the <div> element:

alert(document.getElementById("myDiv").style.borderTopWidth);

Try it yourself

Syntax

return borderTopWidth property:

object.style.borderTopWidth

set borderTopWidth property:

object.style.borderTopWidth = "thin|medium|thick|length|initial|inherit"
মান বর্ণনা
thin সূক্ষ্ম সীমান্তর নির্ধারণ
medium মাঝস্থ সীমান্তর নির্ধারণ। ডিফল্ট。
thick বড় সীমান্তর নির্ধারণ
length দৈর্ঘ্যের অনুযায়ী সীমান্তরের প্রশস্ততা。
initial এই বৈশিষ্ট্যটির ডিফল্ট মান নির্ধারণ করুন। দেখুন initial
inherit এই বৈশিষ্ট্যটি পিতৃ উপাদান থেকে উত্তরণ করুন। দেখুন inherit

প্রযুক্তিগত বিবরণ

ডিফল্ট মান: medium
ফলাফল: শব্দচিহ্ন, যা উপাদানের উপরসীমান্তরের প্রশস্ততা নির্দেশ করে。
CSS সংস্করণ: CSS1

ব্রাউজার সমর্থন

Chrome এজ ফায়ারফক্স স্যাফারি ওপেরা
Chrome এজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন