logo
down
shadow

HTML and CSS Inline issue with list item


HTML and CSS Inline issue with list item

By : linda.fang
Date : November 19 2020, 12:41 AM
To fix the issue you can do Just use float:left in li elements:
Check the DEMO
code :
li {
display: inline-block;
float: left;
width: 166px;
margin: 20px 10px 0 0;
}


Share : facebook icon twitter icon
List item inline-block issue in IE8

List item inline-block issue in IE8


By : Dollar Sg
Date : March 29 2020, 07:55 AM
this one helps. I have a horizontal list of color swatches, and each list item has the following markup: , Try
code :
vertical-align: middle;
make a list item inline when list has list-style-type

make a list item inline when list has list-style-type


By : Guy Shefer
Date : March 29 2020, 07:55 AM
Hope this helps DEMO
HTML
code :
<ul>
    <li>To get to the other side</li>
    <li class="correct">To prove he's no chickenTo prove he's no chickenTo prove he's no chickenTo prove he's no chickenTo prove he's no chickenTo prove he's no chicken</li>
    <li>because it was the chicken's day off</li>
</ul>
.correct {
    display:inline;
    background: rgba(3, 113, 200, 0.2);
}

.correct:before {
   content: "";
   display: list-item;
   float: left;
}
How to style each list item in unordered list without inline styling?

How to style each list item in unordered list without inline styling?


By : Richard Capraro
Date : March 29 2020, 07:55 AM
To fix this issue If you want to style each list item differently, you can use the nth-child selector:
code :
/* First item */
li:nth-child(1) {
  color: red;
}

/* Second item */
li:nth-child(2) {
  color: blue;
}


/* Add additional items */
<div id="topmenudiv">
  <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    <li>Item 4</li>
    <li>Item 5</li>
</ul>
</div>
How to append text interactively as a list item to a list in the HTML document without storing the list item as a javasc

How to append text interactively as a list item to a list in the HTML document without storing the list item as a javasc


By : Bibin Kb
Date : March 29 2020, 07:55 AM
this one helps.
So I am just wondering how the compiler interprets an appendChild call of a text node to a document.createElement that hasn't been created yet...
code :
list.appendChild(document.createElement('li')).appendChild(document.createTextNode(s));
var textnode = document.createTextNode(s)
var node = (document.createElement("li")).appendChild(textnode)
document.getElementById("sList").appendChild(node)
Right item of inline list covering text of left item

Right item of inline list covering text of left item


