diff --git a/webapp_hashtagswarm.py b/webapp_hashtagswarm.py
index cb2a72ad..96eb1045 100644
--- a/webapp_hashtagswarm.py
+++ b/webapp_hashtagswarm.py
@@ -245,10 +245,10 @@ def htmlSearchHashtagCategory(cssCache: {}, translate: {},
 
     htmlStr = htmlHeaderWithExternalStyle(cssFilename)
 
+    htmlStr += '<div class="follow">'
     htmlStr += '<center>'
     htmlStr += '<h1><a href="' + actor + '/search">'
     htmlStr +=  categoryStr + '</a></h1>'
-    htmlStr += '<div class="follow">'
 
     hashtagsDict = getHashtagCategories(baseDir, categoryStr)
     if hashtagsDict:
@@ -259,7 +259,7 @@ def htmlSearchHashtagCategory(cssCache: {}, translate: {},
                     '<a href="' + actor + '/tags/' + tagName + \
                     '" class="hashtagswarm">' + tagName + '</a>\n'
 
-    htmlStr += '</div>'
     htmlStr += '</center>'
+    htmlStr += '</div>'
     htmlStr += htmlFooter()
     return htmlStr