PDA

View Full Version : Putting Slideshow Text in the Middle



JohnWillbs
04-19-2011, 02:16 AM
Ultimate Fade-in slideshow (v2.4)
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

Not really a problem, just a question - How does one centre the text on the popup?

djr33
04-19-2011, 03:46 AM
You mean the caption on top of the image?

The <div> that contains the text has the class descpanelfg.

The simple solution to this will be to add the following CSS either to <style> tags in the <head> section of your page or to add it to an external .css file. Remember: the order of CSS does matter, so if it doesn't work at first it may be because there is another CSS property that left-aligns it. You can move it to a lower place in the page's source code (if it is set after the old setting, it will use this newer setting), or you can add !important (http://webdesign.about.com/od/css/f/blcssfaqimportn.htm).


div.descpanelfg { text-align:center; }