The div's background color is not displaying as expected

Can you help me figure out why the background color of the 'social' div is not appearing in this HTML code? I have tried using overflow: hidden and clear: both, but neither of them seems to be working.

@charset "utf-8";
/* CSS Document */

body {
border-top: solid 10px #ff6b39; 
padding: 0; 
margin: 0; 
}

.wrap {
width: 940px; 
margin: 0 auto; 
}

header {
padding: 0; 
margin: 0; 
padding-top: .001em;
position: relative; 
border-bottom: 2px solid #e5e5e5; 
}
...

Answer №1

It appears that you have implemented a background-image for list-items, but they are not currently showing up in the code output. If you remove the float:left property from the .social ul li section, you should be able to view the div's background color.

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

Utilizing the p tag to incorporate dynamic data in a single line

I am currently working with two JSON files named contacts and workers. Using the workerId present in the contacts JSON, I have implemented a loop to display workers associated with each contact. The current display looks like this: https://i.sstatic.net/AR ...

Is there an issue with Webkit browsers not supporting attribute selectors and pseudo elements?

Similar Issue: Combine CSS Attribute and Pseudo-Element Selectors? http://jsfiddle.net/BC3Td/ In my testing, I found that in Firefox and Opera everything works fine, but Chrome, Safari, and Mobile Safari are ignoring the second pseudo element css rul ...

Animate the movement of a div

Within the given code snippet, the .logo element is initially hidden. The goal is to make it visible upon scrolling, while simultaneously animating the movement of the <ul> element to the right (e.g., sliding). Upon reviewing the demo provided, one c ...

AlignmentPositioning Customize Check Boxes with Progress Bars in Bootstrap 4

I have the code snippet below: <div class="row"> <div class="col-md-2"> <div class="custom-control custom-checkbox my-auto" style="display: inline; align-items: center;"> <input class="custom-control ...

Using JavaScript, iterate over an array to generate input fields and assign values, with the last item in the array pop

I'm working with a div containing the id "inputs" in my HTML file, along with the following JavaScript code: let countries = [ {country: "Honduras", script: `<script src="crazy dog eats drool"> 'cha cha'` }, {country: "Chile", ...

What steps can I take to stop the comments section on my WordPress website from taking up the entire screen?

After launching my WordPress website, I noticed that the comments section under each post is stretching across the entire width of the screen, instead of aligning with the margins like the rest of the page. Can someone advise on how to adjust the margins ...

Using colored circles in ASP Dropdownlist ListItems (without jQuery): A step-by-step guide

Objective: To create a Dropdown list that displays a green circle if someone's Availability is True, and a red circle if someone's Availability is False. Note: The task needs to be accomplished without the use of jQuery, as it is restricted in t ...

Error message displayed when attempting to send emails through an HTML form obtained from a complimentary template site

Currently, I am in the process of learning to code basic websites but I'm facing some challenges with getting the contact form to function properly. I decided to work with a free template that can be found at this link: and uploaded it to a shared ho ...

Tips for changing input box value according to row id

After analyzing the web screenshot, it appears that the time value is retrieved from the database column named 'settime'. My intention was to input a custom value into the 'settime' column and update that specific row. However, when I a ...

The z-index property in CSS is ineffective on Firefox browsers

My current project involves implementing a dual slider input range. The HTML code I have written looks like this: .acCalcInputRange input[type="range"] { pointer-events: none; position: absolute; bottom: 0.6rem; border: none; outline: none; ...

Launch the modal and automatically navigate to a designated DIV

I am trying to open a modal window with a link and scroll to a specific DIV inside it. HTML: <a href="#teamMembers" data-toggle="modal" class="teamMemebrScroll1">read more</a> <a href="#teamMembers" data-toggle="modal" class="teamMemebrS ...

Footer flexbox element not aligning underneath other content containers

After creating a layout using CSS and Flexbox, I encountered an issue with the footer div. When the page loads, the footer is displayed at the bottom of the page. However, as content is added or loaded dynamically, it causes the footer to float in the midd ...

Place a paragraph element within the footer section

I'm having trouble aligning the <p> vertically in the footer. I've attempted to use vertical-align:middle; and margin-bottom:10px; for the p element, but it doesn't seem to be working as expected. Code can be found here: http://jsfidd ...

What is the best way to restrict the creation of objects in a JavaScript list?

Experiencing a fun challenge with HTML coding! Take a look at my ordered list in HTML: <ol id="myList"> <li>Tea</li> <li>Milk</li> <li>Water</li> </ol> <button onclick="myFunction()">Try it</ ...

I am trying to retrieve the class name of each iframe from within the iframe itself, as each iframe has a unique class name

My index HTML file contains multiple Iframes. I am trying to retrieve the class names of all iframes from inside an iframe. Each iframe has a different class name. If any of the iframes have a class name of 'xyz', I need to trigger a function. I ...

PHP results can be manipulated with jQuery and JavaScript

I have a unique jQuery script that is designed to insert custom content after each paragraph in news articles. Here's an example: $(document).ready(function() { $("<a>The link inserted in jQuery</a>") .insertAfter("p") ...

Place the text at the bottom of two divs within a parent div

Is there a way to structure my CSS so that the text in "header-right" is aligned at the bottom, while keeping the image in "header-left" aligned at the top? Below is my HTML code: <div class="container"> <div class="header-left; ...

What is the best way to condense a flex item that contains a span with wrapped text?

I am uncertain if it is achievable, but I am attempting to determine if I can reduce the size of a flex item around a span with text wrapping. Currently, I am trying to eliminate whitespace to the right of the text in the second row. body { height: 7 ...

The anchor link is not aligning properly due to the fluctuating page width

Seeking help to resolve an issue I'm facing. Maybe someone out there has a solution? The layout consists of a content area on the left (default width=70%) and a menu area on the right (default width=30%). When scrolling down, the content area expand ...

Ways to incorporate footer at the bottom on Django

Is there a way to ensure the footer remains at the bottom in my Django template? I have added content using blocks in Jinja format. See the code snippet below: <div class="ui container"> {% block content %} {% endblock content % ...