Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Industry News Hover & Text

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31752
    mwdewitt
    Member

    Okay, I have been messing with this for a while now and I can not seem to get it right. Basically, I want to make it so when you hover over a link in the feed, a rounded bubble encases the entirety of the link. So, I put the link in an unordered list to get the effect, but it shrinks the text so you can no longer read it. Like this…

    http://img408.imageshack.us/img408/1450/screenshot8l.png

    So, my question is: how do I enlarge the text, scoot the text over so that it is centered in the widget, and keep the round bubble that appears around the link?

    Here is my CSS code that concerns the area discussed…

    /*
    TYPOGRAPHY
    */

    h6 {
    font-size: 0.8em;
    color: #333333;
    }

    h6 a {
    color: #FFFFFF;
    }

    h6 a:hover {
    background: #FFFFFF;
    color: #FFC800;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    }

    /*
    WIDGETS
    */

    .widget {
    background: #FFC800;
    width: 150px;
    margin-bottom: 14px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    }

    .widget .inside {
    padding: 14px;
    }

    .widget ul {
    color: #FFFFFF;
    margin-left: 14px;
    }

    .widget ul a {
    font-size: 0.8em;
    color: #FFFFFF;
    font-weight: bold;
    display: block;
    padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 2px;
    padding-left: 10px;
    }

    .widget ul a:hover {
    background: #FFFFFF;
    color: #FFC800;
    }

    And here is the HTML and PHP for the widget…




    Industry News





    $feed = fetch_feed('http://feeds.feedburner.com/GamasutraNews');

    $limit = $feed->get_item_quantity(2);

    $items = $feed->get_items(0, $limit);

    if (!$items) {

    echo "problem";

    } else {

    //everything's cool

    foreach ($items as $item) { ?>


    get_date('F j, Y'); ?>









    } ?>

    #58691
    mwdewitt
    Member

    I think I figured it out by myself. I hate posting a question and then, five minutes later, I figure it out. C’est la vie.

    Here’s an image of the fixed page…

    http://img84.imageshack.us/img84/2332/screenshot9o.png

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.