Adrian Marinica
Adrian Marinica

Reputation: 2201

CSS div border with offset

How can I make a div's side (left/right) border start lower than it's actual size? I know I can reduce it's height and then add a margin-top, but I don't want that. Is it possible to simply lower down the starting point of the border?

__________

|
|
|

Upvotes: 5

Views: 21434

Answers (1)

BoltClock
BoltClock

Reputation: 723598

You can only do this by omitting the top border and either

  • adding a top margin to the bottom element or
  • adding a bottom margin to the top element

Upvotes: 5

Related Questions