Results 1 to 3 of 3

Thread: rollovers

  1. #1
    Join Date
    Dec 2007
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default rollovers

    hi all,

    I'm wondering as to how to achieve something like this with CSS.
    http://hivemodern.com/products/?cid=39&cid2=161

    If you rollover a piece of furniture, text displays below it. The questions is really that simple. I want to rollover an image and have the name of the piece of furniture display below it. I know how to create CSS rollovers, but I dont want to the text to be part of the image because like the image, the small font will be compressed. Any ideas?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I don't understand what you mean by:
    I know how to create CSS rollovers, but I dont want to the text to be part of the image because like the image, the small font will be compressed.
    If you know how to create CSS rollovers, the process here really is no different.

    The below should work in all browsers (even IE6)
    HTML Code:
    <a href="#"><img src="img.jpg" alt="image"><span>Title of Image</span></a>
    CSS:
    Code:
    a span {
       display:none;
    }
    a:hover span {
       display:block;
    }
    You'll need to add positioning and layout and all that but that's the general technique.

  3. #3
    Join Date
    Oct 2008
    Location
    Columbia Md
    Posts
    27
    Thanks
    1
    Thanked 8 Times in 8 Posts

    Default

    Good Day,

    I looked at the site you referenced and didn't see the rollover effect you want. However I think your question will be answered with the following link.

    The example is by Eric Meyer. http://meyerweb.com/eric/css/edge/popups/demo.html Look at the NavBar on the left side.

    Good Luck,
    Ben

Bookmarks

Posting Permissions

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