M.Ghali
M.Ghali

Reputation: 97

Checkbox is not showing in html/css

I am using an external css from a theme, but whenever I put a checkbox, it shows for a split second and then it directly disappears.

My code:

<div class="css-checkbox">
       <input id="checkbox1" class="css-checkbox" type="checkbox"  value="1" name="attended" />
       <label for="checkbox1" class="css-label">Attended</label>
    </div>

For more info about the files : HERE

Upvotes: 0

Views: 1975

Answers (2)

user5652250
user5652250

Reputation:

You can try with the CSS property z-index, that allows you to put an element over the others, try the following:

your_checkbox {
    z-index: +1;
}

Upvotes: 0

webdevverbe
webdevverbe

Reputation: 27

Check your CSS panel for any overwrites. The split second tells me that initially it's visible but some other file overwrites it on a later moment, when that file is loaded. Ideally we should be able to see all your code to verify what is wrong.

You can find your css panel by pressing F12 or navigating to your developer tools and inspect the element.

Upvotes: 1

Related Questions