web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

www.universia.com.br - layout is messed up

Open dlorente opened this issue 10 years ago • 6 comments

URL: http://www.universia.com.br/ Browser / Version: Firefox 50.0 Operating System: Linux Problem type: Layout is messed up

Steps to Reproduce

  1. Navigate to: http://www.universia.com.br/

Menu isn't showing up properly

Screenshot Description

From webcompat.com with ❤️

dlorente avatar Sep 30 '16 22:09 dlorente

@dlorente Thanks for the report.

On Safari,

Screenshot of the site issue

Ok let's see if we can make it visible. I added a z-index on the li.

.header-nav .header-nav-first ul li {
    position: relative;
    text-transform: uppercase;
    text-align: center;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    border-right: 1px solid #121317;
    letter-spacing: 0.06em;
    z-index: 1000000;
}

With this we can see that the characters are here but do not fit the cell.

Screenshot of the site issue

There is something which makes the characters wider. letter-spacing. Let's try to change that.

.header-nav .header-nav-first ul li {
    position: relative;
    text-transform: uppercase;
    text-align: center;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    border-right: 1px solid #121317;
    /* letter-spacing: 0.06em; */
    z-index: 1000000;
}

Screenshot of the site issue

ok removing the letter-spacing is fixing it.

On Safari, when increasing the letter-spacing a lot to 0.30em we still get the characters in the menu. So the way the text is popping out in Safari and Firefox is different.

Adding an outline

.header-nav .header-nav-first ul li * {
    outline: 1px solid pink;
}

On Firefox

Screenshot of the site issue

On Safari

Screenshot of the site issue

karlcow avatar Oct 03 '16 05:10 karlcow

The computed letter-spacing is in

  • Safari: letter-spacing: 0.9599999785423279px;
  • Firefox: letter-spacing: 0.966667px

no significant difference.

ok. Found one way to fix it which doesn't destroy the design in other browsers. Removing padding: 0 14px;

.header-nav ul a {
    height: 100%;
    color: #ffffff;
    font-size: 0.75em;
    line-height: 1.25em;
    font-weight: bold;
    /* padding: 0 14px; */
    display: block;
    -webkit-transition: color 0.3s ease-out, background-color 0.3s ease-out;
    -moz-transition: color 0.3s ease-out, background-color 0.3s ease-out;
    -o-transition: color 0.3s ease-out, background-color 0.3s ease-out;
    transition: color 0.3s ease-out, background-color 0.3s ease-out;
}

And it fixes Firefox.

Screenshot of the site issue

ALSO. They have a typo in their CSS for

content: "";
display: inline-block;
height: 99%;
vertical-align: middle;
width: 1px;
margin-left: -1px;
marign-right: -4px;

marign-right instead of margin-right

Switching to needscontact.

karlcow avatar Oct 03 '16 05:10 karlcow

@dlorente If you could help us find a contact for the site and eventually report the issue with a link here, that would be great.

karlcow avatar Oct 03 '16 05:10 karlcow

@karlcow I sent a message to they using this link: https://contacto.universia.net/open.php

I sent the link to this issue and explained what is happening

felipez3r0 avatar Oct 03 '16 18:10 felipez3r0

@dlorente Wonderful. Thanks a lot. Moving to sitewait.

karlcow avatar Oct 03 '16 21:10 karlcow

They fixed it by changing the menu items!

@felipez3r0 THANKS a lot.

karlcow avatar Oct 05 '16 07:10 karlcow