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

31M1K97

  • Free webhosts

    I can only recommend 1freehosting.com to you. Features: - MySQL & Php Support - 10GB Diskspace - 100GB Bandwidth - NO Ads - Email Accounts - FTP Accounts - PhpMyAdmin preinstalled - Cpanel for administration - Up to 5 Accounts centrally managed …
    Comment by 31M1K97 April 2012 permalink
  • Centering a web page...again and again.

    If you want to center everything vertically as well as horicontally you can wrap it in a div and give a div the style #wrapper{position: absolute; margin: auto; left: 0; right: 0; top: 0; bottom: 0;} If you have to scroll on your site you can put a…
    Comment by 31M1K97 March 2012 permalink
  • Mobile first or subdomain ?

    I would do 2 different pages. Often mobile phones don't recognize the CSS media queries which could in worst case leave your website without a style. Also you might want to include different functionalities within your mobile version like a lin…
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    I don't think you can set the handler of .htaccess because that is done in .htaccess. There's no way of using Php within .htaccess
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    "select Id from Table where Name='$name'" and you have the id
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    Bungle was faster than me, because of my phone, this German autocorrect is killimg me!
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    Why you don't just deliver the name instead of the Id to the profile.php?
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    @schart : I would've been glad to know this site when I started :D @bungle : I'd suggest rather not to use Ajax with hashtags until history.pushState is widely supported to use Ajax and give parameters to Php on reload. It's also the…
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    You got it
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    just include this in first place in your profile.php and put RewriteRule ^ /profile/(.*) /profile.php?id=$1 in your htaccess
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    or you could try just within your profile.php via $_SERVER['PHP_SELF'] to redirect to /profile/1234 if the url is /profile.php?id=1234. Of course you'd also need RewriteRule ^ /profile/(.*) /profile.php?id=$1 in your htaccess
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    Oh, sorry, htaccess rewrite is just serversite. You should have a site like go.php?id=ID that makes an active redirect to a site and have a htaccess like this: : RewriteRule ^profile.php?id=(.*) go.php?id=$1 and go.php should be a php script that ge…
    Comment by 31M1K97 February 2012 permalink
  • Nice Profile URL?

    How about: RewriteRule ^profile.php?id=(.*) /profile/$1 ?
    Comment by 31M1K97 February 2012 permalink
  • Making text input editable with HTML?

    What's the matter with HTML? Works just fine for me, setting a style attribute on an input element: http://jsfiddle.net/fQkLD/
    Comment by 31M1K97 January 2012 permalink
  • Shine my buttons

    http://jsfiddle.net/w4gnR/1/
    Comment by 31M1K97 January 2012 permalink
  • Shine my buttons

    box-shadow: inset 0px 0px 2px 5px white; or something like that.
    Comment by 31M1K97 January 2012 permalink
  • Matching CafePress To WordPress

    you can change the cafepressFooter they won't remove your account, because if the user has a style in his browser it's not your fault and it could not be visible, so I'd say they don't check it, by the way my code won't hide…
    Comment by 31M1K97 January 2012 permalink
  • Best free web editing software for windows?

    zencoding is almost avaible for every editor: http://code.google.com/p/zen-coding/ Personally I like Coda best, but for windows I prefer Sublime Text 2 due to Coda being Mac only
    Comment by 31M1K97 January 2012 permalink
  • How to animate in page elements (i.e. images) on page load?

    Javascript-Method: http://jsbin.com/ixetus/edit#preview (uses Prototype, not jQuery, sorry for that)
    Comment by 31M1K97 January 2012 permalink
  • How to animate in page elements (i.e. images) on page load?

    The Css-Method would be like this: put a div around every image, make it the size of the image once in full size and center the image with margin: 45% auto; and give the image a height of 10%; then you can animate it with css-keyframes, see http://j…
    Comment by 31M1K97 January 2012 permalink
  • Matching CafePress To WordPress

    This code will make your page's footer stick at the bottom of the page. //CSS: /* just overwrite everything for #main-col and #cafepressFooter */ #main-col { overflow: auto; position: relative; display: block; width: 960px; font-size: 0.8em; m…
    Comment by 31M1K97 January 2012 permalink
  • OrganicTabs - how to define specific height?

    what would be the difference to normal tabs?
    Comment by 31M1K97 January 2012 permalink
  • cascading issues

    if a style is set to a element any other style that isn't more important than the first will be ignored. just do something like this: h2#id { color: red !important; }
    Comment by 31M1K97 January 2012 permalink
  • htaccess rewrite

    Maybe they do it like this: RewriteRule ^/username /profile.php?id=idofuser and they include a check if somewhere in the domain's name is the id of the user or if it is the specific adress and if a specific adress is set but your are accessing …
    Comment by 31M1K97 January 2012 permalink
  • Images have become semi-transparent when using opacity property. Why?

    Use filter:progid:DXImageTransform.Microsoft.gradient( startColorstr=#4CFFFFFF,endColorstr=#4CFFFFFF); for IE where FFFFFF would be the color and 4C the transparent value (Google!!)
    Comment by 31M1K97 December 2011 permalink
  • CSS tricks nav menu rainbow effect?

    Chris gives every item its hover background color which changes with keyframes animations after a certain time (here: 1.1s, 1.2s, 1.3s) like this: http://jsbin.com/ahugun
    Comment by 31M1K97 December 2011 permalink
  • Really simple css problem

    img.business-logo-right { position: absolute; top: 15px; width: 300px; right: 15px; } p.header-text { color: #EEFAAE; font-size: 50px; text-align: center; font-weight: bold; float: center; margin-top: -127px; } just use this and you should be good …
    Comment by 31M1K97 December 2011 permalink
  • CSS Drop Shadow

    box-shadow: 6px 0px 10px -7px #888, -6px 0px 10px -7px #888; the first -7px must be 7px (; EDIT: you know the values are like this: margin-left, margin-top, blur-factor, border; ?
    Comment by 31M1K97 December 2011 permalink
  • if "certain" variable exist... do this.?

    but I would put a htmlspecialchars() around the $_GET for security reasons
    Comment by 31M1K97 December 2011 permalink
  • Border Radius and border style with Chrome bug?

    On my Chrome (16.0.912.63 on a Mac) it works also fine (the one with the shadow not with the border radius)
    Comment by 31M1K97 December 2011 permalink