-
AuthorPosts
-
March 4, 2014 at 5:18 am #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.
March 4, 2014 at 8:04 am #232049Hey 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,
IsmaelMarch 4, 2014 at 8:37 am #232066Hi 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,
ScottMarch 5, 2014 at 12:58 am #232461Also 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.
March 5, 2014 at 2:17 am #232473Hey!
Open css/base.css and remove from line 182 to line 307 (#Forms and #Table).
Regards,
JosueMarch 5, 2014 at 2:46 am #232492Thank 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.
March 5, 2014 at 2:52 am #232498Hey!
Try adding this code to the Quick CSS:
tr:nth-child(odd) { background: white !important; } .tableft { color: gray !important; }
Cheers!
JosueMarch 5, 2014 at 3:27 am #232513Hmm… 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!
March 5, 2014 at 3:29 am #232515Hey!
I understand, try this instead:
tr { background: transparent !important; }
Best regards,
JosueMarch 5, 2014 at 3:56 am #232523Hi 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.
March 5, 2014 at 4:06 am #232524Hi!
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,
JosueMarch 5, 2014 at 4:52 am #232531Great. 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!
March 5, 2014 at 6:25 am #232538Hi Josue,
Under magnification, I see that the vertical line in the “select” element also contains a custom image with up & down arrows…
Any idea what might be putting the image there?
March 5, 2014 at 6:49 am #232545Hey!
Try adding this property to your fsselect selector:
background-image: none !important;
Cheers!
JosueMarch 5, 2014 at 7:09 am #232549Excellent.
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!March 5, 2014 at 7:20 am #232555Hey!
Try setting the ‘Section Top Shadow’ option to ‘Do not display shadow’ in the Color section element.
Cheers!
JosueMarch 5, 2014 at 8:01 am #232569Hi 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?
March 5, 2014 at 10:17 am #232640Hi!
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,
IsmaelMarch 5, 2014 at 10:30 am #232647Hi 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/March 5, 2014 at 6:27 pm #232851Hey!
Try adding this code to the Quick CSS:
.page-id-229 #av_section_1{ border: 0 !important; }
Cheers!
JosueMarch 6, 2014 at 12:06 am #232991Yes! Solved.
-
AuthorPosts
- The topic ‘How to Override CSS for Tables & Input Fields?’ is closed to new replies.