Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
I don't know exactly what you did because you did not post any code but I can give you an understanding of why these white gaps appear. Using CSS QuickBase uses white borders on the <table> elements used to layout a section. This is a bit unusual and can be difficult to detect as most of the time table cell borders are black or some other visible color.
So you have to set the background-color on the table and the border-color for the cells:
So you have to set the background-color on the table and the border-color for the cells:
$("table.formSection").css("background-color", "yellow");
$("table.formSection tr td").css("border-color", "yellow");
- SalesInfo7 years agoQrew Assistant CaptainThanks for your code. However, if I set the background color on the table and the border color for the cell, the background color will be filled for the whole form which I don't want it to be. I only want to customize the background color for one tab, not the whole form. I am sticking with what is showing in the screenshot below. If you have any idea to make all the white spaces between elements to be filled in yellow, that would be great. Otherwise, I am sticking with this. Thanks!!
- _anomDiebolt_7 years agoQrew Elite> if I set the background color on the table and the border color for the cell, the background color will be filled for the whole form which I don't want it to be
You just have to qualify which table section you want to modify by providing an appropriate selector:$("<selector> table.formSection").css("background-color", "yellow");
$("<selector> table.formSection tr td").css("border-color", "yellow");
I don't know what <selector> should be as it would be specific to your form. - SalesInfo7 years agoQrew Assistant Captain_anom the ultimate (Dan Diebolt),
How do I figure out what <selector> for the section that I want to be customize is?
Thanks!
in this case, is <selector> tab_t30? - _anomDiebolt_7 years agoQrew EliteAfter a quick look I would think you would identify the table with the #sect_s* id like this:
$("table#sect_s1 tr td").css("border-color", "yellow");
But for some reason you have an id without a value. Perhaps this is due to the fact you have tabs and QuickBase generates slightly different HTML in this case.
$("table#sect_s2 tr td").css("border-color", "yellow");
In any event I don't have time to create an equivalent application to test this. If you need individual help you can contact me off-world using the information in my profile:
https://getsatisfaction.com/people/dandiebolt - SalesInfo7 years agoQrew Assistant Captain_anom the ultimate (Dan Diebolt),
I got it. It works.
Yes. I am using tabs instead of using section.
$("#tab_t30 table.formSection").css("background-color", "yellow");
$("#tab_t30 table.formSection tr td").css("border-color", "yellow");
Thanks for your help!!