0

I have a div that looks like this:

<div class="wtHolder" style="width:41.66%; height:150px; position:relative;">

Is there something I can add in css for the wtHolder class that will remove width:41.66% of this?

(If you want the background of why I need to do this, see this question.)

2
  • Have you tried the oft maligned !important? Commented Aug 3, 2016 at 21:05
  • @j08691 - I did. This got me close: .wtHolder {width: auto !important;} (I did not know about the auto option.) Commented Aug 3, 2016 at 21:08

2 Answers 2

1

yes you can use !important to overwrite it:

.wtHolder {
    width: 100px !important;
}
Sign up to request clarification or add additional context in comments.

Comments

1

It's a trick , but you can actually use !important

.wtHolder{
  width:100% !important;
  background-color:black
}
<div class="wtHolder" style="width:41.66%; height:150px; position:relative;">

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.