HTML CSS examples for CSS Widget:Border Style
Create border on each side of green
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w ww . jav a 2s .com--> background-image: url("https://www.java2s.com/style/demo/Opera.png"); background-repeat: no-repeat; margin: 0; padding: 0; } #borderleft { background: none repeat-y scroll 0 0 #93A87D; position: absolute; left: 0px; height: 100%; width: 70px; } #borderright { background: none repeat-y scroll 0 0 #93A87D; position: absolute; right: 0px; height: 100%; width: 70px; } #content { margin: 0px 70px; } </style> </head> <body> <div id="borderleft"></div> <div id="borderright"></div> <div id="content"> Lorem ipsum </div> </body> </html>