treehouse : what would you like to learn today?
Web Design Web Development iOS Development

chazzwick

  • Need to calculate the no of days between two dates?

    a little googling gave me this code: var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds var firstDate = new Date(2009,04,21); var secondDate = new Date(2009,04,25); var diffDays = Math.abs((firstDate.getTime() - secondDate.getTim…
    Comment by chazzwick April 2009 permalink
  • Centering Table in Chrome

    You really dont need a table for that data. Split it into two divs. Float one left, the other right. Give them both a width of 50%, and you should be sorted
    Comment by chazzwick April 2009 permalink
  • Make on element's length follow another?

    Basically, wrap menu and content in another div. Ive called it #page-wrap. Position this relatively. For the menu div and the container div, position them absolutely. This is what I did: #page-wrap {width:960px;margin:20px auto; background: #daede9…
    Comment by chazzwick April 2009 permalink
  • Animation on Blu-ray Site

    Firefox 3 (Windows XP), i just get a horizontal scrollbar for no apparent reason. Using firebug, i think its due to the ul#about. though i may be wrong
    Comment by chazzwick April 2009 permalink
  • How would you do this?

    it looks vaguely tabular that data, if you used a 32 row, 5 column table and merge the cells in the first 4 columns correclty, it would probably be formatted correctly straight away. not sure how semantic this is tho
    Comment by chazzwick April 2009 permalink
  • Animation on Blu-ray Site

    first off, i like the design. a few changes though: 1 put a rainbow pattern on the cd, make it more lifelike 2 get a hover effect on the navigation 3 you have some alignment issues in firefox with the searchbox, maybe put it in the sidebar, it loo…
    Comment by chazzwick April 2009 permalink
  • How to make an apple style news bar

    This Jquery plugin seems to replicate well what Apple is doing http://www.texotela.co.uk/code/jquery/newsticker/
    Comment by chazzwick April 2009 permalink
  • Launched a new 'green' site!

    its a nice design. one thing i would say is, a user will have no idea what the site is really about unless they scroll down to the bottom. websites are all about trying to get the most important information to the visitor as quickly as possible. try…
    Comment by chazzwick April 2009 permalink
  • background image auto fit

    maybe have a look at Chris's article http://css-tricks.com/how-to-resizeable-background-image/. It might help
    Comment by chazzwick April 2009 permalink
  • Philosophy website redesign, what do you think?

    i would put the navigation and the search box in the mainpage div, no point in those being pushed to the edges of the browser when its maximised. also, i would increase the size of the arrows and numbers for the image changer, its very hard to spot…
    Comment by chazzwick April 2009 permalink
  • jquery effect request

    $(document).ready(function() { $(\"#box\").hover(function(){ $(\"#box span\").animate({'bottom' : '0'})}, function(){ $(\"#box span\").animate({'bottom' : '-30px'}); }); })…
    Comment by chazzwick April 2009 permalink
  • new design and unsure about the font

    i would use an underline, not a strike-though for the link hover. i also agree with robski, make the lined paper more life size, it does seem to zoomed in. also, Courier New looks fine to me, you dont see it much, but it does fit in with your desig…
    Comment by chazzwick April 2009 permalink
  • overflowing content

    Either use a background image 1px high ,that is white and gray, and repeat it vertically. Or you can use a Jquery plugin (http://www.filamentgroup.com/lab/setting_equal_heights_with_jquery/)
    Comment by chazzwick April 2009 permalink
  • Show / Hide Form Section

    have a look at Chris's Registration form http://css-tricks.com/examples/SeminarRegTutorial/ (Download http://css-tricks.com/examples/SeminarRegTutorial.zip Seems to be what you are asking for
    Comment by chazzwick March 2009 permalink
  • Any Thoughts???

    1)The paragraphs are hard to read in Brush Script. Its best to use a fancy font for headers, and use a sans-serif for long pieces of text (such as arial or verdana) 2) The navigation moves awkwardly on hover, get rid of the border:1px black 3) The f…
    Comment by chazzwick March 2009 permalink
  • Want to keep a portion of page at top

    div {margin: 0 auto; width:960px} to centre a div
    Comment by chazzwick March 2009 permalink
  • Delaying a jquery event

    thanks dave, that sorted it! :D
    Comment by chazzwick February 2009 permalink
  • Delaying a jquery event

    Thanks for your replies. I tried both, Robski's worked,but Chris's didnt. Not sure if i got the code wrong. Heres what ive got: $(document).ready(function() { function doTheHide() { $(\"#reveal\").slideUp(); } $(\&q…
    Comment by chazzwick February 2009 permalink
  • thoughts

    Make the +'s an ordered list. Numbers would help users figure out its a slider.
    Comment by chazzwick February 2009 permalink
  • When list-style:none, bg-image disappears in Safari?

    Post your code, or better yet a working link. Helps us a great deal
    Comment by chazzwick February 2009 permalink
  • Jquery focus and now Toggle

    $(function(){ $('.disp1').click(function() { $('.more1').slideDown('3000'); $('.more1').css('display','yes') return false; }); add return false; that should stop the page jumping to th…
    Comment by chazzwick February 2009 permalink
  • Backend-editable footer sentence

    its not my code, this is where i got it from http://www.webloglines.com/blog/stuff/article/building_a_control_panel_for_your_wordpress_theme.php Youd have to ask them
    Comment by chazzwick February 2009 permalink
  • Backend-editable footer sentence

    Its quite a long code, but this is what i used to do the same thing for a website recently. The Client wanted a way to put news and traffic updates on their site, and have them update it in wordpress. Add this code to functions.php:
    Comment by chazzwick February 2009 permalink
  • Some design

    i really dont like the flash carousel. its slow, not very intuitive and over 100kb. try using jquery. you can get some nice effects and would be 2-3x smaller. Chris has some nice sliders you could use: http://css-tricks.com/examples/FeaturedConte…
    Comment by chazzwick February 2009 permalink
  • Please look this page over for me.

    the bottom image is 1059px wide, making horizontal scrollbars appear on most monitors. Make it around 980px wide, shouldnt lose any of the effect of the image
    Comment by chazzwick January 2009 permalink
  • wordpress archive help!

    This tag should list all pages in a certain category. This tag needs to be in the loop http://codex.wordpress.org/The_Loop Read this for more info: http://codex.wordpress.org/Template_Tags/query_posts
    Comment by chazzwick January 2009 permalink
  • WordPress and No Search Engine Results?

    Go to wordpress settings < privacy and make sure the blog is set to visible. Thats all i can think of at the moment.
    Comment by chazzwick January 2009 permalink
  • Positioning Elements of an Online Form

    I think this is the best markup for the form: Name: Bubble text Last Name: etc. etc. then you can target the and separately, and style it however you want.
    Comment by chazzwick January 2009 permalink
  • a better blogroll tutorial

    .stripNav li a { display:block; height:18px; text-indent:-9999px; } .stripNav li.tab1 a { background:transparent url(images/tab-psdtuts.jpg) no-repeat scroll center top; width:63px; } Find this code, get rid of text-indent:-9999px; background; and …
    Comment by chazzwick January 2009 permalink
  • blog redesign

    hey, thanks for all your replies. ill get on with changing the stars, knew they didnt really look right.
    Comment by chazzwick January 2009 permalink