Jonas Derminste Jonas Derminste - 2 months ago 8
CSS Question

Trying to get border to stay on bottom

Soo ive tried this code

.itemselected {
Width: 150px;
height: 150px;
border-bottom: 1px solid #111;
}


But when i use that it loks very weird like theres a border around the Whole thing, i only want the border at the bottom.

Answer
.itemselected {
Width: 150px;
height: 150px;
border-bottom: 1px solid #111;
border-top: 0;
border-left: 0;
border-right: 0;
}

That should fix it, i had the same problem before but when i used that code to set the other borders to 0 it worked perfectly :)