remove top margin using css

remove top margin using css

by Genner Cerna -
Number of replies: 5
how do i remove or set to zero top margin?
Average of ratings: -
In reply to Genner Cerna

Re: remove top margin using css

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hello,
Could you specify exactly in which element of a Moodle page you want to set top margin to zero? Body? Page? ???
Joseph
In reply to Joseph Rézeau

Re: remove top margin using css

by Genner Cerna -
the top margin, in the body...
In reply to Genner Cerna

Re: remove top margin using css

by Paul Preibisch -
Id like to set the main page to a top margin of zero, so my header sits snuggly at the top... any ideas?
In reply to Paul Preibisch

Re: remove top margin using css

by Dale Jones -
Yup.  Make sure your ../themes/<themename>/styles_layout.css contains the lines

body {
   margin: 0px;
}

HTH
In reply to Genner Cerna

Re: remove top margin using css

by Ger Tielemans -
And where do You set:
  1. the space between two blocks?
  2. the space between the left and the middle column?
  3. the space between the middle and the right column?