I need some help

I have created a tab called “Other” and the content is looking a VF page called “Other Tab”

My VF page is the following ;

<apex:page >    
  <h1>Link to : </h1>
  <apex:outputLink value="https://emea.salesforce.com/801/">Orders!</apex:outputLink>              
   <h1>Link to : </h1>
  <apex:outputLink value="https://emea.salesforce.com">SF!</apex:outputLink>      

However when I click on the tab the results go from left to right

For eg
Link to : Orders! Link to: SF

Anyway that I can it going down the page for eg
Link to : Orders!
Link to: SF

  • You can simply add <br /> tag after the first <apex:outputLink /> for a line break – highfive Sep 11 '14 at 11:02
  • HI Highfive, Thanks for providing this solution :) – user11500 Sep 11 '14 at 11:13

h1 is a block-level element which spans the entire width of the line. You can use CSS to change them to display inline.

    h1 {
        display: inline;

However, don't use h1 tags for things that are not headers. Use span tags, or no tag at all.

<apex:page >    
    Link to : <apex:outputLink value="https://emea.salesforce.com/801/">Orders!</apex:outputLink>              
    Link to : <apex:outputLink value="https://emea.salesforce.com">SF!</apex:outputLink>      
| improve this answer | |
  • Alex Tennant, thansk for posting your solution, given me a heads up – user11500 Sep 11 '14 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.