f1008424042a846350a8dc3d06063f48afe32ae1 donnak Thu Feb 2 00:38:02 2017 -0800 Made a few cosmetic changes to page format to show the coding style we want to use. HTML-encoded the quotes. Refs #18504 diff --git src/hg/htdocs/template.html src/hg/htdocs/template.html index bcaec06..bd2021d 100755 --- src/hg/htdocs/template.html +++ src/hg/htdocs/template.html @@ -9,176 +9,168 @@ 4. Indentation: Indent every child element 2 spaces 5. Special characters: Don't use entity references (set editor to UTF-8), except < & 6. Limit lines to a maximum of 100 characters -->
-This is a standard paragraph ('p' tag) of explanatory text. +This is a standard paragraph ("p" tag) of explanatory text. The next part of the page demonstrates how to create a multi-column layout using the grid layout feature of bootstrap.css, a widely used stylesheet which is now -included in the browser static pages. -
+included in the browser static pages.This is one of two subsections, formatted as equal-sized columns. The bootstrap grid contains 12 columns; column widths are specified using - classes 'col-md-1' through 'col-md-12'. - This example contains two divs, each assigned class 'col-md-6', within a 'row' div. -
+ classes "col-md-1" through "col-md-12". + This example contains two divs, each assigned class "col-md-6", within a + "row" div.- NOTE: The two columns are displayed only on wide screens. On small screens, the sections will be - stacked vertically (a feature of bootstrap responsive layout). -
+ NOTE: The two columns are displayed only on wide screens. On small screens, the sections will + be stacked vertically (a feature of bootstrap responsive layout).- This is the next level, a subsection. Use an 'h3' tag for this. To structure content - below this level use a list, table, or titled paragraph: -
+ This is the next level, a subsection. Use an "h3" tag for this. To structure content + below this level use a list, table, or titled paragraph:- Use the 'h6' tag at any level in the section hierarchy to precede a paragraph with a bolded title. -
+ Use the "h6" tag at any level in the section hierarchy to precede a paragraph with a + bolded title.-The description of lists below is formatted as an HTML definition list. Use this format when defining terms or phrases. (You will not see this much in our current pages -- instead, this type of text was usually styled ad-hoc using 'strong' and 'br' tags). -
+ The description of lists below is formatted as an HTML definition list. Use this format when + defining terms or phrases. (You will not see this much in our current pages -- instead, this + type of text was usually styled ad-hoc using "strong" and "br" tags).- Here is a bulleted list ('ul' and 'li' elements). To suppress the 'bullet' add the - class 'gbsNoBullet' to the 'ul' tag. -
+ Here is a bulleted list ("ul" and "li" elements). To suppress the bullet + add the class "gbsNoBullet" to the "ul" tag.
- Here is a numbered list ('ol' and 'li' elements): + Here is a numbered list ("ol" and "li" elements):
- Here is a table ('table', 'tr', 'th', and 'td' elements): -
+ Here is a table ("table", "tr", "th", and "td" + elements):Type | Total |
---|---|
Chromosomes | 261 |
Haplotypes | 261 |
Unlocalized contigs | 1270 |
- To horizontally center the text in each table cell, add the class 'gbsCenterText' to the table element. -
+ To horizontally center the text in each table cell, add the class "gbsCenterText" to + the table element.- Here is some code in a preformatted section ('pre' and 'code' tags): -
+ Here is some code in a preformatted section ("pre" and "code" tags):sudo -i
bash browserSetup.sh install
-And here is some text with a bit of code
embedded (just the 'code' tag)..
-
bit of code
embedded (just the "code"
+ tag).
-Use the 'img' tag to include the picture file, which is typically in .jpg or .png format.
-Images should normally have their 'width' and 'height' attributes set in the 'img' lement.
-To right-align the image add the 'gbsAlignRight' class.
-The caption is a 'p' element, which is assigned the 'gbsCaption' class.
+Use the "img" tag to include the picture file, which is typically in .jpg or .png format.
+Images should normally have their "width" and "height' attributes set in the
+"img" element. To right-align the image add the "gbsAlignRight" class.
+The caption is a "p" element, which is assigned the "gbsCaption" class.
In the special case where an image is used as a character/symbol embedded inline in
-a paragraph, add the class 'gbsInlineImg' to the image tag, i.e. here's the wrench (
-
-).
-
- Browser staff in native habitat. -
+ Browser staff in native habitat.