Difference between revisions of "Team:Hong Kong UCCKE/HTML Test"

Line 67: Line 67:
 
         if (document.getElementById('margin').checked) {
 
         if (document.getElementById('margin').checked) {
 
             document.getElementById("top_menu_under").style.display = "initial";
 
             document.getElementById("top_menu_under").style.display = "initial";
 +
            document.getElementById("content").style.margin-left = "30px";
 
         } else {
 
         } else {
 
             document.getElementById("top_menu_under").style.display = "none";
 
             document.getElementById("top_menu_under").style.display = "none";

Revision as of 05:37, 20 June 2016

Edit this page

H1 Heading

H2 Heading

H3 Heading

#top_title { display: none; }

The above code hides the top title and logo bar.

Show top title and logo bar

#top_menu_14 { display: none; }

The above code hides the top nav bar.

Show top nav bar

#top_menu_under { display: none; } #content { margin-left: 0px; }

The above code removes all margin of the content.

Show margin