Solved

border not showing after complete slide

Posted on 2014-04-13
5
132 Views
Last Modified: 2014-04-19
Ive been working on a simple slidedown issue where if I have a div inside a div and use slideDown then the border only shows during the animation:-

For example:-
http://jsfiddle.net/5vjsA/

I know the issue is with the following line:-
#testContainer * { float: left; }

However I more problems with removing this line as then the height of the div doesnt update with ajax requests later.

Anyone hae any ideas how I can keep the float:left, but keep the border?

Thanks in advance
0
Comment
Question by:tonelm54
[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
  • 3
5 Comments
 
LVL 22

Expert Comment

by:Mrunal
ID: 39998480
Hi

check this:
http://jsfiddle.net/5vjsA/1/

This is because of you are adding div inside div.
0
 

Author Comment

by:tonelm54
ID: 39998722
Unfortantly the way I need it to work is to automatically resize to the correct size, as the DIVs are created dynamically by ajax requests. When I put another div into the parent it draws borders on both divs.

So for example:-
http://jsfiddle.net/5vjsA/2/

Sorry, I didnt explain myself properly :-(
0
 

Accepted Solution

by:
tonelm54 earned 0 total points
ID: 39998766
so in other words:-
http://jsfiddle.net/5vjsA/3/
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39998776
Maybe it is me, but I am confused as to what you want to end up with.   Can you update your  fiddle as a static html without the jquery and show us what you want to end up with.
0
 

Author Closing Comment

by:tonelm54
ID: 40010165
0

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Reactjs with .NET 3 78
need help with share buttons 11 72
CSS - Centering an image 2 27
Execute jQuery after Function 4 11
This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
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).

726 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