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

lhoezee

  • h1 positioning battle

    Note: This only works for #one.. it will not work for the others.. do you want it to work for all boxes?
    Comment by lhoezee November 2012 permalink
  • h1 positioning battle

    Are you thinking something like this? http://jsfiddle.net/khTnX/ I put the 10px of padding on a span within the h1 element so the 50% would not be overlapping the #one div.
    Comment by lhoezee November 2012 permalink
  • (Dynamic Page / Replacing Content) + google map not loadong on hashchange?

    To check if there is a hash in the URL you can do this: if(window.location.hash) { // there is a hash // to get the hash value as a variable: var hash_value = window.location.hash.substring(1) } else { // no hash... } Hope that hel…
    Comment by lhoezee November 2012 permalink
  • credit card input

    Are you using jQuery? If so you can use this plugin: http://digitalbush.com/projects/masked-input-plugin/ If you are not using jQuery it might be worth using just for this reason. You might need to do a check based on what card they chose which wo…
    Comment by lhoezee November 2012 permalink
  • mod_rewrite fun

    Ok, apparently even though I checked the box for emails, I didn't get the notification of your comment and I checked in spam, strange. Give this a try: **Note: ** This assumes the first ([^/]+) is an actual static file. so for example: /abo…
    Comment by lhoezee November 2012 permalink
  • Something weird

    @msguerra74 If I'm understanding you correctly, you should just be able to remove your margin-top or set your margin-top: 0 for both h2 and h3. That will set h2 and h3 below the images. Is this what you mean? http://codepen.io/anon/pen/dyFHK
    Comment by lhoezee November 2012 permalink
  • mod_rewrite fun

    I found where I can get email notifications :)
    Comment by lhoezee November 2012 permalink
  • mod_rewrite fun

    Sorry for the delay, I thought I would have received an email from your response.. Usually, most of the sites I do run off of just the index file and I use mod rewrite to dynamically include other files or "content" based on the URL which…
    Comment by lhoezee November 2012 permalink
  • mod_rewrite fun

    You are really close.. Try this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^/index\.php$ - [L] RewriteRule ^about-us/([^/\.]+)/?$ index.php?slug=$1 [L] # …
    Comment by lhoezee November 2012 permalink
  • Learning to create websites

    @Nosenation is correct, that's exactly what I would have said. When you get the #4, you'll have to decide if you want to run and test your PHP locally with MySQL or if you already have a hosting company with PHP & MySQL. I would sugg…
    Comment by lhoezee November 2012 permalink
  • [Solved] Protect css file with PHP

    Sorry for making a comment on a very old thread. I just wanted to point out a reason I had to secure my CSS files. Basically, in a nutshell I had a group in Egypt which created a phishing site of one of my client's sites. They were dumb enou…
    Comment by lhoezee November 2012 permalink