Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i add border in all four side of browser page

Tags:

javascript

How do i add border in all four side of browser page no matter what browser, whatever resolution. Is there any such css or javascript code ?

like image 746
ktm Avatar asked Oct 14 '22 00:10

ktm


1 Answers

If you want border around viewport you can try the following:

<html>
<head>
  <style>
  body {position: fixed; top:0; left: 0; bottom: -5px; right: -5px; 
        border: 5px solid red;}
 </style>
</head>
<body>
</body>
</html>

Depending on what you want exactly even better might be to use something as YUI Layout Manager.

like image 174
jira Avatar answered Oct 16 '22 14:10

jira