Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>css-media-vars</title>
  <link rel="stylesheet" type="text/css" href="https://unpkg.com/css-media-vars/css-media-vars.css">
</head>
<body>
  <div>Such Border</div>
</body>
</html>
 
div {
  --my-small-value: var(--media-lte-sm) 2px;
  border: var(--my-small-value, 15px) solid green;
  padding: 5px;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers