How can I find the value of a class or id width(or anything else, say height, coloretc.) and use this in CSS?
I use Bootstrap and have a container. I would like to set the addition of another class to the same width as the container.
I found that through the javascript console on the site itself I can do:
var wid = $(".container").width();
which returns 750.
How to implement this in my CSS?
.sampOutput{
border: 1px solid black;
padding-right:100%;
}
Where padding-rightwill be 750.
Then I want to get colormine bodyand set it as color border.
How to get different class / id style values?
Edit: I am learning and see that Javascript (or jquery) can help, but if there are other ways, I am open to it!