Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 3 posts ] 
Resizing font in Pick of day 
Author Message
User avatar

Joined: Wed Jul 21, 2004 3:32 am
Posts: 86
Location: Oklahoma City, Oklahoma
Post Resizing font in Pick of day

I have flopped the author name and the title in the Pick of the day box. I want the title at +1.5 and the author at +1. How do I set this up?
This is my code—
<TD VALIGN="TOP">
<FONT SIZE="+1.5">
<B>
<A HREF="Book.xsl?ID={database/pickoftheday/bookid/@unformatted}">
<xsl:value-of select="database/pickoftheday/title"/>
<xsl:text> </xsl:text><BR/>
</A>
<xsl:call-template name="format-author">

_________________
Little Bob
Books are LIFE!!


Sun May 06, 2012 8:50 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Resizing font in Pick of day

littlebob wrote:
I have flopped the author name and the title in the Pick of the day box. I want the title at +1.5 and the author at +1. How do I set this up?
This is my code—
<TD VALIGN="TOP">
<FONT SIZE="+1.5">
<B>
<A HREF="Book.xsl?ID={database/pickoftheday/bookid/@unformatted}">
<xsl:value-of select="database/pickoftheday/title"/>
<xsl:text> </xsl:text><BR/>
</A>
<xsl:call-template name="format-author">

You can't set the font to "+1.5", so you will have to use "+2":

Code:
        <TABLE BORDER="0" WIDTH="100%" CELLSPACING="1" CELLPADDING="2" BGCOLOR="#636363">
          <TR>
            <TD CLASS="indexheading">Pick of the day</TD>
          </TR>
          <TR>
            <TD BGCOLOR="white">
              <TABLE BORDER="0" WIDTH="100%" CELLSPACING="1" CELLPADDING="2">             
                <TR>
                  <TD WIDTH="125" VALIGN="TOP">
                    <A HREF="Book_Image1.xsl?ID={database/pickoftheday/bookid/@unformatted}"><IMG BORDER="0" WIDTH="120" SRC="{database/pickoftheday/image1/filename}"/></A>
                  </TD>
                  <TD VALIGN="TOP">                                                 
                    <FONT SIZE="+2">
                      <B>             
                      <A HREF="Book.xsl?ID={database/pickoftheday/bookid/@unformatted}">
                        <xsl:value-of select="database/pickoftheday/title"/>
                      </A>
                      </B>
                    </FONT>
                    <BR/>                   
                    <FONT SIZE="+1">           
                      <B>
                      <xsl:call-template name="format-author">
                        <xsl:with-param name="authors" select="database/pickoftheday/authors"/>
                        <xsl:with-param name="newline" select="'False'"/>
                        <xsl:with-param name="newwindow" select="'False'"/>
                      </xsl:call-template>
                      </B>
                    </FONT>

                    <BR/><BR/>
                    <A HREF="BookList.xsl?Publisher={database/pickoftheday/publisher}@xslparam:doctitle=Publisher: {database/pickoftheday/publisher}">
                      <xsl:value-of select="database/pickoftheday/publisher"/>
                    </A>     
                    <xsl:if test="database/pickoftheday/publishdate!=''">
                      <xsl:text>, </xsl:text>
                      <A HREF="BookList.xsl?PublishDate={database/pickoftheday/publishdate/@year}@xslparam:doctitle=Publication Year: {database/pickoftheday/publishdate/@year}">
                        <xsl:value-of select="database/pickoftheday/publishdate/@year"/>
                      </A>
                    </xsl:if>
                    <xsl:if test="database/pickoftheday/isbn!=''">
                      <BR/>
                      <xsl:value-of select="database/pickoftheday/isbn"/>
                    </xsl:if>
                    <xsl:if test="database/pickoftheday/binding!=''">
                      <BR/>
                      <A HREF="BookList.xsl?Binding={database/pickoftheday/binding}@xslparam:doctitle=Binding: {database/pickoftheday/binding}">
                        <xsl:value-of select="database/pickoftheday/binding"/>
                      </A>
                    </xsl:if>
                    <xsl:if test="database/pickoftheday/pages/@unformatted>0">
                      <BR/> 
                      <xsl:value-of select="database/pickoftheday/pages"/><xsl:text> pages</xsl:text>
                    </xsl:if>
                  </TD>
                </TR>
                <xsl:if test="database/pickoftheday/synopsis!=''">
                <TR>
                  <TD COLSPAN="2">
                    <xsl:call-template name="add-line-breaks">
                      <xsl:with-param name="string" select="database/pickoftheday/synopsis"/>
                    </xsl:call-template>
                  </TD>
                </TR>
                </xsl:if>
              </TABLE>
            </TD>
          </TR>
        </TABLE>

_________________
Fredrik Nordbakke
www.fnprg.com


Mon May 07, 2012 8:57 am
Profile WWW
User avatar

Joined: Wed Jul 21, 2004 3:32 am
Posts: 86
Location: Oklahoma City, Oklahoma
Post Re: Resizing font in Pick of day

Fredrik,
Thank you for the revised code. It works fine.
I had forgottn to close the first font size.
Thanks again !!!!

_________________
Little Bob
Books are LIFE!!


Mon May 14, 2012 7:26 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.