Topic: centering text caption text?

SV builder v2.1.0
Can do this while editing the XML document?  I was able to edit the html formatting for the font and link in a caption, but no centering.  Maybe i have the wrong tag?

<caption><![CDATA[<font face="Times" size="20" color="#ffffff"><a href="index.html" target="_blank">TRYING TO CENTER THIS TEXT</a>]]></caption>

thanks for any help!

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

Set the option captionTextAlignment="CENTER" in your gallery's XML file.
http://simpleviewer.net/simpleviewer/pr … ml#caption
In svBuilder-Pro, this option can be found in the 'Customize -> Caption' section.

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

thanks for the reply.
my xml file pasted below, and the text still shows up on the left.

<simpleviewergallery
captionTextAlignment="CENTER"
useFlickr="false"
  resizeOnImport="true"
    cropToFit="false"
    useFlash="false"
    title=""
    galleryStyle="MODERN"
    frameColor="c5c5c5"
    frameWidth="1"
    thumbPosition="BOTTOM"
    thumbColumns="6"
    thumbRows="1"
    showOpenButton="true"

>

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

Please post the URL to your gallery so that we can take a look.

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

its not live right now still working on it.
Did i have the code correct?

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

It looks fine.
I tried you XML settings in a test gallery and the captions were, indeed, centered.
Try clearing your browser's cache before reloading the gallery.

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

i only have one caption text, which is set to my last image, linking it to another page.  Cleared cache, 2 browsers, still on left.

http://i91.photobucket.com/albums/k309/ … er/pic.jpg

Last edited by jgcalifornia (2011-07-16 16:36:08)

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

If you are unable to provide the URL to your gallery, then could you please post the complete <caption> ... </caption> that you are using so that I can try it in a test gallery and hopefully help further.

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

<?xml version="1.0" encoding="UTF-8"?>

<simpleviewergallery

        captionTextAlignment="CENTER"
        useFlickr="false"
    resizeOnImport="true"
    cropToFit="false"
    useFlash="false"
    title=""
    galleryStyle="MODERN"
    frameColor="c5c5c5"
    frameWidth="1"
    thumbPosition="BOTTOM"
    thumbColumns="6"
    thumbRows="1"
    showOpenButton="true"

>
  <image imageURL="images/pic1-tour.jpg"
    thumbURL="thumbs/pic1-tour.jpg"
    linkURL="images/pic1-tour.jpg"
    linkTarget="_blank">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/pic2.jpg"
    thumbURL="thumbs/pic2.jpg"
    linkURL="images/pic2.jpg"
    linkTarget="_blank">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/pic3-tour.jpg"
    thumbURL="thumbs/pic3-tour.jpg"
    linkURL="images/pic3-tour.jpg"
    linkTarget="_blank">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/pic4-tour.jpg"
    thumbURL="thumbs/pic4-tour.jpg"
    linkURL="images/pic4-tour.jpg"
    linkTarget="_blank">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/pic5-tour.jpg"
    thumbURL="thumbs/pic5-tour.jpg"
    linkURL="images/pic5-tour.jpg"
    linkTarget="_blank">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/pic6-tour.jpg"
    thumbURL="thumbs/pic6-tour.jpg"
    linkURL="images/pic6-tour.jpg"
    linkTarget="_blank">
    <caption><![CDATA[]]></caption>
  </image>
  <image imageURL="images/pic7-tour.jpg"
    thumbURL="thumbs/pic7-tour.jpg"
    linkURL="images/pic7-tour.jpg"
    linkTarget="_blank">
    <caption><![CDATA[<font face="Times, Helvetica, Arial,_sans" size="21" color="#c5c5c5"><a href="index.html" target="_blank">GO TO FREE TOUR PAGE 2</a>]]></caption>
  </image>
</simpleviewergallery>

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

I have just tried with your gallery XML settings and <caption> tag and the text is centered.
I have just re-read your first post ("SV builder v2.1.0") and it appears that you may be using SimpleViewer Standard (though you have posted in the SimpleViewer Pro forum).
captionTextAlignment is a SimpleViewer Pro option which will not be used when using SimpleViewer Standard.

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

woops, im sorry about that...wrong place for post.
can i ask why it would matter?  as far as the proper tags being there, but in a different version of SV?

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

SimpleViewer Standard (the free version) has only a limited number of configuration options available.
http://simpleviewer.net/simpleviewer/su … tions.html

SimpleViewer Pro (the paid version) removes the 50-image per gallery limit, removes the 'SimpleViewer' badge/link at the bottom right-hand corner of the gallery and provides the user with many more customizable options.
http://simpleviewer.net/simpleviewer/pr … tions.html

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

ya, i read and compared all of the differences..i think i was asking, those changes are what is different in the actual Application SV, as opposed to the XML files?  So no matter what tags i put in my XML file, they wont work, correct?

Pro Version. v2.1.3
Mac OSX 10.6.8

Re: centering text caption text?

That is correct.

Steven Speirs
SimpleViewer Support Team.

Re: centering text caption text?

ok, thanks for all your help Steven.

Pro Version. v2.1.3
Mac OSX 10.6.8