Home | Forum | Unread | Sign in | Sign in
Wirebird
Forum

blogs > rest > html

Notes on using HTML and CSS to support a RESTful web site.
Subscribe | Unread | Recent | Group options | Topic options | Post
KarenCravens
Karen Cravens

Sat

Aug 4
2007

19:11Z

RESTful HTML (and CSS)

I find myself asking HTML questions in the REST mailing list, which is probably not terribly appropriate. But I'm discovering my HTML knowledge is not exactly standards-compliant, in large part because my past HTML work has been fairly static.

I'm also slightly more constrained than a lot of REST programmers, with my self-imposed restrictions of "usable by dumb browser," which means not using JavaScript to "cheat" (until later).

So I'm faced with things like using forms instead of links (because the browser can't do a POST/PUT/DELETE with a link), which means sometimes figuring out how to put a "naked" submit button out there, and (here's the hard part) fit it into the layout of a page. So far as I can tell, forms are unavoidably block-level critters, which means they stubbornly want to be on a line by themselves. This means using float:left to get a row of them and (as can currently be seen in the mailbox mark (un)read buttons) sometimes they still won't properly stay on the baseline.

As I run across workarounds, or figure them out myself, I'll put them here. Also, though I haven't gotten Wirebird in a repository yet, it's open source (Creative Commons Attribution-ShareAlike, though I'll probably also GPL and Artistic it as well) so you can swipe any bits of HTML, CSS, or JS that you find handy (that isn't otherwise noted in the comments as belonging to someone else, at least).

Subject (required)




 
Refresh