Posted in site bugs
4136
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
131
This Month
479
This Year
502

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


Bajo
Random CSS Property

@charset

The @charset CSS at-rule specifies the character encoding used in the style sheet. It must be the first element in the style sheet and not be preceded by any character; as it is not a nested statement, it cannot be used inside conditional group at-rules. If several @charset at-rules are defined, only the first one is used, and it cannot be used inside a style attribute on an HTML element or inside the <style> element where the character set of the HTML page is relevant.
@charset css reference