SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: css question

  1. #1
    SitePoint Guru
    Join Date
    Apr 2001
    Location
    BC, Canada
    Posts
    630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css question

    When putting text to the screen with out using a tag.

    example:

    PHP Code:
    <html>
          <
    body>
               
    hi
          
    </body>
    </
    html
    Is it possible that that text can be defined using css... as far as I know, all u can do is define tags to act a certain way. But can it be made so the above text "hi" can arial with a size 100 point font? without including it within a tag?


    thanx

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes...you simply define the body text to be 100pt arial

    <style type="text/css">
    <!--

    body {font-size: 100pt; font-family: arial; }

    -->
    </style>

    That would tell every piece of text on that page to be arial at 100pt. The above chunk of code would go inside your HEAD tag.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •