Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #232018

    I’m trying to override Enfold’s CSS for tables and input fields, on this page: http://www.finalsmoke.net/order-form-1/

    using these styles in my custom style.css file…

    input.fsfield {
    border-width: 1px;
    border-color: black;
    width: 20px;
    color: #000;
    line-height: normal;
    background: rgb(255,255,255);
    font-size: 13px;
    font-family:”Times New Roman”,Georgia,Serif;
    margin: none;
    }

    .fstable table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    border-collapse: True;
    background: none;
    }

    However, my table (which has id=’fstable’) still has a white background (should be transparent), and my form fields (which use class=’fsfield’) are too wide and have the wrong font.

    The above page is using a template in a child theme. The template contains the table and form fields which are not responding to my custom css in styles.css.

    Please advise.

    #232049

    Hey markofwits!

    It should be like this:

    #fstable, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    border-collapse: True;
    background: transparent;
    }

    Regards,
    Ismael

    #232066

    Hi Ismael,

    That CSS code does not work.

    I would like the form fields in the order form at the right here:
    http://www.finalsmoke.net/order-form-1/

    to look like the original (before Enfold) here:
    http://www.quithere.com/fsmokewp/order-form/

    Because Enfold has overwritten the defaults for tables and input fields, the table holding the order form has a white background, instead of being transparent, the td cells are too spaced out, and the form fields are too large and without borders.

    Below is my original CSS for input fields, and select fields. Is there a way to use these styles in Enfold, along with an unstyled table?

    ——————————–
    input.fsfield {
    border: 1px solid rgb(0, 0, 0);
    color: #000;
    line-height: normal;
    padding: 2px;
    background: rgb(255,255,255,0.5);
    font-size: 13px;
    font-family: Verdana, Arial;
    margin: none;
    }

    select.fsselect {
    border: 1px solid rgba(0, 0, 0);
    color: #000;
    line-height: normal;
    padding: 2px;
    background: rgb(255,255,255);
    font-size: 13px;
    font-family: Verdana, Arial;
    margin: none;
    }
    —————————–

    Thanks,
    Scott

    #232461

    Also noticed there are alternating row colors in tables that I did not put in here: http://www.finalsmoke.net/order-form-1/

    Enfold is doing some complex overriding of tables and input fields somewhere.

    My css for tables (below), is not really being obeyed, nor is my css for input fields.

    #fstable table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border-color: #000;
    border-width: 2px;
    outline: 0;
    width: 285px;
    font-size: 100%;
    vertical-align: baseline;
    border-collapse: True;
    background: none;
    }

    Can you please show me how to counteract what Enfold is doing with tables and input fields so my own styles will come through?

    Thanks.

    #232473

    Hey!

    Open css/base.css and remove from line 182 to line 307 (#Forms and #Table).

    Regards,
    Josue

    #232492

    Thank you, Josue!

    That got me a lot closer to my desired result — http://www.finalsmoke.net/order-form-1/

    Now I just need to figure out where the alternating row colors in tables are coming from, along with very light-colored fonts and borders in input fields and select fields (something still overrides a bit of my css).

    Please let me know if there is anything I am still missing.

    #232498

    Hey!

    Try adding this code to the Quick CSS:

    tr:nth-child(odd) {
        background: white !important;
    }
    .tableft {
        color: gray !important;
    }
    

    Cheers! 
    Josue

    #232513

    Hmm… nope.

    tableft is my font style, which displays correctly as white.

    And tr:nth-child seems to add background color, but, I want to remove the <tr> background color and have my tables display as transparent.

    Somewhere, alternating color table rows (white/gray) are being styled, and I would like to remove that.

    Any ideas?

    Thanks!

    #232515

    Hey!

    I understand, try this instead:

    tr {
        background: transparent !important;
    }
    

    Best regards,
    Josue

    #232523

    Hi Josue… No change.

    I think I am already applying transparent to <tr> with my table style here…

    #fstable table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    width: 285px;
    line-height: normal;
    font-size: 100%;
    vertical-align: baseline;
    border-collapse: True;
    background: transparent;
    }

    Somewhere, a light gray background (#F8F8F8) is being inserted into <tr>, or maybe individual <td>’s, or the table as a whole <table>.

    Also, something is causing the input fields to be styled with light gray borders (#E1E1E1) and fonts (#919191), ignoring my black as shown in my form field styles here…

    input.fsfield {
    border: 1px solid #000;
    color: #000;
    line-height: normal;
    padding: 2px;
    background-color: #FFF;
    font-size: 13px;
    font-family: Verdana, Arial;
    margin: none;
    }

    select.fsselect {
    border: 1px solid #000;
    color: #000;
    line-height: normal;
    padding: 2px;
    background-color: #FFF;
    font-size: 13px;
    font-family: Verdana, Arial;
    margin: none;
    }

    Any help is appreciated.

    #232524

    Hi!

    Change your code to this:

    input.fsfield {
    	border: 1px solid #000 !important;
    	color: #000 !important;
    	line-height: normal;
    	padding: 2px;
        background-color: #FFF !important;
    	font-size: 13px;
    	font-family: Verdana, Arial;
        margin: none;
    }
    
    select.fsselect {
    	border: 1px solid #000 !important;
    	color: #000 !important;
    	line-height: normal;
    	padding: 2px;
        background-color: #FFF !important;
    	font-size: 13px;
    	font-family: Verdana, Arial;
        margin: none;
    }
    
    table#fstable, caption, tbody, tfoot, thead, tr, th, td {
    	margin: 0;
    	padding: 0;
    	border: 0;
    	outline: 0;
    	width: 285px;
    	line-height: normal;
    	font-size: 100%;
    	vertical-align: baseline;
    	border-collapse: True;
    	background: transparent !important;
    }

    Regards,
    Josue

    #232531

    Great. The form fields are now the correct colors.

    The initial table style you wrote did not work, but I was able to make the table background transparent by making a small change to your code.

    Here is what worked (I moved the word table to the right side, instead of table#fstable)…

    #fstable, table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    width: 285px;
    line-height: normal;
    font-size: 100%;
    vertical-align: baseline;
    border-collapse: True;
    background: transparent !important;
    }

    The word “important” is important :) It overrides something we cannot find apparently.

    And a small thing – the select field (to choose a state) has a very light vertical bar at the far right. No biggie but would like to get rid of it. You can see that bar in the state field here – http://www.finalsmoke.net/order-form-1/ , but it does not exist in the state field in my page before using Enfold here – http://www.quithere.com/fsmokewp/order-form/

    Thanks for your help so far, and hope we can solve it all the way!

    #232538

    Hi Josue,

    Under magnification, I see that the vertical line in the “select” element also contains a custom image with up & down arrows…

    select element

    Any idea what might be putting the image there?

    #232545

    Hey!

    Try adding this property to your fsselect selector:

    background-image: none !important;
    

    Cheers!
    Josue

    #232549

    Excellent.
    All issues resolved.
    Thank you!

    Now… a question about Color Sections.

    Does a color section display a very light gray line at the top if it’s empty?

    I added an empty color section here to open up some white space to display my own custom div elements:
    http://www.finalsmoke.net/order-form-1/

    On another page without the color section, no line is visible (and of course the full amount of white space needed is not available to reveal all my custom div elements, but the area at the top has no line):
    http://www.finalsmoke.net/order-form-3/

    Any ideas?
    Thanks!

    #232555

    Hey!

    Try setting the ‘Section Top Shadow’ option to ‘Do not display shadow’ in the Color section element.

    Cheers!
    Josue

    #232569

    Hi Josue,

    Actually, I did have the shadow turned off :)

    Here is my page with the shadow:
    http://www.finalsmoke.net/order-form-4/

    Here is the same page without the shadow:
    http://www.finalsmoke.net/order-form-1/

    Notice that the line is in the same position where the shadow begins.

    Any thoughts?

    #232640

    Hi!

    Thank you for using the theme. I hope you’re doing great.

    You can add this on Quick CSS or custom.css to remove the section shadow:

    .avia-shadow {
    box-shadow: none;
    }

    Best regards,
    Ismael

    #232647

    Hi Ismael,

    That only removes the shadow, not the line above it. The shadow I can remove with the user interface, but the line still remains.

    You can see the remaining line here:
    http://www.finalsmoke.net/order-form-1/

    #232851

    Hey!

    Try adding this code to the Quick CSS:

    .page-id-229 #av_section_1{
        border: 0 !important;
    }

    Cheers! 
    Josue

    #232991

    Yes! Solved.

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘How to Override CSS for Tables & Input Fields?’ is closed to new replies.