LouPhi
04-15-2008, 06:47 AM
I want to make a change to my CSS on a <ul> style so that if/when the text within the <li> wraps to the next line, the words which wrap fit tightly to the words above, rather than making the wrapped words look like a completely new <li> in the <ul>
See http://www.equinox-group.co.uk/dev/casestudies/charity-dna.php
In this example, 'National Waterfront Museum' on the left hand navigation area is one item, but the word 'Museum' wraps onto a new line and there is a huge gap between the first words...
The css for this style is:
ul.submen {
text-decoration: none !important;
text-transform: uppercase;
margin-left: 0.05em;
list-style-type: none;
color: #003399;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
line-height: 2.15em;
}
I'm guessing its the "line-height: 2.15em'" which is causing the problem, but I need a gap between each line - and if I use 'padding: top' and 'padding: bottom' instead this just makes a gap above and below the entire <ul> rather than each <li>
Any ideas??
LP
See http://www.equinox-group.co.uk/dev/casestudies/charity-dna.php
In this example, 'National Waterfront Museum' on the left hand navigation area is one item, but the word 'Museum' wraps onto a new line and there is a huge gap between the first words...
The css for this style is:
ul.submen {
text-decoration: none !important;
text-transform: uppercase;
margin-left: 0.05em;
list-style-type: none;
color: #003399;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
line-height: 2.15em;
}
I'm guessing its the "line-height: 2.15em'" which is causing the problem, but I need a gap between each line - and if I use 'padding: top' and 'padding: bottom' instead this just makes a gap above and below the entire <ul> rather than each <li>
Any ideas??
LP