What's with the appearance of the Checkbox?

Visit this link for more information about booking appointments.

Upon clicking the "Register" button, you may notice a tiny checkbox on the right side that doesn't resemble a typical checkbox design. Despite inspecting with Developer Tools, no specific rules for checkboxes are found.

Any suggestions or insights on this unusual checkbox situation?

Answer №1

The reason for this issue is linked to your utilization of the display: inline-flex property within the .checkbox class. To resolve this, you need to explicitly state a flex attribute for the checkbox input element:

.checkbox-cb {
    margin-right: 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

Answer №2

To improve the appearance, consider adding width:100px; to the framework.css file, specifically at line 106 within the class .checkbox-cb. This adjustment will enhance the design.

Make sure to update the following class:

.checkbox-cb {
    margin-right: 8px;
    cursor: pointer;
    width: 40px; /* Update this value to 100px */
}

Answer №3

This is a standard checkbox that appears as 13px x 13px in Firefox, which is the default size for checkboxes on this browser. Below is the isolated code snippet for you to experiment with in various browsers:

.agbCheckbox {
  height: 80px;
  font-size: 11px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-cb {
  margin-right: 8px;
  cursor: pointer;
}
<div class="agbCheckbox checkbox" id="77">
  <input class="checkbox-cb" id="77-cb" type="checkbox">
  <span class="checkbox-text" id="77-text">I have read and agree to the <a id="agbLink" href="">terms and conditions and privacy policy</a></span>
</div>

If you're looking to adjust the checkbox size using only CSS, there's a helpful discussion on SO about it: Changing Checkbox Size in HTML/CSS

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Creating a dynamic navigation bar featuring an interactive search option

I am currently working on creating a responsive navigation bar with bootstrap, similar to the one shown in this example. However, I am facing issues with aligning the search button correctly and ensuring that the tabs remain intact when collapsed. Instead ...

I am experiencing issues with the interpolation of my SASS variables when they are placed into

I am relatively new to the Nuxt ecosystem and I must say it's an awesome package that really simplifies our lives. Currently, I am attempting to incorporate sass into my project. Despite following the steps outlined in the documentation, my build is ...

Clicking once will result in the removal of one image from the array

I am struggling with removing an image from an array every time the remove button is clicked. I attempted to use the `splice` method, but the image continues to be visible even after clicking the remove button. HTML: <span>Image:</span> <d ...

Troubleshooting: Issue with displaying PHP data on an AngularJS table using JSON through jQuery AJAX

I've been encountering an issue while trying to display data from a database on my HTML page using Angular and JSON. Despite the browser being able to read the database, it fails to show the data. Can anyone shed some light on why this might be happen ...

Change the CSS hover menu to function as a click menu instead of a hover

I am working on a CSS/HTML menu that includes the following CSS code: #nav { background-color:#F36F25; margin:0 0 5px 0; width: 100%; height:35px; left:0; z-index:1; border-top:2px solid #FFFFFF; border-bottom:2px solid #FF ...

Navigational buttons for a JavaScript/HTML questionnaire webpage

For my survey page, I'm utilizing Bootstrap nav-tab to create questionnaire tabs. However, I'm encountering an issue with the code snippet below that is meant for navigating between previous and next tabs. Despite implementing the code provided, ...

Padding issue observed at the lower part of the table cell in white color

Take a look at this JSFiddle: http://jsfiddle.net/nMbb4/1/ Here is the HTML code: <table> <tr> <td> 1 </td> </tr> <tr> <td> <div></div> ...

What is the best way to align a dropdown menu vertically?

Is there a way to center the text vertically alongside the drop-down list so that they are on the same level? <p> <span>Hello World</span><select><option>Hello</option></select> </p> span { font-size: 5 ...

Ng-Zorro nz-range-picker resizing issue on smaller mobile screens

Currently using ng-zorro-antd 7.0.0 rc3 alongside angular 7.2.4. Encountering an issue where horizontal scrolling is not possible on mobile browsers when using the nz-range-picker. It appears that the element is too large for the screen, even though the p ...

The data is successfully loading onto the HTML page, however, the Bootstrap 4 styling does not seem to be appearing

https://i.sstatic.net/WVgwk.jpgI have a simple Angular application where hard-coded data is being rendered on the webpage in a basic format. However, when I try to apply Bootstrap styles and classes, nothing is appearing on the page. Can someone please hel ...

The note-taking app's JavaScript code does not currently have the capability to store notes in local storage

const noteContainer = document.querySelector(".note-container"); const createBtn = document.querySelector(".btn"); let notes = document.querySelectorAll(".input-box"); function showNotes() { noteContainer.innerHTML = localS ...

Implementing a Popup Functionality on Clicking a URL in a Basic HTML Page

I recently designed a basic admin panel with a navigation menu that includes a "Change Password" option. When this option is selected, it currently directs users to the changepassword.php page. However, I would like this page to open in a popup window inst ...

Searchable dropdown Jquery plugin that enhances the user experience

I am a beginner in the world of jquery and I am currently working on creating a drop down list with a search filter. Specifically, I have a left side navigation bar in my design. Upon clicking on a specific nav field, a drop down list is shown along with ...

HTML/CSS Selecting Tables: First, Last, and More

Is there a way to combine selector tags in order to style the first <td> inside the first <tr>? I have attempted various methods to merge these selectors, albeit unsuccessfully. I am simply seeking guidance on whether or not this is even possi ...

The process of retrieving data from a dropdown list and populating checkboxes using Ajax/Jquery

I'm looking for a way to dynamically retrieve data in checkboxes based on a selected user from a dropdown list. The dropdown list contains users, and the checkboxes display pages data. Assuming we have a table called user with columns user_id and use ...

What steps are necessary to add a Contact Us form to my HTML website?

Currently, I am searching for a way to add a "Contact Us" section to my website that is completely HTML-based. I believe the best approach would involve using a PHP script to handle sending emails from a form on the Contact Us page, but I am not familiar ...

Instructions on how to automatically navigate to a different tab upon clicking an <a> element on a separate webpage, and subsequently display the designated tab on that

I have a button on my home page that, when clicked, should open a specific tab section on another page. The button is located on one page and the tabs are on a different page. On the second page, I have multiple tabs but will only mention one here, which ...

Tips for including a new class in an HTML element

My goal is to add a specific class to an HTML tag, if that tag exists. This is the code I have attempted: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>index</title> <style> ...

Tips for aligning elements inside multiple nested divs:

I am facing an issue with aligning a span element in a nested div structure. The main row div contains a child div named horizontal-form, which further includes two form-group divs. Each form-group div has a child div called input-group, housing an a tag a ...

Having issues with the background image on the homepage not displaying correctly?

Having trouble with the background image not displaying correctly even when set to 100%? https://i.sstatic.net/eavwX.png I'm currently using Angular and Bootstrap 4 for this project. <!--html code--> <div class="bg"> <div style="text ...