Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full page border | CSS

Tags:

html

css

border

Isn't there a CSS way of having the page to get a border around the page, even if the content was not big enough for the page to scroll and there's still a border around the page. I think I remember I saw one CSS method before was like something > something, I don't know, do you know? lol

If you know, many thanks :)

like image 568
MacMac Avatar asked Oct 24 '25 18:10

MacMac


1 Answers

You may want to check out the following:

  • CSS Trick: Creating a Body-Border (Live Example)

It works in all modern browsers, except in IE6, where you can fail gracefully with a conditional stylesheet.

like image 72
Daniel Vassallo Avatar answered Oct 26 '25 09:10

Daniel Vassallo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!