Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove CSS of an image (CSS is part of a generated code)
    primarykey
    data
    text
    <p>I am trying to remove the css of an image. My actual code doesn't include this CSS, but it comes from a generate code. I can't touch that neither modify anything that is related to the generared code.</p> <p>This is my real code</p> <pre><code>&lt;div class="bubble"&gt; &lt;img id="one" src="/static/webupload/MyronArtifacts/images/descarga.png" style='float: left;' alt="Quotes"&gt; &lt;p id="comment11"&gt;I was very impressed with the unique design and high quality of this pen. &lt;/p&gt; &lt;/div&gt; &lt;div class="quote_speech"&gt; &lt;div class="name" id="author11"&gt;By PEDE&lt;/div&gt; &lt;div class="company" id="company11"&gt;September 25,2013&lt;/div&gt; &lt;/div&gt; </code></pre> <p>This code is added to a div from the generated code name rightCol</p> <p>And there is a CSS class declare the following way</p> <pre><code>#rightCol img{ display:block; float:none; margin:0 auto 0 auto; position:relative; border:0; padding:3.5px 0; backgroun-color:#fff; width:166px } </code></pre> <p>The issue is on width:166px. The bad new for me is I can't remove it manually(Generated code).</p> <p>So I was thinking to use javascript for this. using this <strong>$('#one').hasClass('img')</strong> </p> <p>But this returns me false.</p> <p>I did a demo getting in JS FIELD getting the CSS. <a href="http://jsbin.com/akAJUfe/2" rel="nofollow">DEMO</a></p> <p>If I remove the 166px from the CSS it works, but that solution is not available for me. And the has class returns me false. Wondering why?</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload