Avatar of areyouready344
areyouready344
Flag for United States of America asked on

how to indent borders using css or jquery?

How to indent borders using css or jquery? Similar to how this web at http://fixedheadertable.com/
CSSHTMLWeb Development

Avatar of undefined
Last Comment
areyouready344

8/22/2022 - Mon
Amick

This is done using the box-shadow inset property.
nitinsawhney

This can be done using the margin directive.

Ensure that you use a container like <pre> or <div> for it to happen

The directive would something like

margin: 0 50px;

Which means margin from top and bottom are 0 and from left and right are 50px.
Amick

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css"> 
div
{
height:100px;
width:300px;
box-shadow: 0px 1px 0px rgba(255,255,255,0.5), inset 2px 2px rgba(0,0,0,0.05) ;
border:3px solid #5b636b;
border-radius:10px;
background-color:rgb(139,148,159)
}


</style>
</head>
<body>

<div></div>

</body>
</html>


</style>
</head>
<body>

<div></div>

</body>
</html>

Open in new window

Your help has saved me hundreds of hours of internet surfing.
fblack61
areyouready344

ASKER
thanks but anything better
ASKER CERTIFIED SOLUTION
Amick

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
areyouready344

ASKER
wow, thanks Amick