Weird <span>

Discussion in 'HTML & Website Design' started by greenstefan, Nov 21, 2009.

  1. #1
    Hello,

    I've observed very weird <span> behavior and from 5 hours I'm trying to figure out what's wrong.

    I'm preparing the sitemap, but because it's complexity it can't be done using any tool. I've declared the "title" class for <span> like this:

    
    span.title {
      
    font-family: tahoma, verdana, arial; 
      font-size: 16px;
      color: #FFFFFF;
      text-decoration:none;
      text-align: left;
      font-weight: bold;
    }
    
    span.title a {
      color: #FFFFFF;
      text-decoration:none;
    }
    
    span.title a:hover {
      color: #FFCC00;
      text-decoration:none;
    }
    PHP:
    Next I'm using this class like this:

    
    echo('<span class="title"><a href="http://somewhere.com">Title</a></span>');
    
    PHP:
    If I have only two spans the result is like this:
    1st Title - use the class; 2nd Title- don't do it.


    If I have three:
    1st Title - use the class; 2nd - is ok; 3rd Title- don't do it.


    Any idea what's going on?

    Thanks for any help...

    BR
    Stefan
     
    greenstefan, Nov 21, 2009 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    541
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    ... I don't get it, the result of what?
     
    hdewantara, Nov 22, 2009 IP