Jump to content
MikeK12

Set width of background color

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...