[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

html elements get moved after ajax call

Posted on 2013-11-01
3
Medium Priority
?
331 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

649 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