Note that there are some explanatory texts on larger screens.

plurals
  1. POjEditable input-box CSS style
    primarykey
    data
    text
    <p>I am trying to style an input-box rendered using <a href="http://www.appelsiini.net/projects/jeditable" rel="nofollow noreferrer">jEditable</a>.</p> <p>I want to change the color of the table-cell when the text is double-clicked and made editable. Like this:</p> <p><a href="http://www.hongaijitsu.com/temp/foobar/public/Picture-2.png" rel="nofollow noreferrer">alt text http://www.hongaijitsu.com/temp/foobar/public/Picture-2.png</a></p> <p>This is where I am at the moment: <a href="http://www.hongaijitsu.com/temp/foobar/public/dashboard.html" rel="nofollow noreferrer">jEditable CSS Problem</a> (double-click the text in the table-cells)</p> <p>HTML snippet:</p> <pre><code>&lt;tr class="odd"&gt; &lt;td class="dblclick" headers="customer-name"&gt;Drogo Shankara&lt;/td&gt; &lt;td class="dblclick" headers="mail"&gt;dshan@gmail.com&lt;/td&gt; &lt;td class="dblclick" headers="type"&gt;Web&lt;/td&gt; &lt;td class="dblclick" headers="status"&gt;Pending mail&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>jQuery code:</p> <pre><code>$(function() { $(".dblclick").editable("#", { tooltip : "Doubleclick to edit...", event : "dblclick", css : 'inherit' }); }); </code></pre> <p>Corresponding CSS:</p> <pre><code>.dblclick form { height: inherit !important; width: inherit !important; border: 0; margin: 0; padding: 0; background: red; } .dblclick input { height: inherit !important; width: inherit !important; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; } </code></pre> <p>I want the input-box to inherit the height &amp; width from the parent table-cell, but when I look at the input-box in Firebug it has an inline CSS height &amp; width already set, causing the table-cell to scale when the <code>td</code> text is pressed. I try to override the inline CSS with <code>inherit !important</code>, but it doesn't work.</p> <p>There is some concept in play here that I haven't fully understood, but it could be something totally banal.</p> <p>Any ideas what is wrong?</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.
    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