1

The current listview I'm using has extra space above and below the texts. How do I make it a really compact one? http://jsfiddle.net/qW6sP/8/

       <ul data-role="listview" data-theme="d" data-divider-theme="d">            
        <li>
                <h6 style='font-size:8pt;'>Mode: repairing</h6>
                <p>00 hours 00 mins 00 secs</p>                    
                <p class="ui-li-aside"><a href="#" data-role="button" class="ui-btn-right" id="dismissbtn" onclick="fadeint()" data-mini="true" >Done</a></p>

        </li>
      </ul>

1 Answer 1

1

The extra space is created by the h6 and p tags. Use a custom span class and then you can position and size the text however you want...

html:

<span class="compactHeader"> Mode: repairing </span>
<span class="compactText">00 hours 00 mins 00 secs</span>

css:

.compactHeader
{
  //set size and positioning as you want.
}

.compactText
{
  //set size and positioning as you want
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.