473,473 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

vertical aligning LIs within a UL

55 New Member
Hi, I have UL that has its height property set around 50px. I want the LIs to be in the middle of it, but I can't seem to get them to co-operate. Am I missing something obvious?


Expand|Select|Wrap|Line Numbers
  1.   <style type="text/css">
  2.   ul
  3.   {
  4.      height: 100px;
  5.      background-color: cornsilk;
  6.      vertical-align:  middle;
  7.   }
  8.   ul li
  9.   {
  10.      padding-top: 20px;
  11.      margin:  20px;
  12.      list-style-type: none;
  13.      display: inline;
  14.   }
  15.   </style>
  16.  
  17.  
  18.  
  19.  
  20.      <ul>
  21.           <li>test</li>
  22.           <li>test</li>
  23.           <li>test</li>
  24.           <li>test</li>
  25.           <li>test</li>
  26.           <li>test</li>
  27.  
  28.  
  29.      </ul>
  30.  
  31.  
  32.  
Jun 16 '09 #1
0 1672

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Felipe Gasper | last post by:
I'm trying to make some "sub-cells" in an HTML table and to control their positioning and content presentation via CSS. In the table at the following URL: ...
15
by: A.Translator | last post by:
From what I read, aligning images vertically in a div is not easy. It proofed too difficult for me: I tried to align the "control buttons" on the right hand side of the main nav bar by vertically...
6
by: ti33m | last post by:
Hi All, I'd like to include a datasheet on my user interface but since I'm starting to run tight on space, I'd like to have a vertically-oriented datasheet (column 1 has labels, column 2 has...
0
by: tradmusic.com | last post by:
Hi, I am experimenting with a roll-over but am struggling to get the text to align, vertically, in the middle: #sidebar a:link, #sidebar a:visited { border: 1px solid #7A95CA; display:...
2
by: tradmusic.com | last post by:
Sorry to re-post, but my original post didn't seem to appear. Here it is again: I am experimenting with a roll-over but am struggling to get the text to align, vertically, in the middle: ...
0
by: dudethat | last post by:
Hello, im brand new to forums and as you will see to css! The problem im having here is the text i want in the cell (class hd) refuses to align to the top in firefox. Ive tried placing it straight...
3
by: howa | last post by:
Hello, In Firefox or other browers, vertical scrollbar might not exist and this lead to the page aligning problem (Inconsistency), i.e. when you just from one page (w/scrollbar) to another page...
4
by: lxa1801 | last post by:
Okay, so here is my issue. I have done a W3C validation and the errors I get are mostly alt or shorttag, doesn't appear to be anything connected to this problem. You can view the site at...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.