?
Solved

html elements get moved after ajax call

Posted on 2013-11-01
3
Medium Priority
?
334 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
  • 2
3 Comments
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 1500 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

839 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