|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
about text-indent and changing classes
This thread might be javascripting, sorry if I'd missplaced it.
Moderators are welcome to move it if they feel it necessary. first question. Is it possible to force text-indent to start from the right? e.g. (in a <td></td>) | 2039580285 | I've tried setting text-indent in my stylesheet, but it only indents from the left. e.g. | 2039580285| I've worked around this using " ", but that's not really looking very good. Any thoughts about this? second question. Can I change classes in runtime using javascript? e.g. <object class="something" onmouseover="change class to somthing else"> ? Thanks in advance. |
|
#2
|
||||
|
||||
|
For the first question, you can use padding-right and padding-left in the stylesheet to specify how far the text should indent from each side. Not sure about the second question.
|
|
#3
|
|||
|
|||
|
Regarding the padding thing, it worked very well, thank you
![]() and, one can actually change classes in runtime using javascript, I browsed through the MSDN library and found. object.className=[ classname] |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > about text-indent and changing classes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|