Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As others have said both are valid and will do the trick. I'm not 100% convinced that they are identical though. If you have some style cascading going on then they could in theory produce different results since they are effectively overriding different values.</p> <p>For example. If you set "border: none;" and then later on have two different styles that override the border width and style then one will do something and the other will not.</p> <p>In the following example on both IE and firefox the first two test divs come out with no border. The second two however are different with the first div in the second block being plain and the second div in the second block having a medium width dashed border.</p> <p>So though they are both valid you may need to keep an eye on your styles if they do much cascading and such like I think.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; div {border: 1px solid black; margin: 1em;} .zerotest div {border: 0;} .nonetest div {border: none;} div.setwidth {border-width: 3px;} div.setstyle {border-style: dashed;} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="zerotest"&gt; &lt;div class="setwidth"&gt; "Border: 0" and "border-width: 3px" &lt;/div&gt; &lt;div class="setstyle"&gt; "Border: 0" and "border-style: dashed" &lt;/div&gt; &lt;/div&gt; &lt;div class="nonetest"&gt; &lt;div class="setwidth"&gt; "Border: none" and "border-width: 3px" &lt;/div&gt; &lt;div class="setstyle"&gt; "Border: none" and "border-style: dashed" &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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