SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie - how can u create custom tags?

    I am trying to put a bunch of different font types up.

    I was doing P1, P2, P3, P4 and then realized it didn't work. I want to view a bunch of different examples and then pick the one I like.

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <style>
    .p1{color: red;}
    </style>

    ...

    <p class="p1">This text is red</p>

  3. #3
    Super Ninja Monkey Travis's Avatar
    Join Date
    Dec 2001
    Location
    Sioux City, Iowa
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Couldn't you make your own tag? For example:
    Code:
    <style type="text/css" media="all">
    p1 {
        font-size: 14px;
        font-family: Verdana;
    }
    </style>
    ...
    <p1>This is some text.</p1>
    I've never tried this so I don't know if it works.
    Travis Watkins - Hyperactive Coder
    My Blog: Realist Anew
    Projects: Alacarte - Gnome Menu Editor

  4. #4
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, you can't make your own tag like that

    But if you have an xml file with your own tags in, you can transform it to html with an xsl stylesheet
    http://www.w3schools.com/xsl/xsl_transformation.asp


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
  •