- This topic is empty.
August 10, 2012 at 6:42 am #39311
I wondered how to realize that AnythingSlider changes the hight of a slide when the hight of the content in this slide changes.
In the first slide I do have content with the hight of 300px (in this case a DIV) and by clicking the hight of the DIV changes to 500px.
Now I want AnythingSlider to change the height of this slide to 500px, but it is still 300px high.
Just by refreshing the window the slide adapts to the 500px.
Is there are way how to fix this problem?
Thanks so much!
– ClemensAugust 10, 2012 at 7:11 am #107669
The option “expand” doesn’t work for my layout – I guess.
An other way to solve my problem would be to set a fix hight for the first slide.
Thanks!August 10, 2012 at 10:24 am #107680August 10, 2012 at 6:43 pm #107708
Thanks for your fast repley!
I tried it – but chaninging the CSS dimensions of the slides don’t affekt the slides – nothing happens?! I set background of the <ul> element to see the size – but at the moment the slides fit to the hight of the content instead to the hight I set in the CSS file..August 10, 2012 at 8:19 pm #107712
Did you set the
resizeContentsoption to false?August 11, 2012 at 6:50 am #107734
Yes, I did. I uploaded the file to show it to you.
I am trying to center the first slide in between the menue bar and the purple footer – this works just when I refresh the browser.
Maybe you find the mistake?
Thanks you so much! :)
EDIT: Forgot to post the link: http://www.luca-di-piana.com/frage/frage.htmlAugust 12, 2012 at 8:37 am #107759
Just seems to work when I add a DIV inside the first li-element with the class “panel1”.
Ist this normal? In the example you postet (Slider #2) it isn’t that way in the code and seems not to work for me..
August 12, 2012 at 11:13 am #107767
Oh that sounds you’re adding padding or a margin directly to the LI… all browsers include these settings in addition to the set dimensions, so you’ll need to set the LI and the first div margin and padding to zero, then the div inside of that “.panel1” can get margin and padding and maintain the correct dimensions of the outside panel. Or you can use css3 box-border.
- The forum ‘CSS’ is closed to new topics and replies.