Posted By

Sullan on 07/01/11


Tagged

css html


Versions (?)

Auto width label and wrapping with checkboxes


 / Published in: HTML
 

  1. .filterview {
  2. width:150px; width:auto; clear:left;
  3. }
  4. .filterview div {
  5. display:block; overflow:auto;
  6. }
  7. .filterview label {
  8. display:block; float:left; width:auto; max-width:175px; padding:0 !important; margin:auto !important; word-wrap: break-word;
  9. }
  10. .filterview input {
  11. display:block; float:left; margin:2px 2px 0 0 !important; padding:0; width:15px; height:15px;
  12.  
  13. }
  14.  
  15.  
  16. <DIV class="filterview">
  17. <INPUT type="checkbox" standardId="0" prntid="0" value="10559" />
  18. <LABEL>Biggest text goes here for testing purposes.....</LABEL>
  19. </DIV>

Report this snippet  

You need to login to post a comment.