outline-offset: value;
|
<!DOCTYPE html>
<html lang="en"> <head> <style> body { background-color:#E7E9EB; } #upperdiv { height:300px; background-color:#dfdbdb; } #inner { width:130px; padding:60px; background-color:rgb(31, 145, 184); outline: 5px solid red; outline-offset: 10px; } </Style> <link rel="stylesheet" href="sample.css"> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <div id="upperdiv"> <div id="inner">This is a div inside another div used to explain outline-offset property</div> </div> </body> </html> |