user7379562
user7379562

Reputation: 349

How to put current content into panel with margins?

How can I add a background and put current content of the web page in the panel (with margins) as it shown here?

Is it possible to do this trick with minimal changes of CSS stylesheet and html code?

Upvotes: 0

Views: 23

Answers (1)

Begmuhammet Kakabayev
Begmuhammet Kakabayev

Reputation: 310

Of course possible.

  1. Set background for <body>.
  2. Set width to your outermost element and margin: auto;

If you shared any code, more specific explanation would be possible.

here is example: https://jsfiddle.net/kbqcsgj8/

Upvotes: 1

Related Questions