Frage

Is there a way to set only the top border for an element through Pixate? I don't see it in the docs.

I've tried both of these, but they apply the border to all four sides:

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

PLEASE NOTE: I am talking about Pixate here, NOT browser CSS!

War es hilfreich?

Lösung

You can't apply a border to a single side, no.

But there is a workaround:

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

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top