Difference between revisions of "Template:ETH Zurich/move elements"

(Insert content right after iGEM menubar.)
(Insert after #globalWrapper, to avoid CSS.)
Line 2: Line 2:
 
   Move header, contents and footer as far outside as possible of all those ridiculous divs, to avoid preloaded MediaWiki CSS.
 
   Move header, contents and footer as far outside as possible of all those ridiculous divs, to avoid preloaded MediaWiki CSS.
 
*/
 
*/
$("header").insertAfter("#top_menu_14");
+
$("header").insertAfter("#globalWrapper");
 
$(".contents").insertAfter("header");
 
$(".contents").insertAfter("header");
 
$("footer").insertAfter(".contents");
 
$("footer").insertAfter(".contents");

Revision as of 17:08, 12 October 2017

/*

 Move header, contents and footer as far outside as possible of all those ridiculous divs, to avoid preloaded MediaWiki CSS.
  • /

$("header").insertAfter("#globalWrapper"); $(".contents").insertAfter("header"); $("footer").insertAfter(".contents");