Announcement

Collapse
No announcement yet.

HTML Font questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML Font questions

    Hi, this is my first post and new to Actinic. I'm coding an information page in HTML. My question is how do I apply a font size to most of my text on the page. Rather than having to keep writing <p><font size="2" every time I want text, I would think it would be better to use a division. So that every time I use the <p> tag it would come out the size I have set for that div.

    How do I use the <div> tags to use a font size from the CCS? (actsmall).
    If I use a division, can you change the old line to display a different size or colour without it effecting the font size elsewhere in the division?

    Thanks Sam

    #2
    If the theme you have chosen is a css based theme, then locate the file called actinic.css

    in the css file you will find statements defining text sixe

    actregular, actsmall etc etc, apply these your text.

    Comment


      #3
      Hi Sam,

      as you are using the CSS at the moment you can set up <div> tags using a div identifier in the actinic.css eg: <div id="mytext"> and set the CSS statement accordingly, eg:

      #mytext {
      font-family: Arial, Verdana, sans-serif;
      font-size: 1.5em;
      color: #eee;
      }

      Rather than using <div> tags that can only be used once on a page you may be best using a class identifier eg:

      .mytext {
      font-family: Arial, Verdana, sans-serif;
      font-size: 1.5em;
      color: #eee;
      }

      ... and wrapping the text in a <span class="mytext"> accordingly


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Hi, thanks for the replys.

        I think I am going to try the <span> method. So if I understand correctly then I can replace the <p> tags with <span>. eg

        <span class="actregular"> text goes here </span>

        When using a <span class=""> tag, can you still use inline formating such as <br> or align="center"?

        Cheers

        Comment


          #5
          Once you create the class in css as Jont demonstrated, you can apply it to any tag, so the <p> would become <p class="myclass">.

          You only need <span class="myclass"> when there is no other tag you can hang the formatting class onto.
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #6
            Thanks,
            I didn't realise you can add a class to a tag like that. Its starting to make sense now.

            I'll give it a go.

            Sam

            Comment


              #7
              Sam,

              Doing it on the <P> tag will affect the whole paragraph (everything up to the </p>). If you only want to change the first three words, you would use both tags like this

              <p><span class="myclass"> First three words</span> rest of paragraph.</p>

              Just thought I had better clear that up for anyone else reading this.
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                Thanks Bill

                Comment

                Working...
                X