Home › Forums › Weaver Xtreme Theme › Need to create a payment chart of multiple columns
- This topic has 4 replies, 3 voices, and was last updated 6 years, 11 months ago by
scrambler.
-
AuthorPosts
-
July 15, 2015 at 11:36 UTC - Views: 1 #18032
iblondie62
ParticipantI need to create a payment plan which is like a mini spreadsheet with 3 columns and several rows. I need to be able to show the gridlines, define the widths of the columns (they will be equal but not use the whole page) and change the background color.
I have played with the div and .content-3-col to create the columns but do not know who to add the gridlines, color, width, etc… I do not have Weaver plus.If you go to this page http://maxhealthme.org/direct-care-dpc/billing-payment/You will see the section Adult Membership Monthly Fees. I need the columns to be Age, First Member, Secondary Member to only be as big as the box with Adult Membership Fees.July 15, 2015 at 12:30 UTC - Views: 4 #23381Maureen
ParticipantA table might be the solution. Although not responsive, tables are good for tabular info. I use Tablepress: https://wordpress.org/plugins/tablepress/
July 15, 2015 at 17:25 UTC - Views: 6 #23382scrambler
ModeratorI agree that ultimately when you need a tabular data set you need a table. Just make sure you use responsive settings like % width.
You do need to check if the 3 columns will fit all the way down to a cell phone screen, because if they don’t fit side by side on a phone size screen, you then need to decide what happens there.
That being said, the way to create and style a 3 column with divs and the content-3-col if they should always be 3 columns (instead of becoming 2 on mobile) is below.
The HTML would look like
<div>
<div class=”content-3-col row1″>First column content</div>
<div class=”content-3-col row1″>Second column content</div>
<div class=”content-3-col row1″>Third column content</div>
<div class=”content-3-col row2″>First column content</div>
<div class=”content-3-col row2″>Second column content</div>
<div class=”content-3-col row2″>Third column content</div>
<div class=”content-3-col row3″>First column content</div>
<div class=”content-3-col row3″>Second column content</div>
<div class=”content-3-col row3″>Third column content</div>
</div>
<div style=”clear:both;”></div>and the custom CSS
[class*=row] {border:1px solid black;} /*Styling common to all rows*/
.row1 {background-color:green;}
.row2 {background-color:grey;}
.row3 {background-color:blue;}
/*rules below to undo 2 col on mobile*/
.is-mobile :nth-of-type(2n+1).content-3-col {clear:none !important;}
.is-mobile :nth-of-type(3n+1).content-3-col {clear:left !important;}
.is-mobile .content-3-col {width:33.3%;}July 15, 2015 at 18:42 UTC - Views: 2 #23383iblondie62
ParticipantThanks. I will check out the table option, but if I use the above div, where do I put the custom css?
July 15, 2015 at 18:54 UTC - Views: 2 #23384scrambler
ModeratorCUstom CSS goes in Main Options > Fonts & Custom > Custom CSS Rule box
-
AuthorPosts
- You must be logged in to reply to this topic.