How to change <UL> height?

Hi , How can I change <UL> height?

regrds.
LVL 3
Abdu_AllahAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mark StegglesConnect With a Mentor Web DeveloperCommented:
Greetings Abdu_Allah,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Steggs ul height</title>
<style type="text/css">
ul
{height:400px;
border:1px dashed #369;
}
</style>
</head>
<body>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>

</body>
</html>

Regards
0
 
VoteyDiscipleConnect With a Mentor Commented:
I would recommend, however, using a height in em instead of in px so the ul will grow or shrink in relation to the font size.

ul {
    height: 3em;
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.