Title: CSS Div Element Borders
Last modified: August 22, 2016

---

# CSS Div Element Borders

 *  [sandyfischler](https://wordpress.org/support/users/sandyfischler/)
 * (@sandyfischler)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-div-element-borders/)
 * Where we are having an issue in writing our CSS to have borders on elements.
   
   When our sidebar expands we want the border-right to continue. What we want is
   for the height of our border-right to continue when the sidebar is longer than
   the content box.
 * Here it looks right:
    [http://entreuse.com/robertfortunato/press-clippings/](http://entreuse.com/robertfortunato/press-clippings/)
 * Here it isn’t continuing down to match the sidebar.
    [http://entreuse.com/robertfortunato/awards/](http://entreuse.com/robertfortunato/awards/)
 * How to we configure our CSS so that
    the content box’s min-height is automatically
   equal to the sidebar’s height. Or is that a javaScript thing?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-div-element-borders/#post-5416993)
 * What about applying it as a border left of the sidebar instead?
 *  Thread Starter [sandyfischler](https://wordpress.org/support/users/sandyfischler/)
 * (@sandyfischler)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/css-div-element-borders/#post-5416998)
 * There are places where our sidebar is longer than our content box and places 
   where our content box is longer than the sidebar.
 * Thanks for the fast response!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS Div Element Borders’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [height](https://wordpress.org/support/topic-tag/height/)
 * [min-height](https://wordpress.org/support/topic-tag/min-height/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [sandyfischler](https://wordpress.org/support/users/sandyfischler/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/css-div-element-borders/#post-5416998)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
