dev_intagleo
asked on
reduce gap between bullet and text
I have a simple structure like
and i want to reduce/control the spacing b/w bullet and text
I cant use the bullet image solution as suggested on stackoverflow or on google searches
+ span solution is not working
as my table width is fixed and as my text increases and moves down the line due to table fixed width it is not aligned with the upper line text and slighly moves right
So how can i fix that?
<style>
li{ margin-left: -0.4em }
</style>
<table>
<tr><td>
<ul >
<li ><span>Some text</span></li>
</ul>
</td></tr>
<table>
and i want to reduce/control the spacing b/w bullet and text
I cant use the bullet image solution as suggested on stackoverflow or on google searches
+ span solution is not working
as my table width is fixed and as my text increases and moves down the line due to table fixed width it is not aligned with the upper line text and slighly moves right
So how can i fix that?
use
td {
line-height:<value>;
}
td {
line-height:<value>;
}
Try:
ul {text-indent: -1em;}
You want to reduce the space between the bullet and text yes?
As you have the span wrapping the text on the list item just add a negative margin to it.
Josh
EDIT: Stingray's method is neater and beats mine
As you have the span wrapping the text on the list item just add a negative margin to it.
<style>
li{ margin-left: -0.4em }
span{margin-left: -10px}
</style>
<table>
<tr><td>
<ul >
<li ><span>Some text</span></li>
</ul>
</td></tr>
<table>
Josh
EDIT: Stingray's method is neater and beats mine
ASKER
@Anuroopsundd:
i tried line height but it has no effect, below is my modified code
@StingRaY:
i tried text-indent but it only works for FF, on IE its does not have any effect.
i tried line height but it has no effect, below is my modified code
<td class="rightNav handCursor" style="line-height: 17px;">
<ul>
<li> <span style="margin-left: -0.4em;"> Some text Some text Some text Some text </span> </li>
</ul>
</td>
@StingRaY:
i tried text-indent but it only works for FF, on IE its does not have any effect.
ASKER
also note that
is there above the <td>
<table width="180" cellspacing="0" cellpadding="0" border="0">
<tbody>
is there above the <td>
ASKER
@Josh:
Your solution is right, i have already do that but the problem is style="width:abc;" on the table and the increase in text inside span
You can see the below complete code and problem in it
Your solution is right, i have already do that but the problem is style="width:abc;" on the table and the increase in text inside span
You can see the below complete code and problem in it
<html>
<head>
<style>
li{ margin-left: -0.4em }
span{margin-left: -10px}
</style>
</head>
<body>
<table style="width:150px;">
<tr><td>
<ul >
<li ><span>Some text Some text Some text Some text Some text</span></li>
</ul>
</td></tr>
<table>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanx alot :)
ASKER
Great
ASKER
untitled.JPG