- partially shadedListItem

I have a simple list with some elements. I added a hover effect to change the background color of <li> tags to white, but for some reason the height doesn't fill completely. I attempted to reset the margin and padding with li{padding:0; margin:0;} without success.

Here is the code snippet: http://jsfiddle.net/ctvalex/jh3t5t1b/2/

If anyone has any suggestions or solutions, they would be greatly appreciated.

Answer №1

To modify the display style of

#bottom-menu ul li 

simply change it to

display: inline-block;

so it appears as follows

#bottom-menu ul li {
   display: inline-block;
   padding-left: 10px;
   padding-right: 10px;
   line-height: 50px;
}

View the updated version http://jsfiddle.net/jh3t5t1b/6/

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

Enhancing User Experience with Bootstrap V5 Form Validation and Sweetalert2: Displaying a Message of Success Upon Successful Submission

I am currently working on implementing a simple form using Bootstrap 5 that includes validation. My goal is to display an alert message when the form field is successfully submitted using Sweetalert2. Below is the code I have: HTML <form action=&q ...

AngularJS allows for the ng-view directive to showcase a dynamic footer element that is positioned outside of its

I am relatively new to using angular.js and I could use some guidance on the best approach to implementing the functionality described in this scenario. My HTML structure consists of a header, sidebar, and content area provided by <div class="container- ...

What are the steps to transfer JSON data from HTML to a Node.js server?

I constructed a user interface in HTML to manage a configuration file, but I am encountering difficulties when attempting to save a new JSON object to the existing config file. My objective now is to send a JSON object from an HTML file to a nodejs server ...

Using jQuery to show array elements with unique formatting or separator

Using the jQuery map/get function, I am able to retrieve an array of values from multiple checked checkboxes: $('input[type=checkbox]:checked').map(function(_, el) { return $(el).val(); }).get(); After executing this code, I will get an arr ...

Tips for modifying the HTML code of a particular page on WordPress

I am looking to make some modifications to the HTML code on a particular page of my WordPress website. Specifically, I need to include a few lines in the head section. I attempted to use the "What the file" plugin, but it only provided access to the page. ...

Replacing the tbody element in React with centered text using inline styles ---If you want

I am working with an empty array in React that I translate into state. When the array is empty, I want to insert a text that says "no match events yet..." into a react-bootstrap Table's tbody. In the current setup, I am struggling to center the text ...

Reduce the height of a single column in Bootstrap

My goal is to create a footer design using Bootstrap that looks like this: https://i.sstatic.net/7xsKg.png I've successfully set up the left column (Red Background) of the footer, but I'm having trouble styling the right column (Black Backgroun ...

Challenges Arising from Using Two Inputs within One Label

I'm seeking a solution to link together a radio button and text input in a label that incorporates Bootstrap's button style. Visually, the following code achieves what I want: <form> <div class="btn-group" data-toggle="b ...

What is the best method for achieving a div that is 100% height in relation to the screen while also having a `top

My div element is set with a top='70px' property. However, when the div has content that requires scrolling, it moves down and the end of the scroll is not visible. I tried adding the following properties to the div, but it did not resolve the ...

The functionality of bootstrap.styl malfunctions during the parsing process in stylus

I am attempting to incorporate stylus, a css preprocessor, with twitter bootstrap version 2.04. Upon downloading boostrap, I execute the command "stylus --css < bootstrap.css > bootstrap.styl" to generate a bootstrap.styl file. However, upon trying t ...

Ways to turn off .removeClass()

Encountering an issue with jquery-2.1.4.js. Upon integrating a layerslider into my website, the script modified div classes. Attempted using older versions of the script without success. Currently have classes as follows: <a href="#" class="col-md-3 ...

Creating a text gradient in CSS with a see-through background

Picture for Inspiration Example of HTML Design <div class="Heading"> Raffle <span>EXTRAVAGANZA</span> </div> Tips While not required, adding a gradient would enhance the overall look. ...

Showing an image based on the selected value from a dropdown menu using jQuery

I am trying to dynamically display the correct image based on the option selected in a dropdown menu. Currently, I am able to show the image if the option value matches the filename; however, I need help with displaying the image using echo rather than t ...

Sending a different name for the jQuery parameter

I'm looking to select CSS settings based on the presence of a data tag. What would be the correct approach for this? var datadirection = 'left'; //default direction if( $(this).attr('data-right') ){ datadirection = 'righ ...

Looking to subtly transition from the current webpage to the next one with a fading effect?

I'm looking to create a smooth transition between web pages on my site by slowly fading out the current page and fading in the next one when a link is clicked. $(document).ready(function() { $('body').css("display","none"); $(&a ...

Thymeleaf is essential for proper functioning of external CSS stylesheets

I am puzzled about why I need to include the thymeleaf in both my HTML tags and in the link to my external CSS stylesheet in the head section. If I remove any of it, the stylesheet becomes disconnected from the HTML document. So, what is the necessity of ...

Tips for removing focus outlines on button clicks

Whenever I click on my buttons, they all have a highlighted border around them. This issue is occurring in Google Chrome. <button class="btn btn-primary btn-block"> <span class="icon-plus"></span> Add Page </button> I am cu ...

Learn how to cycle through three different texts that appear in the same spot using smooth transitions

I am working with three different rows that contain the Typography component. My goal is to display the first row, followed by the second, then the third, and back to the first one in a continuous loop. All three rows should be shown in the same location, ...

What impact does setting a variable equal to itself within a Dom Object have?

Within my code example, I encountered an issue with image sources and hrefs in a HTML String named tinymceToHTML. When downloading this html String, the paths were set incorrectly. The original image sources appeared as "/file/:id" in the String. However, ...

Overlay a div on top of an image in an HTML email

To display text over an image in HTML email, I am looking for a solution since using margin or position is not working as required. Below is the code snippet I have tried: <div style="padding-right:25px;padding-left:20px"> <div style="padding-t ...