Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutoff occurs with Safari/Firefox when using margin-top with .reveal .slides #1175

Closed
cmoulliard opened this issue Mar 25, 2015 · 3 comments
Closed

Comments

@cmoulliard
Copy link

When I use the css property margin-top to get more space top of the screen,

.reveal .slides {
  text-align: left;
  margin-top: 20px;
}

this option works very well with Google Chrome (not matter which screen resolution we are using) and also for Safari but only for a specific size

Good :
screenshot 2015-03-25 09 22 35

Bad :
screenshot 2015-03-25 09 21 23

Is there a workaround for Safari/Firefox ?

I suspect that this issue is related to the mechanism used to display the slides : zoom (width: 960px; height: 700px; zoom: 0.666285714285714;") for Google Chrome and scale / transform for Safari/Firefox (style="width: 1000px; height: 750px; left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%) scale(0.712533);)

screenshot 2015-03-25 09 03 56

@hakimel
Copy link
Owner

hakimel commented Mar 25, 2015

If you're looking to add additional spacing between the browser edge and presentation content please use the "margin" configuration option, mentioned here: https://github.com/hakimel/reveal.js#presentation-size

For example here's the demo page with an increased margin: http://lab.hakim.se/reveal-js/?margin=0.5

@cmoulliard
Copy link
Author

Sorry for my mistake. This problem only occurs for revealjs packaged with slides.com web site. Apparently the javascript of revealjs (slides.com) is different from the opensource project. If I use the revealjs javascript (version : 2.6.2), that works fine using margin property.

So this problem should be investigated with the slides.com support, isn't it ?

@hakimel
Copy link
Owner

hakimel commented Mar 25, 2015

Closing – this conversation moved to a Slides support ticket.

@hakimel hakimel closed this as completed Mar 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants