Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to change <UL> height?

Posted on 2006-11-11
2
Medium Priority
?
2,002 Views
Last Modified: 2006-11-18
Hi , How can I change <UL> height?

regrds.
0
Comment
Question by:Abdu_Allah
2 Comments
 
LVL 30

Accepted Solution

by:
Mark Steggles earned 600 total points
ID: 17921904
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
 
LVL 19

Assisted Solution

by:VoteyDisciple
VoteyDisciple earned 600 total points
ID: 17921981
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question