Home › Forums › Weaver Xtreme Theme › Why does weaver extreme define table in it's css?
- This topic has 3 replies, 3 voices, and was last updated 1 year, 2 months ago by
Bryan.
-
AuthorPosts
-
December 5, 2017 at 16:27 UTC - Views: 27 #52381
Bryan
ParticipantYou 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;
}December 5, 2017 at 19:29 UTC - Views: 24 #52382scrambler
ModeratorThe 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
December 6, 2017 at 00:43 UTC - Views: 19 #52383Weaver
KeymasterHistorically, 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.
July 25, 2022 at 18:05 UTC - Views: 8 #70996Bryan
ParticipantThank you for your help and replies, after I figured this out with your assistance I feel like a total green horn.
-
AuthorPosts
- You must be logged in to reply to this topic.