0

In Woocommerce, I am using the code from this answer thread, and it works, except the border does not extend around the content:

border does not extend around the content

Does anyone know how to fix this?

LoicTheAztec
  • 229,944
  • 23
  • 356
  • 399
Tony O
  • 3
  • 2

1 Answers1

0

You need a clearfix before closing the div with the border.

<div class="clear"></div>

Then in CSS

.clear { clear: both; }

Or you could just inline the style:

<div style="clear: both"></div>
Peter
  • 1,615
  • 1
  • 9
  • 17
  • Thanks for the answer. I'm not sure where to find the div with the border. Would it be in the woocommerce files, or the theme files? – Tony O Dec 13 '18 at 00:10
  • Sorry, I don't know where that would be in woocommerce. Maybe in `/templates/single-product/tabs/tabs.php` ? – Peter Dec 13 '18 at 00:16
  • Found it. It was in woocommerce\templates\single-product\tabs\tabs.php, line 33 – Tony O Dec 13 '18 at 00:23