Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Small text in passage?

Title says it all. I tried the addtag macro, but that makes the text in the main passage small too. Thanks for reading.

Comments

  • Could you post an example TWS?
  • You don't say which template you're using, but this is trivial to do in SugarCube, because its display macro allows you to wrap a displayed passage in an html element which automatically gets assigned a class based on the name of the passage. Example, wrapping the displayed passage in a div:
    :: Start
    It is a sunny day.

    <<display "Status" div>>


    :: Status
    You are feeling fine.


    :: Styles [stylesheet]
    div.passage-status {
    font-size:9px;
    }
    Unfortunately, though, you can't do this with all passages that share a given tag, it's per-passage only.
  • Example attached, thank for looking! I'll take a look at Sugarcube, but I'm interested to know if I can do this in Sugarcane. Does anyone know if L's macros are all compatible with Sugarcube? My game's pretty reliant on them. Thanks again. :)
  • I believe that some of the Glorious Trainwrecks macros are rendered unnecessary by SugarCube (e.g., CSS passage transitions will work in SugarCube without a macro), some have been converted (look under Extras here), some don't work at all, and others will work fine or perhaps with limited functionality.

    I don't think anybody has done an exhaustive compatibility list.
  • mostly wrote:
    Example attached, thank for looking!


    Here are some links about font-size:

    https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
    http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/
    http://css-tricks.com/css-font-size/


    After looking at your TWS, is there a specific reason you're not doing what you're doing the "normal" way?

    http://www.cssbasics.com/chapter_6_css_spans.html
    http://www.1keydata.com/css-tutorial/div-span.php

    Attached is your example "fixed." :)
  • Nice! I'd never seen the span stuff before, that IS much easier! ;D

    Many thanks.
  • No problem. ;) I didn't know if you were doing it that way for another reason or not.
  • Erik wrote:
    (e.g., CSS passage transitions will work in SugarCube without a macro)
    This specific example isn't quite as illustrative, since that's true for Twine 1.4 as well.
  • It seems I have a similar problem.

    I installed Twine two days ago and I immediately started making a story.
    In fact, I put in twine the "choose-your-own-adventure-like chapter of an old RPG rulebook.
    No special character, no fancy CSS.
    I tested it and it worked well.
    I improved it a little bit yesterday and the test still worked well.
    Still no special character and no fancy CSS.
    Today, I keep getting the same error message, although I didn't change a bit of the story (see attached picture).

    I de-installed and re-installed Twine twice.
    I even made another "story" with only 3 passages and 2 links.
    The same error occurs.

    I read this thread and didn't understand much of was told here (I've got no degree in informatics)
    I guess I'm going to uninstall Twine permanently : I don't have time to spend on a program that don't want to run for no reason.
  • [quote author=Jean-Mi Wan link=topic=764.msg2146#msg2146 date=1391291674]In fact, I put in twine the "choose-your-own-adventure-like chapter of an old RPG rulebook.
    Ooo! What book?

    Unfortunately, your problem is entirely dissimilar to this one. You'll get more help from the other thread in which you posted.
  • <P ALIGN="right">Right aligned text here</P>

    Using this method, I'm getting extra whitespace above and below the text. Does anyone know how I can get rid of it?
  • In your stylesheet:
    p {margin:0; line-height: 100%;}
    Note that </p> is the same as causing a <br>, I'm pretty sure.
  • Perfect, thanks for the speedy response! My story looks tidy again! :D

    By the way, is there another way I should have been closing the <p> code to not leave a line? The generated webpage throws a "not closed" error if I don't include the </p>.
Sign In or Register to comment.