Jump to content

Set width of background color


MikeK12

Recommended Posts

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"

 

image.thumb.png.a74585a61ca0e39397089328d8aa7931.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...