Solved

border not showing after complete slide

Posted on 2014-04-13
5
129 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…

867 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

21 Experts available now in Live!

Get 1:1 Help Now