Git Product home page Git Product logo

Comments (1)

reboottime avatar reboottime commented on May 29, 2024

Table text alignment, Draft

Table Headers:

  • Align text in header cells to the dominant alignment of the column data. For example, if a column is mostly numerical, align the header to the right.
  • Center alignment can also work for headers, especially if the column widths are narrow.

Table Content

  • Align text-based data (like names or descriptions) to the left. This is because most languages are read left-to-right, and left alignment is generally easier to read.
    Numerical Data:

  • Align numbers to the right. This makes it easier to compare figures as the decimal points line up vertically.
    For columns with mixed data types (like numbers and text), consider what type is predominant and choose alignment accordingly.
    Center Alignment:

  • Use sparingly, mainly for short texts or when it enhances the design.
    It can be effective for certain types of data, such as dates or categories.

  • Action buttons: left to right


Overall

  • Keep the alignment consistent across all rows in the same column.
    If your table spans multiple pages or slides, maintain the same alignment throughout.
    Padding:

  • Ensure there's adequate padding around the text within the cells. This prevents the text from appearing crammed against the cell borders, improving readability.
    Consider the Audience:

  • If your audience reads in a language that is right-to-left, you might want to adjust the alignment accordingly.
    Responsive Design:

  • If the table will be viewed on different devices, ensure that the alignment remains effective across screen sizes.

from ui-ux-and-spas.

Related Issues (6)

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.