Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS Make a head element to a revealjs presentation

tush

New Coder
I am new to this forum, I have some background in html,css and svg, but I am not an expert (yet).
I started working with Reveal.js in-browser presentations, and decided that I want a header for my slides.
I want the header to be at the top of (almost) each slide, and to appear something like the attached image, created with a word processor.
Untitled.002.jpeg

My html code looks like this:
[CODE lang="html" title="main HTML" highlight="8"]<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<header style="display: grid; grid-template-columns: 100px 1fr;" >
<img alt="Text" src="Hebrew_University_Logo.svg" width="50px"></img>
<p>A Title for Slide #_</p>
</header>
<p>Content</p>
<p>Lorem Ipsum</p>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
</body>
</html>[/CODE]

Question:
How do I make such header element to appear on each slide? Is there a css rule for this?
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom