Jump to content

How does one set the height of a list item in a drop down menu?


drayarms

Recommended Posts

Hello, I'm trying to create a drop down menu.  I'm just going to paste the relevant html and css below.  What do I have to do to make sure that the <li> items in question, get the height that I want to specify? I have tried using css height: and line-height: to no avail.  The <li> items don't get any higher than the length of the text enclosed within them.

 

 

html


<ul id = "pic_options_panel">

<li  class = "comment_color pic_options">Picture Options

	<ul id = "pic_options_div">

		<li id = "pic_options_collapse"> collapse </li>

		<li align = "center">Make Main Picture</li>

		<li align = "center">Delete This Picture </li>

		<li id = "upload_pic_link" align = "center">Upload New Picture </li>

	</ul>

</li>



<li class = "comment_color pic_comments">Comments</li>


<li class = "clear"> </li>


</ul>

 

 

css

 

.pic_options ul li{z-index:603;color:#fff;margin:0px;padding:0px;width:142px;height;80px;border-bottom:1px solid #fff;cursor:pointer;}

Link to comment
Share on other sites

height;80px;

 

Doesn't anything look wrong there?

You may want to format your code a little better

body{

  color: #FFFFFF;

  border: 2px solid red;

}

 

is a lot easier to read than the way you have it.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.