How to Make a UL the Same Height in Internet Explorer

The Cascading Style Sheet "line-height" property controls the vertical distance between lines in an HTML Web language document. You can add the line-height property to a Web page to ensure that all unordered lists appear the same height when visitors access your site in the Internet Explorer browser. You can specify the line-height property using either CSS em values, pixel values or percent values. Alternatively apply the code to your website's CSS style sheet to affect all Web pages that link to the style sheet.

Instructions

    • 1

      Open the HTML file in which you want to make all unordered lists the same height using your HTML editor or text editor. Alternatively, open your website's CSS style sheet using an HTML editor or text editor.

    • 2

      Add the following lines of code within the "<head>" section at the top of the HTML code:
      <style type="text/css">
      ul{
      line-height:1;
      }
      </style>
      If adding the code to your website's CSS stylesheet, omit the "<style type="text/css">" and "</style>" tags.

    • 3

      Replace "1" with the numerical em value, the numerical pixel value -- "10px," for example -- or percent value -- "100%," for example -- of the line height you want to apply to all unordered lists on the page or site.

    • 4

      Save the file and upload it to your server.

Related Searches:

References

Comments

Related Ads

Featured