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

  • SEARCH
  • Home
  • 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 8419903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:44:41+00:00 2026-06-10T02:44:41+00:00

Im trying to create a header with different images and their deiscription. I want

  • 0

Im trying to create a header with different images and their deiscription. I want their description to be shown when we mouseOver the content using jQuery. I’m only posting my HTML and CSS as i think thats where the problem lies.

jQuery works but the problem is that even after using overflow hidden the div with class headerCont wraps around to next line. Can someone help me with this. Thanks.

Im not allowed to post images so this is the link to image that will help you in understanding me ->

http://image.bayimg.com/cabjpaaeg.jpg

http://img145.imageshack.us/img145/3236/cabjpaaeg.jpg

PS in the above image i’ve mouseOver one of the div with class headerCont. I want the TEXT to be placed next to the image. Also the last div wraps over to next line whenever one of the div is expanded (dont know the correct word to explain that!) instead of its original place

The HTML CODE:

<html>
<head>
    <title>Silder</title>
    <link rel="stylesheet" type="text/css" href="css/default.css" />
</head>
<body>
    <div class="header">
        <div style="margin: 5px; width:1300px; overflow: hidden;">
        <div class="headerCont" style="background-color: #cdcdcd;  ">
            <div><img src="image/1.jpg" style="height: 317px; width: 214px; float:left; " /></div>
            <div style="float:left;margin-left:214px; width: 200px; overflow: hidden;">Discription </div>
        </div>
        <div class="headerCont" style="background-color: #719501; ">
            <div><img src="image/2.jpg" style="height: 317px; width: 214px;" /></div>
            <div style="float:left; position:absolute ;margin-left:214px; width: 200px; overflow: hidden;">Discription </div>
        </div>
        <div class="headerCont" style="background-color: #f3f3f3; ">
            <div><img src="image/3.jpg" style="height: 317px; width: 214px;" /></div>
            <div style="float:left; position:absolute ;margin-left:214px; width: 200px; overflow: hidden;">Discription </div>
        </div>
        <div class="headerCont" style="background-color: #719501; ">
            <div><img src="image/4.jpg" style="height: 317px; width: 214px;" /></div>
            <div style="float:left; position:absolute ;margin-left:186px; width: 200px; overflow: hidden;">Discription </div>
        </div>
        <div class="headerCont" style="background-color: #f3f3f3;">
            <div><img src="image/5.jpg" style="height: 317px; width: 214px;" /></div>
            <div style="float:left; position:absolute ;margin-left:214px; width: 200px; overflow: hidden;">Discription </div>
        </div>
        </div>
    </div>
    <script type="text/javascript" src="js/jQuery.js" ></script>
    <script type="text/javascript" src="js/home.js" ></script>
</body>

CSS CODE:

#content{
margin-left: auto;
margin-right: auto;
width: 90%;
border: 2px solid;
border-color: #272727;}
.outter{
border:2px solid #000000;
margin:4px;
position: relative;
}
.header{
width:1300px;
height:400px;
margin-left:auto;
margin-right:auto;
border: 1px solid #000;
margin-bottom:20px;
overflow:hidden;
position: relative;
}
.headerCont{
height: 100%; 
width:214px;
padding:5px;  
float:left;
overflow:hidden;
position:relative;
}
.header img{
border-color:#000000;
}

JavaScript:

$(".headerCont").mouseover(function(){
  $(this).animate({
width:400,
  }, 300 );
});

$(".headerCont").mouseout(function(){
  $(this).animate({ 
width: 214,
  }, 200 );
});
  • 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-10T02:44:43+00:00Added an answer on June 10, 2026 at 2:44 am

    Finally i found out the solution. thanks everyone else. all i did was add another wrapper div after my header div. Here the code:

    <div class="header">
                <div style="width:10000px; height: 317px;">
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                <div class="outter">
                    <div style="float:left;"><img src="image1.jpg" height="317px" width="217px"/></div>
                    <div style="float:left;">Description</div>
                </div>
                </div>
            </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a div containing 3 different divs: the header, the content
I am trying to dynamically create an XML file using php like this: header
I am trying to create a java header file. I compiled the project in
I'm trying to use the header() function to create a redirect. I would like
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Ok so I am trying create a login script, here I am using PHP5
I'm trying to create a button which displays animated images. I read in this
I'm trying to create an app based on Apple's example project TheElements, but using
I am trying to create a common header & footer for my entire website.
I'm trying to implement different layouts in Joomla. I'm using the Alias Name for

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.