diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index c5a8b8218f14a451bfc1f25468a49ab3cc8ef5ca..78f6d3f84374909d3040824180d4c86b79dfb6a4 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -906,11 +906,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
         global $lang;
         // initialize the row counter used for classes
         $this->_counter['row_counter'] = 0;
-        $this->doc .= '<table class="inline ' . $this->startSectionEdit($pos, 'table') . '">'.DOKU_LF;
+        $this->doc .= '<div class="table"><table class="inline ' . $this->startSectionEdit($pos, 'table') . '">'.DOKU_LF;
     }
 
     function table_close($pos){
-        $this->doc .= '</table>'.DOKU_LF;
+        $this->doc .= '</table></div>'.DOKU_LF;
         $this->finishSectionEdit($pos);
     }