How do you change the width parameter of an <li> element?

M

mike_newsgroups

Hello everyone,

Anyone know how can I change the 30px below to a different value from
a javascript function?

<table>
<tr>
<td>
<div id="star-rating">
<ul>
<li id="id1" name="name1" class="current" style="width:30px;"></
li>
</ul>
</div>

Any help would be greatly appreciated!

Mike
 
L

-Lost

Hello everyone,

Anyone know how can I change the 30px below to a different value from
a javascript function?

<table>
<tr>
<td>
<div id="star-rating">
<ul>
<li id="id1" name="name1" class="current" style="width:30px;"></
li>
</ul>
</div>

Any help would be greatly appreciated!

You can either change the style object's width attribute or assign a class to it via
className.

http://www.irt.org/xref/style.htm

However, I would be remiss if I did not mention that you can change the width of the
element using the pseudo-class :hover.

-Lost
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,685
Members
48,796
Latest member
Greg L.

Latest Threads

Top