Solved

html elements get moved after ajax call

Posted on 2013-11-01
3
315 Views
Last Modified: 2013-11-06
Hi.

I have an html page with two divs. First div is floating right and second div is floating left.
I have a jquery code that makes an ajax call and fills second div.

The problem is after the call, second div goes down.

Why?
0
Comment
Question by:gplana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 500 total points
ID: 39616715
t is most likely that the the jquery is changing the way CSS rules are being applied, or something in the content loaded with the ajax call are changing the structure and/or CSS.

Without a link to the page, it is not like we will be able to help much.

Cd&
0
 
LVL 15

Accepted Solution

by:
gplana earned 0 total points
ID: 39616729
I have found from myself. The problem was that after the ajax call, the contents on second div is bigger than the original one, which makes div doesn't fit to the same line.
Thanks for your help anyway.
0
 
LVL 15

Author Closing Comment

by:gplana
ID: 39626782
I fould solution from myself
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question