Code Monkey home page Code Monkey logo

Comments (10)

Zegnat avatar Zegnat commented on June 18, 2024

I think I am going to have a good look at this later tonight when my schedule clears up. It would be really great to get this solved, as we might be able to repurpose it for tables as well! (No more divs!)

When a table element is the only content in a figure element other than the figcaption, the caption element should be omitted in favor of the figcaption.

From 4.9.2 The caption element, HTML5 spec.

from tufte-css.

daveliepmann avatar daveliepmann commented on June 18, 2024

👍

from tufte-css.

Zegnat avatar Zegnat commented on June 18, 2024

I have made a start at Zegnat/tufte-css, but it is extremely crude. Feel free to take a look and see if it sparks any ideas for you. It does somewhat support <720 pixels wide, but vertical margins are still off.

from tufte-css.

daveliepmann avatar daveliepmann commented on June 18, 2024

a72d0c3 addressed the immediate egregious errors that were evident on small screens. A more comprehensive solution is still desired.

from tufte-css.

daveliepmann avatar daveliepmann commented on June 18, 2024

It would also be of value for me to reread Tufte to take in some of his examples of figures. On a quick skim of The Visual Display of Quantitative Information, I notice many figures actually have no label, since they are introduced in the text. Figure captions in the margin seem restricted to citations that he doesn't introduce in the main body of the text. Sometimes these are aligned with the bottom of the figure, sometimes with the top, according to what is most pleasing to the eye. Again, more rigor and study is required.

from tufte-css.

Zegnat avatar Zegnat commented on June 18, 2024

figcaption is not required inside figure from an HTML point of view, so optional labels shouldn’t really be a problem. A choice of aligning with top or bottom might be harder to work with in CSS…

from tufte-css.

crmackay avatar crmackay commented on June 18, 2024

you can have the figure caption above or below the image simply by placing the <figcaption> element ahead of the <img /> in the document, as opposed to after it. Here is code pen: http://codepen.io/crmackay/pen/yNdyXz?editors=110

from tufte-css.

bolatovumar avatar bolatovumar commented on June 18, 2024

@daveliepmann could you post examples of this issue?

from tufte-css.

daveliepmann avatar daveliepmann commented on June 18, 2024

@bolatovumar The essential problem is that figcaption does not now and has never in the past successfully created captions that are aligned identically to sidenotes or margin notes. There's always been at least a tiny discrepancy on all viewports. I've removed uses of and references to figcaption because of this issue. If we can get them identical to marginalia then they'll be reintroduced, which I would like.

from tufte-css.

RichardCore37 avatar RichardCore37 commented on June 18, 2024

Hi, I'm also having a problem with my figcaption displaying an unnecessary space above the text (or my image displaying an unnecessary space below the image. I've tried every fix that appears online - display block, vertical alignment, line heights, etc. but nothing seems to remove it!

from tufte-css.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.