简体   繁体   中英

ContentFlow javascript carousel - how to add text to image?

I'm looking to make use of the excellent Javascript widget called ContentFlow:

http://jacksasylum.eu/ContentFlow/index.php

However, in my ExtJS application, I have a need to print text inside the images that are scrolling by. Not being a CSS whiz, I'm really struggling to do this. Any insights would be most welcome!

I think that you should add the following styles in .caption class. Something like that may work.

.caption {
  position: relative;
  bottom: 125px;
}

Apart from that, it just an issue of playing around with the bottom value to position it at your will. Also, don't forget that you could add left , right and top attributes as well, if you need to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM