This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Luca Galvani
Posted Jan 25 - Read on Facebook

Hi guys, I'm trying to style an input... the layer has html: '<input type="text"></input>', but when I set the 'style': ... nothing happens... It happens only to me? :(

3 Comments

Daniel Kamphorst

Try the DOM notation. layer.style.fontSize = "34px" for example. Or layer.style.cssText += "width: 530px; height: 58px; font-size: 34px;" (for adding multiple properties/styles). For a full list of CSS properties, check: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Properties_Reference. You could also check this example by Ed Chao: http://framerjs.com/examples/preview/#chat-bubbles.framer

Pheetype Heyground

so.. tiny notice for an input tag <input> designed have no end tag

Jordan Robert Dobson

I can give you a new module to test if you'd like.

Read the entire post on Facebook