Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 2nd, 2006, 09:50 AM
Friend of Wrox
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default aligning text in ul to top of image


I have three entries in a ul that reveal a picture when you mouseover them, using the line-height property. Here is the css:

    border: 3px solid gold;

    li a
    font: 12px tahoma;
    color: gold;

    li a:hover

    .Paul a:hover
    background-image:url(paul saunders.jpg);

    .Sarah a:hover
    background-image:url(Sarah Chilcott.jpg);

This is the HTML:
    <li class = "Paul"><a href = "#">Gareth Rayworth - CSC General Manager</a></li>
    <li><a href = "#">Amanda Hartley - CSC Call Centre Manager</a></li>
    <li class = "Sarah"><a href = "#">Sarah Chilcott - P.A. To Gareth Rayworth</a></li>

Its a long shot but is there anything I can add to the hover classes, to make the text in the ul tag move to the top of the background-image?

Thanks in advance

\'sync\' &lt;cr&gt;
The name specified is not recognized as an internal or external command, operable program or batch file.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
SELECT TOP n NOT SELECTING TOP n! ibi SQL Language 8 March 30th, 2005 08:08 PM
Aligning Text in a Listview Control? xgbnow VB How-To 1 September 30th, 2004 06:37 AM
Aligning Text of a textbox mahulda General .NET 0 July 27th, 2004 12:16 AM
how can I insert a new line at top of text file? Satorikin VB.NET 1 March 4th, 2004 03:41 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.