Web-bugs: www.boredpanda.com - design is broken

Created on 23 Dec 2017  ·  9Comments  ·  Source: webcompat/web-bugs



URL: https://www.boredpanda.com/

Browser / Version: Firefox Mobile 57.0
Operating System: Android 7.0
Tested Another Browser: Yes

Problem type: Design is broken
Description: The text is not properly aligned.
Steps to Reproduce:

Screenshot Description

_From webcompat.com with ❤️_

browser-firefox-mobile priority-normal

Most helpful comment

Thank you guys, I've fixed it :)

All 9 comments

I was able to produce this issue in Nightly but I have tried it chrome and focus and everything was fine there.

With a bit outline.

Screenshot Description

This is the markup as-is…

<nav class="mobile-category-list"> <ul> <li class="popular active"> <a href="https://www.boredpanda.com">Featured</a> </li> <li> <a href="https://www.boredpanda.com?show=trending">Trending</a> </li> <li> <a href="https://www.boredpanda.com?show=recent">Latest</a> </li> </ul></nav>
.mobile-category-list ul {
    background-color: #d9d9d9;
    display: table;
    list-style: none;
    width: 100%;
    border-radius: 3px;
    padding: 2px;
    box-sizing: border-box;
}
.mobile-category-list ul li {
    height: 30px;
    display: inline-block;
    width: 33.3333333%;
    text-align: center;
}

.mobile-category-list ul li a {
    color: #989898;
    font-size: 12px;
    display: block;
    line-height: 30px;
    font-family: Roboto;
    font-weight: 500;
    border-radius: 3px;
}

Ah! There are spaces in between the li and a elements. Let's remove those. Let's try to remove these…

<nav class="mobile-category-list"> <ul> <li class="popular active"><a href="https://www.boredpanda.com">Featured</a></li> <li><a href="https://www.boredpanda.com?show=trending">Trending</a></li> <li><a href="https://www.boredpanda.com?show=recent">Latest</a></li> </ul></nav>

not changing anything.

ok let's try to remove the spaces in between the </li> <li>

<nav class="mobile-category-list"> <ul><li class="popular active"><a href="https://www.boredpanda.com">Featured</a></li><li><a href="https://www.boredpanda.com?show=trending">Trending</a></li><li><a href="https://www.boredpanda.com?show=recent">Latest</a></li></ul></nav>

Ah this! fixed it.

Screenshot Description

but there's simpler way for fixing this design. Just changing the display: table with display: flex.

.mobile-category-list ul {
    background-color: #d9d9d9;
    display: flex;
    list-style: none;
    width: 100%;
    border-radius: 3px;
    padding: 2px;
    box-sizing: border-box;
}

I have also filed https://bugzilla.mozilla.org/show_bug.cgi?id=1452870
I have the feeling there's an already existing issue for this.

Reaching out to Justina Palinaviciute, Head of Ad-Ops and Monetization at BoredPanda, via LinkedIn.
https://www.linkedin.com/in/justinapalinaviciute/

Will look into this guys ;) thanks.

Thank you guys, I've fixed it :)

Very very cool. Thanks a lot.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GeorgeWL picture GeorgeWL  ·  5Comments

karlcow picture karlcow  ·  5Comments

tGstep picture tGstep  ·  3Comments

Ezio916 picture Ezio916  ·  4Comments

bull500 picture bull500  ·  5Comments