Posted in site bugs
4918
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
155
This Month
540
This Year
1284

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
I believe that in order to better your knowledge base, it takes a lot of failing in order to succeed. I don't consider anything a failure as long as you get back up and you learn from your own mistakes.
Unknown
Random CSS Property

translateX()

The translateX() CSS function repositions an element horizontally on the 2D plane. Its result is a <transform-function> data type.
translateX() css reference