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
    Commented Sep 11, 2014 at 11:02
  • HI Highfive, Thanks for providing this solution :)
    – user11500
    Commented Sep 11, 2014 at 11:13

1 Answer 1


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>      
  • Alex Tennant, thansk for posting your solution, given me a heads up
    – user11500
    Commented Sep 11, 2014 at 11:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .