#1
  1. Ruby On Rails Junkie
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2003
    Location
    Switzerland
    Posts
    535
    Rep Power
    103

    css: how to include <code></code> into a class?


    hi

    is it possible to automatically assign the <code> tag to an own class? something like

    .my_class
    {
    <code>
    font-family: "verdana...";
    </code>
    }

    thanks for help! its evident that the way above cant work, but i hope you know what i mean!

    j0sh
    God, you gave man penis and brain, but only enough blood to run one at a time.

    my webpage: www.josh.ch
    my current project: phpmywebmin.josh.ch - a browser based file management application for webspace
  2. #2
  3. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,951
    Rep Power
    4033
    Something like this maybe?

    Code:
    code
    {
    font-family: "verdana...";
    }
    You can set css by tag name
    Recycle your old CD's, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud

IMN logo majestic logo threadwatch logo seochat tools logo