#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Text in linked div stays underlined in Firefox


    Hello World,

    I'm working in Wordpress (irrelevant info) with this code:

    PHP Code:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
        <div id="gallery-post<?php if (!((1+$wp_query->current_post) % 4)) echo '-last' ?>">
            <?php if ( has_post_thumbnail() ) {
            
    the_post_thumbnail();
            } 
    ?>
            <h1><?php echo get_the_title(); ?></h1>
        </div>
        </a>
        <?php endwhile; endif; ?>
    I have the titles styled to not have underlines, which works in Chrome, but not in Firefox or Safari.

    What can I do to get rid of the underline?

    Thanks
  2. #2
  3. For POny!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Amsterdam
    Posts
    416
    Rep Power
    115
    your code is also irrelevant, due to the nature of this problem and this board.

    Make sure you have in your stylesheet:

    a.someclass{text-decoration:none;}

IMN logo majestic logo threadwatch logo seochat tools logo