Using CSS to style divs within fieldset tag

I've been working on creating a fieldset with divs inside, but I'm facing an issue where the 1px border-bottom on each div is not showing up.

.debt_row_odd {
  display: table-row;
  width: 100%;
  background-color: #eef6f9;
  border-bottom: 1px dotted #ff0000;
}

.input-container {
  padding: 5px 10px;
  display: table-cell;
  float: right;
  width: 150px;
}

.content {
  max-width: 500px;
}

.lbl-row {
  display: table-cell;
  float: left;
  width: 310px;
  padding: 5px 10px;
  text-align: left;
  font-weight: normal;
  font-weight: bold;
  font-size: 12px;
}

.input-container select {
  width: 95%;
  display: block;
  line-height: 1.3;
  padding: .25em;
}

.content .text {
  padding: 0 0;
  height: 25px;
}
<fieldset class="ben-row taxC">
  <h2 class="section-title">Tell us about your income…</h2>
  <div class="debt_row_odd">
    <div class="lbl-row">
      <label for="status">Are you single or a couple?</label>
    </div>
    <div class="input-container">
      <select name="status" id="status" class="text">
        <option value="1">Single</option>
        <option value="2">Couple</option>
      </select>
    </div>

  </div>
  <div class="debt_row_odd">
    <div class="lbl-row">
      <label for="work">How many hours do <strong>you</strong> work per week?</label>
    </div>
    <div class="input-container">
      <select name="how_many_hours_do_you_work" id="work" class="text">
        <option value="1">Not working</option>
        <option value="2">8 to 15 hours</option>
        <option value="3">16 to 23 hours</option>
        <option value="4">24 to 29 hours</option>
        <option value="5">30 or more</option>
      </select>
    </div>
  </div>
</fieldset>

Despite trying various solutions like adding a 1px clear div and tweaks to the border-sizing, the border-bottom is still not appearing. Even after inspecting the element, everything seems in place. What could be causing this behavior?

Link to external source

Answer №1

modify this: display:inline-table;

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

Guide on showcasing an icon adjacent to the input fields once they have been validated successfully with the help of jquery plugins

I am struggling with the code below which is supposed to validate the SubmitForm when the button is clicked. It successfully changes the textboxes to red and displays an error message with a symbol if validation fails. However, I am wondering how I can sho ...

Obtain the accurate PHP variable value

This question seems unfamiliar to me I have a loop in place for($i=0;$i<count($certifications);$i++){ $etc=certifications[$i]; .... <img src="/cubo/addDocument.png"/ height="24" width="24" data-toggle="modal" data-target="#addEvent"> ...

What could be causing the code to malfunction and prevent window.ethereum from working properly?

While attempting to develop a dApp, I have encountered an issue with the browser in Visual Studio Code not recognizing the Ethereum connection, despite having installed MetaMask on the active browser session. Here is a snippet of my code used to test the c ...

Best Practices for Implementing an Autocomplete Search Box in HTML

I'm currently working on implementing the code below and I could really use some guidance. Despite reading and watching Google Developers' YouTube videos, I am still struggling as I am new to this. My main goal is to integrate an autocomplete sea ...

Using Perl script to identify and highlight rows based on specific cell values

I am struggling with how to highlight a row when Column F displays a value of F. I understand that I can achieve this using CSS/JS, but I keep hitting a roadblock. Coding is new to me, so I would greatly appreciate some assistance if possible. Objective: ...

Tips for resizing a background image horizontally without changing its height

Having a background image that is taller than the page and setting it as the background for the wrapper has caused some issues. Resizing the window results in a large amount of white space under the background image due to the fixed height of the wrapper. ...

Transforming an image by masking it to create a binocular-like view

I've been experimenting with creating a unique visual effect where an image is revealed through a binocular-shaped element that follows the mouse cursor. The circular part of the element moves along with the cursor, unveiling parts of the image as it ...

Display a list of items in Angular using ng-repeat, and allow the full description to appear in full width

<div ng-controller = "MyController"> <ul class="items" > <div ng-repeat="item in colors" ng-class="{active:isActive(item)}" ng-click="select(item); whattoshow=!whattoshow"> <li class="col-md-3 col-sm-3 col-lg-3 co ...

Utilizing Selenium for automating button clicks

When attempting to click a button represented by the following HTML code: <a href="javascript:submitPage('V','All Notes','');" class="viewFilter">All Notes</a> I have made multiple attempts to ...

The forecast button seems to be malfunctioning. Each time I attempt to click on it, a message pops up saying, "The server failed to comprehend the request sent by the browser (or proxy)."

Even though I provided all the necessary code, including the Flask app, predictionmodel.py, and HTML code, I am still encountering an error when running it locally after clicking submit. The browser (or proxy) sent a request that this server could not un ...

Display content from two URLs in separate frames on a single HTML webpage

While the concept seems simple, I have never attempted it myself. Here is the code I tried: <html> <frameset cols="30%,70%"> <frame src="www.google.com" name="frame1"> <frame src="www.yahoo.com" name="frame2"> </frameset ...

JavaScript Summation Calculation

I am currently working on calculating the sum of three scores and displaying the total as "Total:". However, I am facing an issue in dynamically updating the total whenever a score value changes. Is there a way to utilize the "onchange" event to achieve th ...

How can I showcase an image using Angular?

Recently, I've started working with Angular and I'm trying to display images using assets. I have a service that looks like this: const IMAGES = [ {"id":1, "category": "boats", "caption": "View from the boat", "url":"assets/img/boat_01.jpeg"}, ...

Reset the queue for the slideDown animation using jQuery

I am experiencing an issue with my code where multiple animation effects are running simultaneously. Specifically, when I hover over navbarli1 and then move to another li element with the same navbarli1 class, the slide-down effect is not working as expect ...

CSS for two columns with a width of 50% each

Below is a table for reference: <table width="100%"> <tr> <td id="td1"></td> <td id="td2"></td> <td id="td3"></td> <td id="td4"></td> </tr> </table> Is there a wa ...

Converting a Selenium By object into a CSS selector: A step-by-step guide

When working with Selenium WebDriver, it's a common practice to find elements using the By class. Currently, I'm using a ByChained selector and I'm curious if there's a way to convert a By object to a CSS selector. For instance: By sel ...

Do you think it's achievable to modify the color using CSS's order attribute?

When I look at the code in Firefox's inspector, I notice this : element { order:35; } Can a color be assigned to it? I am customizing my year outlook calendar and have set a particular day to display in a different color. But when I click on the mo ...

Basic selection menu layout

I have put together a basic menu for my WordPress site without relying on classes or IDs: <div class="main-menu"> <nav> <ul> <li> <a href="#" class="menu-link">home</a> ...

Tips for Embedding React into a Specific ID using Hooks on an HTML Document

I am currently diving into the world of React hooks. While I understand class components, Hooks seem to be missing a specific render section. When adding React to a webpage (without using CREATE REACT APP), how do I specify where my hook should run on the ...

Importing JSON Data into an HTML File

I need to load a JSON file containing HTML content into my main HTML file upon clicking a button. ABC.json includes: <li><img src="images/picture6.jpg" /></li> <li><img src="images/picture5.jpg" /></li> <li><i ...