Comments on: A Body with Class http://postpostmodern.com/2009/02/20/a-body-with-class/ Speaking of web development. Tue, 09 Apr 2013 15:30:39 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: Ben http://postpostmodern.com/2009/02/20/a-body-with-class/comment-page-1/#comment-2289 Ben Wed, 19 Jan 2011 15:48:11 +0000 http://postpostmodern.com/?p=228#comment-2289 Thanks, good to know. I did try to Google "-%>" but it's futile :) Thanks, good to know. I did try to Google “-%>” but it’s futile :)

]]>
By: Jason Johnson http://postpostmodern.com/2009/02/20/a-body-with-class/comment-page-1/#comment-2288 Jason Johnson Sun, 16 Jan 2011 17:31:31 +0000 http://postpostmodern.com/?p=228#comment-2288 Ben, sorry your code is not coming through. Markdown must be having an issue. The dashes on the closing erb tags prevent a newline after the code. It's not required. Ben, sorry your code is not coming through. Markdown must be having an issue. The dashes on the closing erb tags prevent a newline after the code. It’s not required.

]]>
By: Ben http://postpostmodern.com/2009/02/20/a-body-with-class/comment-page-1/#comment-2287 Ben Sun, 16 Jan 2011 16:10:53 +0000 http://postpostmodern.com/?p=228#comment-2287 Code didn't appear in my comment. 2nd attempt: ` ` (minus characters removed) Code didn’t appear in my comment. 2nd attempt:

(minus characters removed)

]]>
By: Ben http://postpostmodern.com/2009/02/20/a-body-with-class/comment-page-1/#comment-2286 Ben Sun, 16 Jan 2011 16:07:31 +0000 http://postpostmodern.com/?p=228#comment-2286 Nice tip. One thing I was wondering - how does the minus symbol impact on the output? I.e. any reason why not to just put: <code> </code> Nice tip. One thing I was wondering - how does the minus symbol impact on the output?

I.e. any reason why not to just put:

]]>
By: james http://postpostmodern.com/2009/02/20/a-body-with-class/comment-page-1/#comment-1900 james Fri, 23 Oct 2009 04:49:31 +0000 http://postpostmodern.com/?p=228#comment-1900 using class tags on your body is pretty cool, and allows you to let css do the work for detecting current page styles on menu items. A really lazy way so you dont have to do any server-side processing to add a class="current" to menu items and can thus include a "static" tpl file with your main menu once. <code> .history a#history, .about a#about, .faq a#faq { background-color:pink; /* make the current page stand out */ } </code> <code> <a href="/about" rel="nofollow">about</a> <a href="/about/history" rel="nofollow">history</a> <a href="/faq" rel="nofollow">faq</a> </code> using class tags on your body is pretty cool, and allows you to let css do the work for detecting current page styles on menu items. A really lazy way so you dont have to do any server-side processing to add a class=”current” to menu items and can thus include a “static” tpl file with your main menu once.

.history a#history, .about a#about, .faq a#faq { background-color:pink; /* make the current page stand out */ }

about history faq

]]>