Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML & CSS for printed posters

Tags:

html

css

poster

Introduction

HTML5 tools such as deck.js or reveal.js seem great for presentations, including scientific presentations where good-looking mathematics can easily be added with MathJax.

Closely related to scientific presentations are printed posters (examples), and I am wondering if it would be possible to use HTML & CSS to produce them. This seems to me to be a good idea because:

  • Images, tables, mathematics etc can all be easily included
  • Typical grid-based layouts are commonly in both posters and HTML/CSS
  • The content would be well-separated from the presentation, making re-use easier (e.g. between presentations and posters)
  • A copy of the poster could be shared on the web with little modification

The problem is that most CSS frameworks (e.g. Bootstrap) allow for fixed-width layouts but assume that the page will scroll down as far as necessary to fit all the content. On the other hand, for a poster the layout needs to behave similarly in the horizontal and vertical directions, with a grid which fills the exact dimensions of the paper.

Questions

  1. Are there any CSS frameworks that allow easy layout of content on a fixed-width & fixed-height 2D grid?
  2. Are any special techniques needed to get from the HTML page to, say, an A1 size PDF?

Edit:

I know about LaTeX and have used it to make presentations and reports. It's possible to use it for posters too, but my experience has been that it very quickly requires a lot more tweaking and knowledge if you need to alter the most basic poster layouts.

like image 833
ricklupton Avatar asked Apr 29 '13 11:04

ricklupton


People also ask

What is HTML used for?

HTML (HyperText Markup Language) is the code that is used to structure a web page and its content. For example, content could be structured within a set of paragraphs, a list of bulleted points, or using images and data tables.

What is HTML and SQL?

-Sql is programming language which deal with databases , save users data in other words. -Xml is designe. They all complete each other building a full website, but with completly diffrent functions. -Html used to put elements in site as lines, photos, paragraph, etc.

Is HTML easy to learn?

HTML is the standard markup language for Web pages. With HTML you can create your own Website. HTML is easy to learn - You will enjoy it!


1 Answers

It is surprisingly straightforward to roll out your own CSS/HTML template for a printer poster. It is much easier than LaTeX with its weird defaults and obtuse treatment of graphics, layout, and color. And it is much neater than PowerPoint as it provides a lot more consistency and "reuse/programmability" in the creation of the layout.

First of all, you need to set the size of your paper:

body {
width: 48in;
height: 36in;
}

Then you need some generic layout:

<body>
<div class="poster">
  <h1 class="poster-title">...</h1>
  <h2 class="poster-authors">...</h2>
  <h3 class="poster-affiliations">...</h3>
  <hr class="fancy-line">
  <div class="container">
    <div class="row">
      <!-- A bunch of Bootstrap columns (but here it would be a good place to
      use CCS Grids too) -->
    </div>
  </div>
</div>
</body>

And if you like the defaults of a CSS library like Bootstrap, you can use it for most of the components (I particularly like the panels).

You can also use some newer flexbox styling for a neater layout

I have template based on those ideas that I would be happy to share (and a somewhat longer description of the tools I used)

And here is an example of a poster built with it

It is not a ready to use CSS framework, but importantly, it is just 20ish lines of custom CSS you can put on top of any CSS framework.

like image 171
Krastanov Avatar answered Oct 20 '22 02:10

Krastanov