Делаем подарки
This commit is contained in:
parent
63cc7ee533
commit
23dd65b366
@ -30,10 +30,12 @@ require_once 'functions.php';
|
||||
visibility: hidden; /* Makes input not-clickable */
|
||||
position: absolute; /* Remove input from document flow */
|
||||
}
|
||||
|
||||
label.present > input + img { /* IMAGE STYLES */
|
||||
cursor: pointer;
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
label.present > input:checked + img { /* (RADIO CHECKED) IMAGE STYLES */
|
||||
border: 2px solid #f00;
|
||||
}
|
||||
@ -75,7 +77,7 @@ if (!empty($_POST['present'])) {
|
||||
foreach ($images as $image): ?>
|
||||
<label class="present">
|
||||
<input type="radio" name="present" value="<?= $image ?>">
|
||||
<img src="<?= $image ?>" alt=""><br />
|
||||
<img src="<?= $image ?>" alt="">
|
||||
</label>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user