damianavila / RISE

RISE: "Live" Reveal.js Jupyter/IPython Slideshow Extension
Other
3.67k stars 416 forks source link

CSS help to remove space above heading? #541

Closed firasm closed 4 years ago

firasm commented 4 years ago

I'm having some trouble formatting my Jupyter RISE slides because there is an unreasonable amount of whitespace above my headings.

I've tried inspecting them in my Safari Web inspector, but not sure what to do with that property. I have a custom css already so I know how to use that...

I'd like to eliminate the orange bit and move the heading up.

Screen Shot 2020-03-12 at 3 19 38 PM

Thanks in advance!

parmentelat commented 4 years ago

you're going to want to set e.g. padding-top: 0px; on the outlined element your snapshot confuses me a little because the bottom pane has a div#notebook selected, but obviously the element that you want to set that property on seems to be a h4

so it must be somewhere under div#notebook, and you'll need to dig into that a little more accurately to identify the CSS selector that you will attach the padding-top: 0px; property on

firasm commented 4 years ago

Aha! got it ...

add this to the css file:

div.inner_cell>div.text_cell_render.rendered_html h1 {
    margin-top: 0px;
}
Screen Shot 2020-03-12 at 8 16 40 PM