Designers - some help with CSS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • donnie
    Confirmed User
    • Jan 2003
    • 1630

    #1

    Designers - some help with CSS

    I am trying to make my titles with h2 tag a bit nicer and I want to have a dot before any text. Something like this:

    • Hello

    In my CSS I have this:

    h2
    {
    font-family: Times New Roman, serif;
    font-size: $theme_headline_size_large;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform : capitalize;
    font-weight: normal;
    }

    Is it possible to add something so I get that dot before the text? And to make it even more complicated I would like the dot to be of a different color than rest if the text
  • AaronM
    GFY Royality ;)
    • Oct 2001
    • 46923

    #2
    http://lmgtfy.com/?q=css+bullet+point

    Comment

    • UniqueD
      Confirmed User
      • Aug 2004
      • 1022

      #3
      you could put the h2 inside an unordered list
      <ul>
      <li>
      <H2>HEYOO</h2>
      </li>
      </ul>

      Comment

      • The Truth Hurts
        Zph7YXfjMhg
        • Nov 2002
        • 15732

        #4
        Code:
        h2:before {content: "? ";}

        Comment

        • MetaMan
          I AM WEB 2.0
          • Jan 2003
          • 28682

          #5
          put the colored bullet point as an image. then move the text over with left padding. then possiton the bullet point in the vertical of the text.

          Comment

          • The Truth Hurts
            Zph7YXfjMhg
            • Nov 2002
            • 15732

            #6
            to change the color.. which i missed.

            Code:
            h1:before {color:red; content: "• ";}

            Comment

            • Overload
              Confirmed User
              • Jul 2005
              • 3185

              #7
              Originally posted by The Truth Hurts
              Code:
              h2:before {content: "? ";}
              ehh, shudnt that be
              Code:
              h2:before {content: "&middot; ";}
              ???
              There aren't enough faces and palms on this planet for an appropriate reaction to religion.

              Comment

              • donnie
                Confirmed User
                • Jan 2003
                • 1630

                #8
                Originally posted by The Truth Hurts
                to change the color.. which i missed.

                Code:
                h1:before {color:red; content: "? ";}
                Taht worked great! Thank you so much for this!

                Comment

                • V_RocKs
                  Damn Right I Kiss Ass!
                  • Nov 2003
                  • 32449

                  #9
                  I saw this coming...

                  Comment

                  • The Truth Hurts
                    Zph7YXfjMhg
                    • Nov 2002
                    • 15732

                    #10
                    Originally posted by Overload
                    ehh, shudnt that be
                    Code:
                    h2:before {content: "&middot; ";}
                    ???
                    that would just show &middot; literally..

                    alternative to using the • and a space in there would be

                    content: "\2022\A0";
                    Last edited by The Truth Hurts; 11-01-2011, 08:46 AM.

                    Comment

                    Working...