0

CSS border playground

Explore border with interactive controls for width, style, and color by side or axis, compare physical and logical properties, and copy the CSS instantly.

Ask AI

CSS border playground

Response generated with openai/gpt-5.4-nano. AI can make mistakes. Always review the result.
border
HTML
<div class="border" dir="ltr"></div>
Tailwind CSS
Some classes with arbitrary values can be replaced by native classes, depending on the value and your Tailwind CSS configuration.
<div class="inline-[250px] block-[250px] bg-slate-900 border-8 border-solid border-[#9ec6f3]" dir="ltr"></div>
CSS
.border {
  inline-size: 250px;
  block-size: 250px;
  border: 8px solid #9ec6f3;
  background-color: #0f172a;
}