What could be causing my radio button list to stop functioning correctly? (After applying CSS)

While working on a simple postage calculator in Visual Studio with Web Forms (yes, we had to use Web Forms in Class), I included some Bootstrap for styling. However, there was an issue where my RadioButtonList suddenly stopped functioning properly. None of the radio buttons could be selected, and I wasn't sure what caused this problem.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="PostageCalculator._default" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <script src="scripts/bootstrap.min.js"></script>
    <link href="Content/bootstrap-theme.min.css" rel="stylesheet" />
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 249px;
            height: 250px;
        }
        #boxiediv {
            text-align: center;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }
        .outer-div {
            padding: 30px;
            text-align: center;
        }
        .inner-div {
            display: inline-block;
            padding: 50px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
       <div class="page-header"> 
        <div class="container-fluid">
            <div  id="boxiediv" > <img id="boxielogo" alt="Boxie. Easier than it should be." class="auto-style1" src="boxielogo2.png" align="middle"/></div>
             <br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br /><br />
        <div  style="background-color: #4d6684 !important; "  class="jumbotron outer-div" id="jbotron1"  >
        <div id="textboxes" class="row" >
             <div class="col-md-4">
        <asp:TextBox ID="widthTextBox"  value="0" type="number" AutoPostBack="true" runat="server" OnTextChanged="Calculate"></asp:TextBox>
                 <em>&nbsp;width</em></div>
              <div class="col-md-4">
        <asp:TextBox ID="heightTextBox"  value="0" type="number" AutoPostBack="true" runat="server" OnTextChanged="Calculate"></asp:TextBox>
                  <em>&nbsp; height</em>
                </div> 
              <div class="col-md-4">
        <asp:TextBox ID="lengthTextBox"  value="0" type="number" AutoPostBack="true" runat="server" OnTextChanged="Calculate"></asp:TextBox>
                  <em>&nbsp; length (optional)</em></div>
                 <br />
        </div><!--Closing tag for #textboxes-->
            <div id="radiolist" class="inner-div" >
                <asp:RadioButtonList AutoPostBack="true" ID="deliveryRadioList" runat="server" OnSelectedIndexChanged="Calculate"
              RepeatDirection="Horizontal" >
              <asp:ListItem Value="0.15" style="margin-right: 20px">Ground</asp:ListItem> 
            <asp:ListItem Value="0.25" style="margin-right: 20px">Air</asp:ListItem>
              <asp:ListItem Value="0.45" >Next Day</asp:ListItem>
         </asp:RadioButtonList>
                </div><!-- closing tag for #radios-->
        <asp:HiddenField ID="cost" runat="server" Value="0" />
        <asp:Label ID="resultLabel" runat="server"></asp:Label>
        </div>
    </div>
        </div>
    </form>
</body>
</html>

Answer №1

It seems that the boxiediv ID div is currently taking up the entire page, obstructing other components from functioning properly. You might want to try commenting out the div and see if it resolves the issue with your radio buttons.

If you're unsure about the desired appearance, consider adjusting the z-index property to position it behind or experimenting with the height settings for a better layout.

#boxiediv { z-index: -1 }

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

Is there a way to adjust the padding of html and body elements to 0 in Vue.js without interfering with the styling of bootstrap

In my Vuejs project, I am designing a bootstrap navbar that has left and right margin spacing, even though I have not added any body or html padding. When I navigate to the welcome.blade.php file and set the body and html padding to 0 as shown below: *{ ...

Converting JSON to Objects while changing Keys: A Step-by-Step Guide

"Result": { "AKJB0000001": { "BANK": "AKOLA JANATA COMMERCIAL COOPERATIVE BANK", "IFSC": "AKJB0000001", "BRANCH": "RTGS-HO", "ADDRESS": "JANVAIBHAV,OLD COTTON MARKET,AKOLA,PIN 444001", "CONTACT": null, " ...

Tips for layering one div on top of another div

I'm looking for guidance on how to position my button divs over my Trapezoids in an overlay fashion. Currently, I have set up an array to store the colors and utilizing the map function to match each button with its corresponding color type. When a ...

Troubleshooting my Xpath query for HTML - where did I make a mistake?

Within the <BODY> tags, there is a piece of HTML that I'm attempting to target using scrapy: <section class="content"> <div class="social clearfix"> <div class="profile profile-nano pull-left"> <a hr ...

Need help fixing my issue with the try-catch functionality in my calculator program

Can someone assist me with my Vue.js calculator issue? I am facing a problem where the output gets added to the expression after using try and catch. How can I ensure that both ERR and the output are displayed in the {{output}} section? Any help would be a ...

Tips for adjusting the value of a textbox up and down

I am facing an issue with my booking flight form that is supposed to take input from users regarding the number of travelers. I have three textboxes for Adult, Children, and Infants respectively, along with a main textbox to display the final result. Howev ...

Can anyone figure out why this code is not functioning properly? It seems to be targeting the body element and all of

Currently, I am utilizing jqtouch to create a mobile website. In addition to this, I am incorporating a gallery image slider into the website. However, I have encountered an issue where the images do not display when placed between <div id="project_name ...

Text within cells is not wrapping onto a new line in an HTML table

Let me show you how it currently looks: https://i.sstatic.net/OeHRg.png The maximum width of the cell is working properly, but the text is not wrapping to a new line as expected. Instead, it overflows out of the cell. Here is the CSS applied to the tabl ...

Issue encountered when attempting to upload several images on Laravel

I am working on a feature that allows registered users to create posts with the ability to upload multiple images. The goal is to store the image paths in the images table along with the post_id to associate each image with the correct post. However, upon ...

The secrets of z-index: Ensuring nested elements stay behind their parent element

Check out this demo to see the problem: http://jsfiddle.net/5sqxQ/2/ I am trying to make the sub menu appear below the main menu. I also want to use JavaScript to slide the menu from underneath when hovering over the parent li element. I don't real ...

Using JQuery to locate and substitute occurrences of HTML elements throughout my webpage

Looking for assistance with a JQuery search and replace task involving multiple instances of HTML within a specific DIV element on my webpage. Specifically, I need to change certain items in the textbox to a simpler display format. Here is a snippet of th ...

Having difficulty executing a function inside a JavaScript file

Within my index.php file, the following lines of code are present: <!doctype html><html class=""><head><title>a title</title> <link href="_css/boilerplate.css" rel="stylesheet" type="text/css"> <script type="text/jav ...

The collection has been altered; iteration action may not be performed in MVC

I keep encountering this issue: Collection was modified; enumeration operation may not execute protected void SendAddedMessages(IEnumerable<int> receiverIds, Result result) { foreach (var receiverId in receiverIds) { SendAddMessage(r ...

Adjust the dimensions of an SVG element using CSS within an li element's ::before pseudo-element

I'm working on a list where SVGs are loaded as list items. How can I adjust the height and width of the ::before pseudo-element to be 30px x 30px? Setting the height and width directly didn't work for me. Can someone assist with this? <div cl ...

Having trouble activating my Nav Toggle button on Bootstrap 4

My navbar toggle button isn't working and I'm not sure why. Could it be that I'm missing a class? Any help would be greatly appreciated as I've tried to find a solution on my own without success. Thanks <head> <meta charse ...

Styling a list using multiple columns with CSS

My goal is to design a columned list using only HTML and CSS. I have experimented with floats and inline-block, but it seems like inline-block is the best option for me due to these specific requirements: The layout must be in columns; The number of colu ...

"Troubleshooting: How to Fix Issues with document.getElementById on Dynamic Div

Struggling to incorporate div elements and generate graphs with Google charts? The issue arises in the draw function, where attempts to access a div element using document.getElementById() result in null values and an error message stating "container not ...

Saving HTML content into a MySQL database using Python

I have the task of storing locally stored crawled HTML pages. I successfully open the file using myHTML = open(file_location,'r').read() output can be found here: I am able to create the SQL query successfully: query_insert = ("insert into jo ...

Using the href="#contentId" attribute to navigate to a specific section of the content is not functioning as expected on Blazor Web Assembly pages

Exploring the world of Blazor, I find myself stuck on creating a navigation menu that doesn't seem to work as intended. I can't figure out what's causing the issue. Can anyone offer any suggestions to help me resolve this problem? Below are ...

Is there a way to update the href attribute within the script section in vue.js?

I need to dynamically set the href attribute of a link based on data retrieved from a database and rendered in the methods section. <template v-if="header.value == 'ApplicationName'"> <a id="url" href="#" target="_blan ...