Posted in site bugs
4421
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
147
This Month
469
This Year
787

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
There is a qualitative and quantitative difference between a day that begins with a little exercise, a book, meditation, a good meal, a thoughtful walk, and the start of a day that begins with a smartphone in bed.
Unknown
Random CSS Property

env()

The env() CSS function can be used to insert the value of a user agent-defined environment variable into your CSS, in a similar fashion to the var() function and custom properties. The difference is that, as well as being user-agent defined rather than user-defined, environment variables are globally scoped to a document, whereas custom properties are scoped to the element(s) on which they are declared.
env() css reference