By : user3499154
Date : March 29 2020, 07:55 AM
hop of those help? z-index only works relative to siblings within the nearest ancestor with displays of: relative, absolute or fixed.
To fix your situation, you will have to use js to apply a class to the "current"
  • that you want to show on top. Then put it in your style sheet with a bigger z-index.
    code :
    <coverflow-images>
      <li>
        <h1></h1>
        <div class="coverflow-image-container">
          <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQEP_259KLSzEG7_UQG-lzSlnEOPOFSQsPqXXT-GsDFeoqv8zGa&s" alt="Image" class="coverflow-image-bg">
        </div>
      </li>
      <li class="active"> // this indicates the current image
        <h1>Why is the next image covering this?</h1>
        <div class="coverflow-image-container">
          <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQEP_259KLSzEG7_UQG-lzSlnEOPOFSQsPqXXT-GsDFeoqv8zGa&s" alt="Image" class="coverflow-image-bg">
        </div>
      </li>
      <li>
        <h1></h1>
        <div class="coverflow-image-container">
          <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQEP_259KLSzEG7_UQG-lzSlnEOPOFSQsPqXXT-GsDFeoqv8zGa&s" alt="Image" class="coverflow-image-bg">
        </div>
      </li>
    </coverflow-images>
    
    coverflow-images {
      top: 0;
      left: 0;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      height: 100vh;
      font-size: 0;
      line-height: 0;
      padding: 0 12.5vw;
    }
    
    coverflow-images li {
      pointer-events: none;
      will-change: transform;
    }
    
    // magic
    coverflow-images li.active {
      z-index: 1;
    }
    
    coverflow-images li:nth-child(odd) {
      width: calc(65vh*21/29.7);
      height: 65vh;
    }
    
    coverflow-images li:nth-child(even) {
      width: calc(55vh*21/29.7);
      height: 55vh;
    }
    
    coverflow-images h1 {
      z-index: 1;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      transition: all 1s ease;
      line-height: 1;
      color: black;
      font-size: 30px;
      transition: font-size 1s ease;
      white-space: nowrap;
      pointer-events: auto;
      left: 50%;
      transform: translateX(-50%);
    }
    
    coverflow-images .coverflow-image-container {
      position: absolute;
      top: 0;
      width: inherit;
      height: inherit;
      pointer-events: none;
      transition: all 1s ease;
    }
    
    coverflow-images img {
      position: absolute;
      top: 0;
      width: inherit;
      height: inherit;
      pointer-events: none;
      will-change: transform, width, height;
      object-fit: cover;
      transition: height 1s ease, width 1s ease, transform 1s ease;
    }
    
  • Related Posts Related Posts :
  • AMP carousel direction change
  • Bootstrap multiple carousel not working on thumbnails click
  • Is there a way to put a permanent space into an input field?
  • Html boxes not displaying properly
  • How can I change a variable in Jekyll _config.yml dynamically?
  • How can I prevent DIVs from overlapping a right floated image?
  • Eclipse and .tml files highlighting not working
  • Footer is not in the bottom of the window, (phonegap jquery mobile app for windows mobile)
  • How to put div over another
  • How to use glyphicons in bootstrap 3.0
  • Wordpress page links not working
  • How Do I Use CSS to Set the Color of An ALink?
  • Webpage doesn't scroll smoothly on screen
  • YouTube iframe, browser looks for file locally
  • html displaying inline image
  • Font acting differently on IE and Firefox
  • Encoding and decoding of the character references
  • An Image Button navigate to another site html/css
  • IE8 "Save Target as ..." won't display for block elements
  • Image hover transition for span - CSS
  • How to apply min and max on textarea?
  • How to draw multiple horizontal lines (Notebook Paper effect) using css?
  • Table Printing Issue: Gaps in top and Bottom Border of th Elements
  • grouping elements with div and applying stylesheet for that group
  • Click <div> to expand, then click again to shrink - Its expanding, just not shrinking
  • CSS - How can I center a <script>'s output?
  • Django's template variable gets interpreted as HTML
  • ngx datatable vertical scroll with rowheight set to auto
  • How to make input text border with CSS when it's OnFocus
  • Anyone know of a calendar web widget for my website I could use?
  • How does Bootstrap manage to use fixed positioning for navbar on iOS?
  • Centered text in fully clickable table cell
  • Compare HTML and HTML5
  • steps of creating webpage in bangla
  • css root element margin
  • What is the point of using absolute positioning in CSS?
  • Responsive solution for long URLs (that exceed the device width)
  • Divs don't collapse as they should - media queries
  • QTreeWidgetItem display html
  • Testing html/css image on local from jfiddle
  • long attribute value of HTML
  • Why my svg picture is truncated at the bottom when embedded in html
  • Display CSS: some divs fixed, some flexible (2)
  • How to append href strings with variables in html with PHP?
  • css - Why is there a big white space between text lines?
  • div image position fixed + scroll
  • Hide specific elements from html using css
  • how to align the arrow in menu item?
  • How do I create a trapezoidal button using CSS?
  • Background position seems to be inaccurate
  • CSS background color is overruled by the background image
  • Oblique or twisted border shape
  • Overflow in div tag doesn't work
  • How to show the vertical image into horizontal manner using HTML and CSS?
  • css3 animation issue move div to left and move it back
  • HTML <code> - get rid of newlines
  • Vertical Align Two Spans (Different font size)
  • Position fixed not working with video poster
  • Having issues placing html buttons side by side in a form
  • how to center text in the middle of the page
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org