ID:156352
 
How do i use these rules...

I'm trying to display an icon 32x32 size in my text output.

BIG IMG.icon {width: 32px; height: 32px}
SMALL IMG.icon {width: 16px; height: 16px}

the above is an example of how to make it happen, however, i do not understand where i define these rules.

anyone who could help?
What do you want to use?
In response to Taha123
I want to be able to display an icon in a text output at its full size being (32x32 pixels).

Now from the reference, this is possible by setting up some rules :
EXAMPLE:
BIG IMG.icon {width: 32px; height: 32px}
SMALL IMG.icon {width: 16px; height: 16px}

which in turn will allow me to do this:
usr << output("<BIG>\icon[usr]</BIG>","chat")

showing the icon as 32x32. instead of the default 16x16 shrunk version.

I've tryed reading on ;
http://www.byond.com/ members/?command=reference&path=DM%2Ftext%2Fmacros%2Ficon#co mment_1 the icontextmacro.

and on style sheets ;
http://www.byond.com/ members/?command=reference&path=DM%2Ftext%2Fstyle#comment_1

How do i make my own stylesheet?
In response to Narutostory
I believe you may have skipped a "related" topic when looking at the style-sheet reference.

Things like handling the size of icons in output are generally handled in client.script

http://www.byond.com/ members/?command=reference&path=client%2Fvar%2Fscript#commen t_1
In response to Maximus_Alex2003
I think client.script is outdated since the 4.0 update, like macro files and client.command_text. Then again, it might be the perfect place for it if he wanted the style to be "global" across all outputs.

@OP, if you just want this for a specific output, you can place it in the skin's output control's style parameter.
In response to DarkCampainger
I had actually read the reference on client.script, my attempts to understand it on the other hand was not that great... anyways.. problem solved!

Thanks for the help :)