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

Johann

  • .

    @Robskiwarrior "What strawman?" the strawman that I argued for javascript being bad, instead of saying it's silly to use it in this case. you know, without it there being no frigging contact information and whatnot... they're b…
    Comment by Johann December 2011 permalink
  • .

    nice strawman. why do positioning with javascript when it can be done with CSS? that's just silly. anyway.. http://jsfiddle.net/kTP2b/ :)
    Comment by Johann December 2011 permalink
  • .

    they do it with javascript.. which is horrible! turn off javascript == no footer. bleh, google websites.. use them, never ever imitate them ^^ try giving the body element "height:100%", and the html element "overflow:hidden;" vi…
    Comment by Johann December 2011 permalink
  • seamless texture size?

    that's totally besides the point of how graphics and rendering work. I'm sure there's *plenty* of people think a small image file is small in memory... and I just chose huge values to make a point, 5000 x 5000 is noticeable as well. …
    Comment by Johann December 2011 permalink
  • seamless texture size?

    dimensions do matter though. make a two colored .png that is 100000 x 100000 big... even if it's just 10kb or something, older computers will shit bricks. that is because images always end up decompressed in memory. though I doubt it actually …
    Comment by Johann December 2011 permalink
  • Small php problem.

    replaceif ($_GET['page'] == 'frontpage' || 'partners') {withif ($_GET['page'] == 'frontpage' || $_GET['page'] == 'partners') { you know, 'partners' by itself always eva…
    Comment by Johann December 2011 permalink
  • PHP website Layout

    please try to understand what the code actually does :) it is reading the file, and assigning the content to a variable ($page) -- but unless you echo that variable, of course nothing will show up! I just like to put stuff in a variable first, beca…
    Comment by Johann September 2011 permalink
  • PHP website Layout

    one thing that's really important, set the right headers! and generally learn about the awesome extra stuff you can do with them, starting with the basics of setting a content-length that matches the length of the string you're going to ou…
    Comment by Johann September 2011 permalink
  • PHP website Layout

    never trust user input. something like include($_GET["page"].".php");is evil itself. now, if you don't want to "echo the whole page", don't use include(), just use file_get_contents(), and *echo that. that a…
    Comment by Johann September 2011 permalink
  • Packing different aspect-ratio images into uniform row height

    yeah. let's say you have a desired row height like 150px.. - take first/next image, check how wide it would be when 150px high. add that to the row width. - if that makes the row wider than the container width and the picture is the first (an…
    Comment by Johann September 2011 permalink
  • Packing different aspect-ratio images into uniform row height

    well they are using super-technical ways to do this for sure -- whenever you resize the page, it serves completely different thumbnails of exactly the needed size. you can do it without going to such extremes, but you can't do it without javasc…
    Comment by Johann September 2011 permalink
  • Website Design Advice

    maybe make those boxes just show their headers, and when hovered over, slightly change color and expand to reveal the full text? I'd also simply make the whole box a link, but I guess others or you might disagree :P I just don't like "…
    Comment by Johann September 2011 permalink
  • PHP - Remove anything after the last /

    also note: http://php.net/manual/en/function.basename.php http://php.net/manual/en/function.parse-url.php
    Comment by Johann September 2011 permalink
  • PHP - Remove anything after the last /

    $string = '/tralala/bleh'; $plorp = substr(strrchr($string,'/'), 1); $string = substr($string, 0, - strlen($plorp));
    Comment by Johann September 2011 permalink
  • Packing different aspect-ratio images into uniform row height

    simple, but hey: http://jsfiddle.net/V3Dks/
    Comment by Johann September 2011 permalink
  • css coding

    "What happens if you want to change the font-style of an element?" I do a mixture of that. I don't have ".light-grey", but I do have ".pown" for example (== only visible to owner, colors stuff red). attempting to …
    Comment by Johann September 2011 permalink
  • Divs

    uhm sorry, the forums were totally crapping out just now.. what I said was: as you said, that's unneed. any ID should only ever occur once per page, so the tag name doen't add any information.
    Comment by Johann September 2011 permalink
  • Make a Dynamic Sidebar

    in http://baghbagho.com/wp-content/themes/Basic/style-Red.css .commentlist .commentlist li .commentlist li div all have fixed widths! replace those with max-width. maybe there's more... so you should get chrome or opera, and become friends w…
    Comment by Johann September 2011 permalink
  • Make a Dynamic Sidebar

    .commentlist has a a fixed width; maybe keep the value, but change it from width to max-width and see if that helps any?
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    @jamy_za "So stop complaining about the HTML standard and use it to work for you." Heh. I'm not complaining, I'm just responding to strawmen, and why not. If you make assumptions about me, why wouldn't I feel entitled to…
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    @ChristopherBurton "I feel you, man. I know what it's like when you're wrong but you wanna be right." Heh, the irony. Weak ad-hominems don't make arguments, and so far that's the arguments I get. And flat out incorrec…
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    "Perhaps my sarcasm wasn't obvious enough :P" I catched that alright. Go figure :P
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    In practice, they are used to list a lot of stuff with everything still being aligned, properly. Which of course only makes sense for tabular data... which 99% of the data on the web is though, it's just that usually we have no use to display t…
    Comment by Johann September 2011 permalink
  • How to make Dynamic CSS??

    the style.css.php page needs to have the content-type header - not your index.php! It's the stylesheet that needs to be served as text/css.
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    Well, I'm not the one arguing for something to be used, am I ;) Or the one making up stuff about semantic meanings of tags they don't have... haha. Also, take a look at the wikipedia main page. Turn off stylesheets. Tada, still looks neat…
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    And that is? I'm curious, unless that was something where people mumbled stuff under their breath of course :P edit: "the table guy" is probably someone who never uses tables, but asked a question about them, lol?
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    @fishnfrogs "On top of making tags that didn't exist, I also added attributes" well, there's data-xyz for that now. which is not even *supposed* to make sense to anything beyond the site they are used on. @thomas "The ma…
    Comment by Johann September 2011 permalink
  • Aligning text question

    I couldn't get line-height to do anything.. this will look bad with multipline lines of text, but hey: http://jsfiddle.net/XBCux/
    Comment by Johann September 2011 permalink
  • Is This Example a CSS Tab Menu?

    but that's the exact same menu of the OP, just "dynamic"? huh. but of course you can make it dynamic without javascript: http://www.alistapart.com/articles/dropdowns and more importantly http://www.alistapart.com/articles/hybrid/
    Comment by Johann September 2011 permalink
  • Making up tags - WHY is it wrong?

    @joshuanhibbert Well, to be honest, I'm not really doing it (yet)... I seriously found no good reason for it yet, and no reason to look real hard for one, either. But I'll keep it in mind, and should I ever have to generate so many div…
    Comment by Johann September 2011 permalink