Note that there are some explanatory texts on larger screens.

plurals
  1. POcss styling of division within division in chrome
    primarykey
    data
    text
    <p>I have a css sub-level question. normally people seem to define a style for a specific class. This is what I started out with:</p> <pre><code>.divholder { width:750px; border:none font-size:12; display:inline-block; overflow: hidden; white-space: nowrap; } .five { width:100px; display:inline-block; overflow: hidden; white-space: nowrap; float:left; } </code></pre> <p>This worked fine to make a division with five subdivisions within that larger one. it currently holds buttons in an online form with five options, so hence the five. Now Im trying to specify the division in my css file, so that I do not constantly have to define the div class="..." in the html part. This looks as follows:</p> <pre><code>form.cmxform div { width:750px; border:none; font-size:12; display:inline-block; overflow: hidden; white-space: nowrap; } form.cmxform div div { width:100px; display:inline-block; overflow: hidden; white-space: nowrap; float:left; } </code></pre> <p>The specs are simply copied from the classes, which work well in chrome and IE. Oddly enough, when I apply the above sub-specifications, it works in IE, but not in Chrome. Chrome puts every division on a seperate line with the lower code, but not with the top code. Does anybody have an idea why this would be the case, and how I could solve it? thanks for any advice or remarks you might have!</p> <p>*edit the html code this applies to is the following:</p> <pre><code>&lt;li&gt;&lt;label&gt;&amp;nbsp;&lt;/label&gt;&lt;div&gt;&lt;div class="five"&gt;Zeker Niet&lt;/div&gt;&lt;div class="five"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="five"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="five"&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="five"&gt;Zeker Wel&lt;/div&gt;&lt;/div&gt;&lt;/li&gt; &lt;li&gt;&lt;label&gt;&amp;nbsp;&lt;/label&gt;&lt;div&gt;&lt;div&gt;--&lt;/div&gt;&lt;div&gt;-&lt;/div&gt;&lt;div&gt;0&lt;/div&gt;&lt;div&gt;+&lt;/div&gt;&lt;div&gt;++&lt;/div&gt;&lt;/div&gt;&lt;/li&gt; </code></pre> <p>The top-line in which the div class is specifiek works well in both chrome and IE9, but the line below it only works in IE9, not chrome</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