css margin around front page - help appreciated

css margin around front page - help appreciated

by Simon Williams -
Number of replies: 2
Hi,

We customised a theme around the ocean blue standard theme.

As a result we have a 5pxl margin/border/padding that I cant work out how to remove.

I notice the moodle.org site goes right to the edge of the browser window.

If someone could let me know which variable to change I will be very grateful.

I have read the help etc but to no avail.

Thx,
Simon
Average of ratings: -
In reply to Simon Williams

Re: css margin around front page - help appreciated

by Scott Elliott -
Simon,

In your theme folder, edit the layout css file (probably styles_layout.css unless you have changed it) by adding the following lines just before the "Core" stuff:

body {
  margin:0px;
  padding:0px;
}

I think this will get the effect you want.

Scott
Average of ratings: Useful (1)
In reply to Scott Elliott

Re: css margin around front page - help appreciated

by Simon Williams -
Scott,

Thanks for the quick answer - that worked  - simple and elegant

-Simon