Posted in site bugs
4147
2:43 am, January 1, 2021
 

badge placement is offset in list pages [fixed]

Another bug caused by the badge changes

I think this can be added to a grid as well, and have the category on the left and the date on the right. Then need to align the category badge nicer. 

Bug Status:
Fixed

Demo Link:
https://www.kruxor.com/list/code/ 

Looks like the format here is broken as well and needs to be added to a grid.

For this one i had to reset the absolute position and then re-align it as you can see in the following css. 

HTML

<!-- Original Format -->
        <div class='d-flex w-100 justify-content-between'>
          <div class='nice-date'><small class="text-muted">2:43 am, January 1, 2021 </small></div>
          <div class='category'><a href='/search/[@class_name]/[@category_urlenc]/' class="badge badge-secondary">[@category]</a></div>
        </div>

<!-- New Grid Format -->
        <div class='row list-item-meta'>
          <div class='col-lg-6'>
            <div class='nice-date'><small class="text-muted">2:43 am, January 1, 2021 </small></div>
          </div>
          <div class='col-lg-6'>
            <div class='category'><a href='/search/[@class_name]/[@category_urlenc]/' class="badge badge-secondary">[@category]</a></div>
          </div>
        </div>

CSS

.list-item-meta .category .badge {
  position:relative;
  top: 0;
}
.list-item-meta .category {
  position: relative;
  top: 0px;
  left: 0px;
  text-align: right;
}
2:43 am, January 1, 2021
2:43 am, January 1, 2021

View Statistics
This Week
76
This Month
293
This Year
513

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Old programmers never die; they just lose some of their functions.
Random CSS Property

speak-as

The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue.
speak-as (@counter-style) css reference