Skip to content

Is Possible To Align Text To Start From Left Inside A Button?

Featured Replies

Is possible to align text to start from left inside a button?

every button from lineage2 have the text in the middle

i want make it start from left side

anyone know? i have tryed everything i know and doesn't work

I am not sure since i never worked with in-game htmls. but try align="right" 

  • Author

aling where?

 

<button value="Dress me as assasin" action="bypass -h voice .dressme_black_assasin  width=273 height=22 back="button.HtmlWnd_BTN01_over" fore="button.HtmlWnd_BTN01">  
 
i want the text  "Dress me as assasin" 
to start from left and continue
 
the text stay all the time in the middle of the button

Moving it to right side won't work. Since the text will be moved as well. The text is always centered. The only 'walk around' I know is, to cut the button width. For example, if original is 256, cut it to 150 or so, depending on your text length. But yeah.. Button is simply cut and it looks bad :D

Edited by SweeTs

  • Author

I gave up, is impossible to make this thing....

I wanted to have l2classic htmls in interlude but i found out is impossible

u can use tables. use the button images as table background and use a normal <a action for your links. you can change the font color to avoid the blue link color. then use "align" to align ur link that is lying infront of your button image. and voila.... a button with a text aligned to the left or to the right. you can also work with   to create empty spaces infront or your first letter of the first word :)

 

the only thing.....you wont have the button down effect on klicking... but still a good looking html ^^

Edited by snifi

  • Author

snifi if you think it will work
 

<button value="Dress me as assasin" action="bypass -h voice .dressme_black_assasin  width=273 height=22 back="button.HtmlWnd_BTN01_over" fore="button.HtmlWnd_BTN01">

 

fix me this button please :D

 

<button value="Dress me as assasin   " action="bypass -h voice .dressme_black_assasin  width=273 height=22 back="button.HtmlWnd_BTN01_over" fore="button.HtmlWnd_BTN01">

maybe something like that? or in-game html has overflow hidden?

  • Author

not working, all need to do is to find a way that the text will not stay in center of button

i found a way but i have to add spaces to every button, and i have like 500 buttons to edit :))

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.