This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
frequently_asked_questions [2014/10/29 09:05] l [How do I remove all Jonah passage titles but the current one?] |
frequently_asked_questions [2017/10/09 20:39] (current) |
||
---|---|---|---|
Line 11: | Line 11: | ||
* [[#How do I install some new CSS code / a new stylesheet?]] | * [[#How do I install some new CSS code / a new stylesheet?]] | ||
- | * [[#In CSS, what do the dots and hashtags mean?]] | + | * [[#In CSS, what do the dots and number signs mean?]] |
* [[#How do I install some new JavaScript code?]] | * [[#How do I install some new JavaScript code?]] | ||
* [[#How can I make my Twine playable offline? / How do I import jQuery?]] | * [[#How can I make my Twine playable offline? / How do I import jQuery?]] | ||
Line 81: | Line 81: | ||
You can add as many **stylesheet** passages as you like, or you can keep all your CSS in one **stylesheet** passage--whichever is more convenient for you to use. | You can add as many **stylesheet** passages as you like, or you can keep all your CSS in one **stylesheet** passage--whichever is more convenient for you to use. | ||
- | ===In CSS, what do the dots and hashtags mean?=== | + | ===In CSS, what do the dots and number signs mean?=== |
A dot (.) indicates a class name. There can be many elements of the same class within an HTML page. For example, a class named "smurf" would look like this in the CSS: | A dot (.) indicates a class name. There can be many elements of the same class within an HTML page. For example, a class named "smurf" would look like this in the CSS: | ||
Line 92: | Line 92: | ||
<div class="smurf">Brainy</div> | <div class="smurf">Brainy</div> | ||
- | A hashtag (#) indicates an id. This means it's a unique name. There can be only one element with the given id in an HTML page. For example, an id named "highlander" would look like this in the CSS: | + | A number sign (#) indicates an id. This means it's a unique name. There can be only one element with the given id in an HTML page. For example, an id named "highlander" would look like this in the CSS: |
#highlander { color: red; } | #highlander { color: red; } | ||
Line 228: | Line 228: | ||
.passage { max-width:50%; } | .passage { max-width:50%; } | ||
- | You can also use whole numbers (e.g. 300 will make the text container 300 pixels wide.) | + | You can also use whole numbers (e.g. 300px will make the text container 300 pixels wide.) |
Line 289: | Line 289: | ||
This CSS sample makes the passage titles invisible: | This CSS sample makes the passage titles invisible: | ||
- | .passage .title { display: none } | + | .passage .title { display: none; } |
| | ||
====How do I remove all Jonah passage titles but the current one?==== | ====How do I remove all Jonah passage titles but the current one?==== |