Solved

html elements get moved after ajax call

Posted on 2013-11-01
3
300 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 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I fould solution from myself
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now