"blank line" under <ul> or <ol>
I build a table from my code behind, with data stored in the database.
The data that goes into some tablecells are html.
my problem is that when the data is a list (ul or ol) there will always be a blank line forced under the list, which make the cell look kind of stupid.
I tried to substitude list with html like "1. Item One<br />2. Item 2<br />3. ...., but in this case it is not neat when the line of an itme break (text will be under the number).
Any ideas?
ps: Not sure I made myself clear, so go to my site , click on "See Sample" under the Prestige button, and in the parts list, click on "Engines" , and look at the "Key Specifications/special features". There I used the second way (using <br />).
But go to hte Japanese side (clicking the same above links), and see the same item where i used and unordered list. nicely lined up, but blank space underneath
Re: "blank line" under <ul> or <ol>
if you wanted to...
you could use the second way, as you did in the first example and stick a div tag in that cell with a left margin like so:
<div style="margin-left:5px">
my data
</div>
Re: "blank line" under <ul> or <ol>
uuuhm...i think the text will still start under the numbers, if the line break...
or i got you wrong now?
Re: "blank line" under <ul> or <ol>
What blank line? :confused:
2 Attachment(s)
Re: "blank line" under <ul> or <ol>
You mean the difference between these two? How the list is aligned in the Japanese version as compared to the English.
http://vbforums.com/attachment.php?attachmentid=52043 http://vbforums.com/attachment.php?attachmentid=52044
Re: "blank line" under <ul> or <ol>
Ah, I see now. The Japanese list items seem to automatically take that much padding space. You could try setting the css styles (margin:0px;) for those <li>s or for the <ul> itself.