font sizes

Comments

  • ryryguy
    ryryguy
    Posts: 5
    Can you control font sizes other than using the heading styles? I couldn't find any examples in the Textile formating help.

    (I don't know CSS, but if you hum a few bars...)
  • Micah2
    Micah2
    Posts: 894
    I don't think you can control font sizes (easily) using Textile other than using the h tags.

    Let's try some experiments. I don't know Textile very well myself, so I just play around with it until I figure stuff out.

    It won't work in the forums, but try the following on your wiki/adventure log pages:

    p{font-size: 200%;}. Here is some large text.

    p{font-size: 50%;}. Here is some tiny text.


    Just don't forget the period and space after the last curly brace!

    And, FYI, the "p" is a paragraph tag. I think you can use the CSS attributes on other tags as well, but I'm not 100% sure.
  • ryryguy
    ryryguy
    Posts: 5
    Yup, that worked:

    http://www.obsidianportal.com/campaign/eteam/wiki/campaign-web/wiki-sandbox

    Can you change the font as well?

    Hmmm, so I take it all these keywords and such are from CSS? I guess I will look for a a CSS reference and play around myself.

    Thanks!
  • Micah2
    Micah2
    Posts: 894
    CSS is the defacto standard for styling up web pages. Without getting into the nitty-gritty, it allows for taking the raw HTML and making it look nicer.

    You should be able to change the font in a similar manner to the font size, perhaps with something like:

    p{font-family: Arial;}. Here is some arial text.

    p{font-family: Times;}. Here is some times text.


    A decent CSS reference is available at "w3school":http://www.w3schools.com/css/default.asp It's not great, but I can't think of another one off-hand.

    Note: Using CSS is considered a fairly advanced feature. Lots of people just use the bold, italics, tables, and other such "simple" stuff and avoid CSS altogether.
Sign In or Register to comment.

September 2026
City of Shadows

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

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

Discussions