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 8428581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:05:47+00:00 2026-06-10T05:05:47+00:00

I have a created divs on a row and now when I zoom them,

  • 0

I have a created divs on a row and now when I zoom them, the following divs move down the page. I don’t want them to move to next level, instead I want the HTML width should increase and they should stay at the same level. I have found a jsfiddle for something that I have created for my practice stuff. If you click on the image, they get zoomed and after some zooms, the right hand side image moves down the next level. For me, this should not happen. How to do this?

The link to jsFiddle is: http://jsfiddle.net/bq6Ju/14/
The below code is written by one of the stack overflow scholar, and this is something what I have a similar in my test application

              .flower {
display: block;
float: left;
margin: 10px;
width: 100px;
height: 100px;
overflow: hidden;
border: 1px solid red;
}

.flower img {
width: 100%;
height: 100%;
}
.flower div {
width: 200px;
height: 200px;
position: relative;
}

.chunk2 div {
left: -100px;
}
.chunk3 div {
top: -100px;
}
.chunk4 div {
top: -100px;
left: -100px;
}

The HTML code is

Javascript/Jquery code is

$('div.flower').click(function(){

var resize = 1.30;

var $this = $(this);
var $inner = $this.find('div');

$this.animate({          
    'width': $this.width() * resize,
    'height': $this.width() * resize,   
});

var p = {
    top: parseInt($inner.css('top')),
    left: parseInt($inner.css('left'))
}
console.log(p);
$inner.animate({
    'width': $inner.width() * resize,
    'height': $inner.width() * resize,
    'top': p.top*resize,
    'left': p.left*resize,        
});   

});
  • 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-10T05:05:49+00:00Added an answer on June 10, 2026 at 5:05 am

    You could add a container around the images and prevent wrapping and add scrollbars by the overflow proprty:

    .container { overflow: auto; white-space: nowrap; }
    

    Not that in order to get this working I’ve removed the float, because that prevents you AFAIK from doing what you want. And I have changed the display property to inline-block. I’ve also added the vertical-align property to make sure the images are always top aligned.

    .flower {
        display: inline-block;
        margin: 10px;
        width: 100px;
        height: 100px;
        overflow: hidden;
        border: 1px solid red;
        vertical-align: top;
    }
    

    You can see the demo here: http://jsfiddle.net/bq6Ju/18/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to position divs on top of one another. I have created a
I have these six static divs in my page and I want to create
I have created a page index.php with a lot of divs and I need
I have created a simple grid of divs by left floating them and an
I have created a sample http://jsbin.com/eqiti3 here we have three divs. Now, what i
I have the next code dynamically created using JQuery. Theere are multiple row class
I have a few divs created dynamically in Javascript.I was wondering if it is
I am trying to figure out how to create 3 divs and have them
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I'm working with jQuery's UI sortables and have created a system of divs in

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.