aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/html/element/input
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-02-25 08:31:36 -0500
committerPeter Bengtsson <mail@peterbe.com>2021-02-25 08:31:36 -0500
commit97065b2e68dd8768dc1ea092c893c57ebe205026 (patch)
tree11bf4a1114c543989c24c7a801ba379b2c20a30c /files/ru/web/html/element/input
parentd1794f6b276285489b417053507f432a14be31df (diff)
downloadtranslated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.tar.gz
translated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.tar.bz2
translated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.zip
use class="hidden" not style="display:none"
Diffstat (limited to 'files/ru/web/html/element/input')
-rw-r--r--files/ru/web/html/element/input/number/index.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/files/ru/web/html/element/input/number/index.html b/files/ru/web/html/element/input/number/index.html
index 93f1fb2525..0ee9046649 100644
--- a/files/ru/web/html/element/input/number/index.html
+++ b/files/ru/web/html/element/input/number/index.html
@@ -289,7 +289,6 @@ input:valid+span:after {
&lt;input id="meters" type="number" name="meters" step="0.01" min="0" placeholder="e.g. 1.78" required&gt;
&lt;span class="validity"&gt;&lt;/span&gt;
&lt;/div&gt;
- &lt;div class="feetInputGroup" style="display: none;"&gt;
&lt;span&gt;Enter your height — &lt;/span&gt;
&lt;label for="feet"&gt;feet:&lt;/label&gt;
&lt;input id="feet" type="number" name="feet" min="0" step="1"&gt;
@@ -308,7 +307,7 @@ input:valid+span:after {
<p>You'll see that we are using many of the attributes we've already looked at in the article earlier on. Since we want to accept a meter value in centimeters, we've set the <code>step</code> value to <code>0.01</code>, so that values like 1.78 are not seen as invalid. We've also provided a placeholder for that input.</p>
-<p>We've hidden the feet and inches inputs initially using <code>style="display: none;"</code> so that meters is the default entry type.</p>
+<p>We've hidden the feet and inches inputs initially using <code>class="hidden"</code> so that meters is the default entry type.</p>
<p>Now on to the CSS — this looks very similar to the validation styling we saw before; nothing remarkable here:</p>