Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8675015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:50:48+00:00 2026-06-12T19:50:48+00:00

I am trying to create a simple image link button that when I move

  • 0

I am trying to create a simple image link button that when I move my mouse on it, it gets a bit larger.
I managed to do it with this simple code below but now I just want to move also the paragraph when the image is getting larger..

Any hints on how I can select and move the paragraph when I hover over the image?

<div id="rightImage">
      <a href="http://blabla.com" target="_blank"> <img src="images/image.jpg" alt="image" onmouseover="this.className='mouseOver'" onmouseout="this.className='mouseOut'" /></a>
      <p>paragraph</p>
      </div>


#rightImage
{
    width:275px;
    height:275px;
    float:left;
    position:relative;
}

.mouseOver
{
    width:300px;
    height:300px;
    top:-40px;
    z-index:1;
    position:absolute;
    box-shadow:2px -2px 10px 3px #888, inset 2px -2px 10px 3px #888;
}

.mouseOut
{ 
    width:275px;
    height:275px;
    float:left;
    margin-right:52px;
    box-shadow:2px -2px 10px 3px #888, inset 2px -2px 10px 3px #888;
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:50:49+00:00Added an answer on June 12, 2026 at 7:50 pm

    This enlarges the image, increases the size of the shadow and keeps the <p> element visible.

    (EDIT: I forgot to encode the angled braces around the p)

    Perhaps it’s what you need?

    <!DOCTYPE html>
    <html>
    <head>
    <script>
    </script>
    <style>
    #rightImage
    {
        height:275px;
        float:left;
        position:relative;
        box-shadow:2px -2px 10px 3px #888, inset 2px -2px 10px 3px #888;
    }
    #rightImage:hover img
    {
        height: 300px;
        box-shadow:4px -4px 10px 3px #888, inset 4px -4px 10px 3px #888;
    }
     </style>
    </head>
    <body>
        <div id="rightImage">
            <a href="http://blabla.com" target="_blank"> <img src="img/redBaron.jpg" alt="image"/></a>
            <p>paragraph</p>
        </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create very simple image browser with jQuery. I am doing
I'm trying to create simple script that subscribes a user to a company calendar.
I am trying to create a simple about page that uses JQuery click to
I'm trying to create a simple web page that resembles the following: I've got
I'm trying to create a simple image gallery, showing 16 images per page. I'm
I have a simple gallery style link setup using image swap on hover that
I am trying to create a simple image slideshow type thing with the Javascript
I would like to create a very simple image gallery. I am trying to
i'm trying to create a simple Opencv program in C that creates a file
I'm trying to create a simple Imgur app that will upload images to their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.