• Thais Carolyne Souza
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

How to put text over image in visualforce (contentType = "application) I'm with a vfp and generating it as .doc, but I'm not getting the image to be under a table, as if it were the table's background, whoever can give me any suggestions thanks, this was my last try
<style type="text/css" >
                @page Section1 {
                size:8.3in 11.7in;
                mso-title-page:yes;
                mso-footer:f1;
                mso-header:h1;
                mso-first-header: fh1;
                mso-first-footer: ff1;
                margin:0.0in 0.6in 0.0in 0.6in;
                mso-header-margin:0.3in;
                mso-footer-margin:0.3in;
                }
                div.Section1{ 
                page:Section1;
                }
                .capa{
                z-index: 0;
                background-image: 
                }
                .textcapa{
                z-index: 1;
                float: right;
                }
</style>
<apex:form >
<body>

 <div class="section1" >
                    <br/><br/>
                    <div>
                        <apex:image url="{!DocumentCapa}" width="650" height="550" styleClass="capa"/> 
                    </div>   
                </div>
                <table cellspacing="0" cellpadding="0" align="left" width="100%" border="0" class="textcapa">
                    <tr><td>Caxias do Sul, 
                        
                        <apex:outputText value="{0, date, d-MM-yyyy}">
                            <apex:param value="{!quoteObj.CreatedDate}"/>
                        </apex:outputText>
                        </td></tr>
                        </table>

the result I want looks like this:
the result I want looks like this: