Looking at [this question](https://mathematica.stackexchange.com/questions/2261/changing-the-background-color-of-a-framed-plot), I am reminded of a problem that I was never able to solve with obtaining a particular plot format.

The issue is that `GridLines` sit *behind* anything in `Prolog`. You can have gridlines with a colored background by giving the background a non-zero `Opacity`.

    Framed@Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True, 
      Prolog -> {LightGray, Opacity[0.5], 
        Rectangle[Scaled[{0, 0}], Scaled[{1, 1}]]}, 
      GridLines -> {None, Automatic}]

![enter image description here][1]

But if the gridlines are to be white, this isn't feasible, it seems.

    Framed@Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True, 
      Prolog -> {LightGray, Opacity[0.5], 
        Rectangle[Scaled[{0, 0}], Scaled[{1, 1}]]}, 
      GridLines -> {None, Automatic}, 
      GridLinesStyle -> Directive[AbsoluteThickness[2], White]]

![enter image description here][2]


Yes, you can use the undocumented option `Method -> {"GridLinesInFront" -> True}`, as described in [this answer](http://stackoverflow.com/a/7177607/758485), but then the gridlines go on top of the plot line as well as the background.

    Framed@Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True, 
      Prolog -> {LightGray, Opacity[0.5], 
        Rectangle[Scaled[{0, 0}], Scaled[{1, 1}]]}, 
      GridLines -> {None, Automatic}, 
      GridLinesStyle -> Directive[AbsoluteThickness[2], White], 
      Method -> {"GridLinesInFront" -> True}]

![enter image description here][3]


Is there a way to reorder the `Prolog` background or the gridlines somehow, so that white gridlines shock, but the gridlines don't go over the plotted function? 

Try as I might I was never able to replicate this format (the axis numbers *inside* the frame are a whole other question).

![enter image description here][4]


  [1]: http://i.stack.imgur.com/OkpGL.png
  [2]: http://i.stack.imgur.com/3aeVP.png
  [3]: http://i.stack.imgur.com/IREBO.png
  [4]: http://i.stack.imgur.com/9REBg.png