Home Forums Weaver Xtreme Theme Why does weaver extreme define table in it's css?

This topic contains 2 replies, has 3 voices, and was last updated by  Weaver 1 week, 4 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #52381

    Bryan
    Participant

    You make custom css available and tables can be defined with html via the tiny mc editor or by text coding, so why are you defining any part of a table in your css? By doing so you are taking table definitions out of our hands.

    We can’t edit your css (/*! DO NOT EDIT THIS FILE! weaverx-style.min.css has been minimized using Minimus for Mac */
    /*! normalize.css v3.0.1 | MIT License | git.io/normalize */html).

    The following is in weaverx-style.min.css and can not be edited out or removed. Do these definitions not work in html via wordpress or something? I admit your css doesn’t define tables near as bad as it use to, but why define tables in your css at all? shouldn’t that be left to the people creating their content to decide how to define their tables via html or custom css?

    td {
    margin: 0;
    padding: 4px 4px;
    }
    caption, td, th {
    font-weight: normal;
    text-align: left;
    }

     

    #52382

    scrambler
    Moderator

    The theme provides default styling for tables and has a few exposed option for it.

    That said, you have full freedom to override it anyway you like, like you do any other CSS created by the theme.

    There is no need to edit the Theme CSS file for that (which you should not), you simply add you own CSS rules to the Theme Global Custom CSS Rule box in Main options > Fonts & Custom > Custom CSS Rule box.

    3 ways you can have your own table styling.

    1- Global styling, placing global rules in the Theme global CSS Rule box, these will override the theme defaults
    2- Local styling on specific tables, using a class or ID on the table HTML tag, then placing CSS rules using the Class / ID selector in the Theme Global Custom CSS Rule box
    3- Local styling using a style attribute on any of your table HTML tags.

    If you need more specifics about any of these, let us know

     

    #52383

    Weaver
    Keymaster

    Historically, virtually all WordPress themes include basic table styling. That is why it is there.

    And as scrambler points out, by defining custom CSS, any style defined by a theme can be overridden with whatever styling is needed.

    And more point, designing sites using tables is not really considered best practice these days. The main problem is they are not very good for responsive design, and there are better ways to achieve table-like layout.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.