About stylin' a textbox

  • I'm just curious about how to style a textbox in Construct 2:

    what i've read:

    Styling Textbox objects

    Textbox controls can be customised in a huge number of ways via CSS (Cascading Style Sheets). Rather than adding actions to set all of the possible properties, the Textbox object exposes a Set CSS style action. Knowing CSS will of course be an advantage here, but it is simple to use for simple properties. A few examples are listed below.

    Make the text red: Set "color" to "red"

    Make the background yellow: Set "background-color" to "yellow"

    Make the border a thick light grey: Set "border" to "3px solid #AAAAAA"

    Make the font bigger: Set "font-size" to "2em"

    Make a dashed red border: Set "border" to "2px dashed red"

    i know css, but i don't know where to set these options - i just need the hint "where" to do this :D

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You posted the answer yourself. Use the 'Set CSS style' action. It's the first action of the TextBox object.

  • <img src="http://s22.postimg.org/4zq0mxjdd/css.jpg" border="0" />

  • Hey, thanks for you quick help on that Just checked it out right now. Cool.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)