Let me first preface this blog by saying that I’m not a designer. When it comes to art and creativity, I’m so left brained, I actually wonder if my right brain even partakes in the process.
- I’ve always wanted to see what GoogleCode offered in relation to SourceForge / RubyForge.
- I’m so caught up in corporate America staring at Java / Ruby code all day, not only haven’t I blogged about anything Django related in quite a while, but it’s nice to get some commentary from the community, i.e. “your code sucks”. (Brings me back to reality)
- I found myself using the same templates on a variety of projects and figured that I could do my part and help eliminate unncessary cruft/duplication.
So without further adieu, check out the project here. I know, I know - nothing revolutionary here, but I figure since Django is picking up some steam, these templates might help a Djangonaut get a head start on their next million dollar idea.
Voila! Enjoy!
Tagged: base-css, Django, fonts-css, grids-css, layout, Python, reset-css, templates, yahoo!-ui, yui.
A few months ago, I wrote a blog about implementing footerStickAlt using jQuery & Yahoo! UI Grids. Fast forward to the present and I have a small update to post. In my previous implementation, one of the required libraries was the jQuery Dimensions plugin because of its nifty window/document height() calculations. However, after reading the plugin’s changelog and seeing as how jQuery 1.2 core now supports the height function, this plugin is no longer required. So without further adieu, here’s the updated footerStickAlt implementation instructions.
It’s been tested in IE 5.5+ and Firefox 2.
*Note*: In this implementation, I don’t check for the margin on the ‘body’ element since we’ve set all our margins and padding on
to 0. See the demos for details.
Requirements
- Yahoo! UI Grids [download]
- JQuery 1.2+ [uncompressed] [compressed]
- Place the Javascript below in a file of your choosing! Don’t forget to include it in your page!
$(document).ready(function() {
if ($(window).height() > $(document).height()) {
$('#bd').css({
height: $('#bd').height() +
($(window).height() -
$(document).height()) + 'px'
});
}
});
Check out the demos here: page with short content, page with long content!
(Notice the pages no longer depend upon jQuery Dimensions! Wheee!)
Enjoy!
Tagged: footerStickAlt, grids, Javascript, jquery, layout, update, yahoo, yahoo!-ui.
My co-worker, Stephen, and I have implemented our layouts using the Yahoo! UI Grids library. One of the dilemmas we’ve been facing is the inability to use Cameron Adams’ footerStickAlt CSS solution @ The Man In Blue.
Basically, footerStickAlt is best described as
sites that require the Web page footer to be positioned either at the bottom of the browser window or at the bottom of the Web page – whichever is visually lowest.
Fast forward to the present, and using JQuery, JQuery Dimensions plugin, and a little nifty Javascript, we wrote up a solution at work for our Yahoo! layouts. One thing to remember is that this solution won’t work in browsers with Javascript disabled, i.e. it degrades to whatever Yahoo! grid layout you’re using.
It’s been tested in IE 5.5+ and Firefox 2. (I think =P).
*Note*: In this implementation, I don’t check for the margin on the ‘body’ element since we’ve set all our margins and padding on
to 0. See the demos for details.
Requirements
- Yahoo! UI Grids [download]
- JQuery 1.1.2+ [uncompressed] [compressed]
- Dimensions plugin 1.0.0-b2 [zip]
- The Javascript below in a file of your choosing! Don’t forget to include it in your page!
$(document).ready(function() {
if ($(window).height() > $(document).height()) {
$('#bd').css({
height: $('#bd').height() +
($(window).height() -
$(document).height()) + 'px'
});
}
});
Check out the demos here: page with short content, page with long content!
Enjoy!
Tagged: dimensions, footerStickAlt, grids, Javascript, jquery, layout, yahoo, yahoo!-ui.