TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dynamically generate HTML/CSS for forms, icons, buttons

112 pointsby lambtronover 12 years ago

17 comments

glesicaover 12 years ago
I spent about 60 seconds trying to figure out how to clear the modal that comes up after clicking on "Button Builder". The "X" to close the dialog is so thin that I literally couldn't see it. That isn't good design.<p>Once I figured it out, neat tool.
评论 #5066033 未加载
评论 #5066023 未加载
hpaavolaover 12 years ago
By default the form builder gives you HTML like this:<p><pre><code> &#60;form class="form-container"&#62; &#60;div class="form-title"&#62;&#60;h2&#62;Sign up&#60;/h2&#62;&#60;/div&#62; &#60;div class="form-title"&#62;Name&#60;/div&#62; &#60;input class="form-field" type="text" name="firstname" /&#62;&#60;br /&#62; &#60;div class="form-title"&#62;Email&#60;/div&#62; &#60;input class="form-field" type="text" name="email" /&#62;&#60;br /&#62; &#60;div class="submit-container"&#62; &#60;input class="submit-button" type="submit" value="Submit" /&#62; &#60;/div&#62; &#60;/form&#62; </code></pre> Why wrap the h2 in div? Why labels are divs? Why the button is wrapped in div? Br elements?
评论 #5067510 未加载
评论 #5066321 未加载
jmickeyover 12 years ago
Would be fantastic, if instead of having to provide individual colour shades for the button border, shadow, etc, I could just provide one overall colour and all other ones are derived from that.<p>Apart from that - a very useful tool indeed!
tech-no-logicalover 12 years ago
None of the interface elements in the builders work (correctly) in Opera. I certainly hope the generated html does a better job.
manishsharanover 12 years ago
This is a great tool ; however my advice to any programmer who found this useful is to learn a CSS pre-processor like LESS or SASS+Compass (my preference).<p>I am programmer and I used to love WYSIWYG tools for building /styling buttons and forms; my favourite tool was Stylizer. However, once I began to get some level of understanding of SASS/Compass, I rarely use those tools. If and when I do use WYSIWYG tool, I copy a over the generated CSS as a SASS mixin.
didgeoridooover 12 years ago
Yikes. These generated forms are a semantic markup and accessibility nightmare. No legend or labels to be found. If you find yourself writing forms like this, please please seek out some resources[0] on how to approach them properly.<p>[0]<a href="http://www.gethifi.com/blog/html-forms-the-right-ways" rel="nofollow">http://www.gethifi.com/blog/html-forms-the-right-ways</a>
评论 #5066760 未加载
nosecreekover 12 years ago
Nice tool. It would be good if you also allowed for manually entering certain values. For example, I might want to set the font-size to 16px because that is the font-size used by the rest of my stylesheet. With just the slider I don't really know how the text on my button will look next to the rest of my page.
polyvisualover 12 years ago
A useful set of tools. It would be great to give the user some idea of browser compatibility, though.
obituary_latteover 12 years ago
Is it really dynamic if you have to enter a bunch of stuff to create the elements?<p>I was expecting from the title some kind of tool that would create the form on the fly. I guess I should have read more gooder.
suyashover 12 years ago
I don't see the need for this tool, instead I like jsfiddle much better where you can edit the source directly instead using these controls. Generated CSS is not the best either.
codegeekover 12 years ago
I like it. Useful tool. Btw, I noticed that if I change the Text color to white, the text color button itself changes completely to white and i cannot see it anymore (IE8)
tknewover 12 years ago
Please put a random generator
BetterLateThanover 12 years ago
Cool looking sliders can't be moved in Opera 12.12 / Win7
newsmasterover 12 years ago
Great tool! Thank you. I will be using this.
zalewover 12 years ago
cool. it would be nice if it generated some reusable SASS mixins, not only the generated css.
deepujover 12 years ago
This is cool! A time saver!!
jQueryIsAwesomeover 12 years ago
Selecting the colors one by one is really annoying; I would recommend something like the CSS gradient generation tool[0] where you can easily change the HUE, saturation and lightness of all the colors at once. Presets like theirs would be nice too.<p>[0]<a href="http://www.colorzilla.com/gradient-editor/" rel="nofollow">http://www.colorzilla.com/gradient-editor/</a>