• SaraElov
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello All, 
Below is my code to display details from an object. I am using "rendered" to render only when value  is not null. This code works fine. 
To show some spacing between rows, I am using <br/> after each outputText.

The problem is : If some value is null and its not rendered, still <br/> will be rendered and shows unwanted spacing between rows. 
I have added a screenshot of the sample format of UI which I am trying to achieve. 

<apex:dataTable value="{!Docs}" var="docs">
    <apex:column >
        <apex:outputText value="ID : {!docs.Id}" /><br /><br />
        <apex:outputText value="Title : {!docs.Title}"/><br /><br />
        <apex:outputText value="Article Body : {!docs.Body__c}"/> <br /><br />
        <apex:outputText value="Article Number :{!docs.Number}"/> <br />
    </apex:column>
</apex:dataTable>
User-added image


What I want to do : I want to display space between rows, without using <br/>