Solved

html elements get moved after ajax call

Posted on 2013-11-01
3
307 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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.…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

730 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