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

Line 87: Line 87:
 
     }
 
     }
 
function validate3() {
 
function validate3() {
         if (document.getElementById('margin').checked) {
+
         if (document.getElementById('top_menu_under').checked) {
             document.getElementById("content").style.margin-left= "initial";
+
             document.getElementById("top_menu_under").style.margin-left= "initial";
 
         } else {
 
         } else {
             document.getElementById("content ").style.margin-left = "0px";
+
             document.getElementById("top_menu_under").style.margin-left = "none";
 
         }
 
         }
 
     }
 
     }

Revision as of 05:48, 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

#sideMenu { display: none; }

The above code hides the side menu

Show side menu

#content { width: initial; }

The above code hides the right margin.

Show right margin