The pixel area is applied to one side.

Is there a way to set only the top border of an element through Pixate? I do not see it in the documents.

I tried both of them, but they apply a border with all four sides:

#footer {
    border-top:5px solid #FF0000;
}
#footer {
    border:5px solid #FF0000;
    border-width:5px 0px 0px 0px;
}

PLEASE NOTE: I'm talking about Pixate here, not in the CSS browser!

+4
source share
1 answer

You cannot apply a border to one side, no.

But there is a workaround:

#footer {
  box-shadow:inset 0px 1px 0px solid #FF0000;
}

This should create the same effect. Good luck. :)

+1
source

Source: https://habr.com/ru/post/1536848/


All Articles