Commit 40ea2a00 authored by jonathan Courat's avatar jonathan Courat

hide legend balise on print mode

parent 32a13ecf
......@@ -7,4 +7,9 @@
h1 {
font-size: 15px;
color: grey;
}
\ No newline at end of file
}
/* @media section */
@media print { .noprint { display: none; } }
@media screen { .noscreen { display: none; } }
......@@ -11,12 +11,12 @@
<!-- all items of cat 1 -->
<h2>category 1</h2>
<fieldset>
<legend>Select items for shopping</legend>
<div>
<legend class="noprint">Select items for shopping</legend>
<div class="itemToSelect">
<input type="checkbox" id="item_1" name="cat1" value="item 1">
<label for="cat1">Pain</label>
</div>
<div>
<div class="itemToSelect">
<input type="checkbox" id="item_2" name="cat_1" value="item 2">
<label for="cat_1">beurre</label>
</div>
......@@ -25,14 +25,14 @@
<!-- all items of cat 2 -->
<h2>category 2</h2>
<fieldset>
<legend>Select items for shopping 2</legend>
<div>
<legend class="noprint">Select items for shopping 2</legend>
<div class="itemToSelect">
<input type="checkbox" id="item_1" name="cat_2" value="item 1">
<label for="cat_2">fromage rapé</label>
</div>
<div>
<div class="itemToSelect">
<input type="checkbox" id="item_2" name="cat_2" value="item 2">
<label for="cat_2">Yahourt</label>
<label for="cat_2">Yahourt </label>
</div>
</fieldset>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment