Set width of background color in CSS Posted December 16, 2019 I have a background color that I want to stop at a certain width. Here is my code I am using: $("#tab_t51").css("backgroundColor", "lightgray"); $("#tab_t51").css("border-radius", "15px"); $("#tab_t51").css("padding", "8px 40px"); $("#tab_t51").css("width:50px"); How can I get the below images' background to stop around the blue lines? Or even to have breaks in the background lets say right above "Building Details"
Set width of background color
in CSS
Posted
I have a background color that I want to stop at a certain width. Here is my code I am using:
$("#tab_t51").css("backgroundColor", "lightgray");
$("#tab_t51").css("border-radius", "15px");
$("#tab_t51").css("padding", "8px 40px");
$("#tab_t51").css("width:50px");
How can I get the below images' background to stop around the blue lines? Or even to have breaks in the background lets say right above "Building Details"