Skip to content

Border - Top only #289

Closed
Closed
@mikhailbot

Description

@mikhailbot

Firstly, thanks for Tailwind!

I'm trying to add a border-top to a div and I'm not sure that's even possible currently... on version 0.2.2

<div class="border-t border-red">...</div>

...outputs...

.border-red, .hover\:border-red:hover {
    border-color: #e3342f;
}

.border-t {
    border-top-width: 1px;
}

But this doesn't add a border as there's no border-style! So I'l add border-solid which should fix that...except it adds the below:

.border-solid {
    border-style: solid;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
}

Which works...except it also adds a border on all the other sides of the div of 4px!

screen shot 2017-12-04 at 4 16 54 pm

screen shot 2017-12-04 at 4 19 15 pm

Am I going crazy or doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions