Solved

How to change <UL> height?

Posted on 2006-11-11
2
1,972 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:
Steggs earned 150 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 150 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now