WordPress.org

Ready to get started?Download WordPress

Forums

span class child theme reference not working (2 posts)

  1. groo600
    Member
    Posted 3 years ago #

    In my child theme I put:

    span.numberBoxGlobal
    {
    text-shadow: 0px 1px 1px #444;
    color:white;
    background:#FB8B14;
    padding:1px 12px;
    border-radius: 0px;
    border-bottom:1px solid #9f9f9f;
    }

    I referenced it in my post with:

    <span class = "numberBoxGlobal">1.</span>

    It didn't work. My question is why not?
    When I defined the class within the post, it worked. I did it with this code:

    <head>
    <style type = "text/css">
    span.numberbox
    {
    text-shadow: 0px 1px 1px #444;
    color:white;
    background:#FB8B14;
    padding:1px 12px;
    border-radius: 0px;
    border-bottom:1px solid #9f9f9f;
    }
    </style>
    </head>
    
    <span class = "numberbox">1</span><br>

    If anyone could tell me what to do to get this to work I would appreciate it.

  2. groo600
    Member
    Posted 3 years ago #

    Nevermind, it works now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags