No Padding Slide

css content classes

Create slides that contain no padding

Emil Hvitfeldt true

xaringan slides come with a default padding along all sides of the slide. If you want to have content that touches all the sides you can create a content class that removes padding and add it as a slide class.



    css: ["default", "style.css"]
    lib_dir: libs
    seal: FALSE
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false

class: full

# Sample Header

Duis vel viverra elit, eget hendrerit odio. Curabitur 
cursus elit nec diam vulputate, nec sollicitudin nunc 
ornare. Ut mi lectus, aliquet non ligula sed, 
lobortis vehicula erat. Morbi porttitor orci ut 
semper dapibus. Donec sodales tellus varius tortor 
varius, ornare commodo augue maximus. Vestibulum quis
bibendum mi, sit amet lobortis leo. Morbi vulputate 
orci arcu, ac lobortis sapien gravida eget. Nulla non
interdum orci, nec congue ligula.


.full {
  padding: 0px;


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Hvitfeldt (2021, May 22). Xaringan Gallery: No Padding Slide. Retrieved from

BibTeX citation

  author = {Hvitfeldt, Emil},
  title = {Xaringan Gallery: No Padding Slide},
  url = {},
  year = {2021}