Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text over image help

    I want to be able to have a block of text over an image...been trying to make it happen, but just can get it...Any suggestions/help would be appreciated.

    Here is the image



    and here is what I want to overlay

    PHP Code:
    print "<table>";
    $most_active get_most_active_blogs15false );
    if( 
    is_array$most_active ) ) {
    print 
    "<tr><th scope='col'>15 Most Active Blogs</th></tr>";
    while( list( 
    $key$details ) = each$most_active ) ) {
    $class = ('alternate' == $class) ? '' 'alternate';
    $url "http://" $details'domain' ] . $details'path' ];
    print 
    "<tr class='$class'><td><a href=\"$url\">$url</a></td></tr>";
    }
    }
    print 
    "</table>"
    http://www.bleacherblogs.com/

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS background

    Use CSS to set that image as a background for your table.

    The table has to have the exact same dimensions as the image for this to work, though; it might be a better idea to arrange it such that at least one of its dimensions, preferably its height, is flexible so it'll adjust to the actual content.
    If the width is fixed, depending on the amount of flexibility required you'll need two or three slices of the background image and as much elements to attach them to (an element can only have one background image, sadly).
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •