Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Zane

  1. Gah, everytime I post a thread I figure the solution out immediately after.

    div#nav li.contact {
    # background-color:#DB4848;
    text-decoration: none;
    color: white;	
    font-weight: bold;
    font-size: 22px;
    position:absolute;
    bottom:0px;
    left:0px;
    width:130px;
    }
    

    I suppose this is solved now.

  2. I'm sure the use of position or a negative bottom margin would do this, but then again, I'm not too sure.  What I'm trying to do is take one specific LI, which has an id of "contact" and place it at the bottom left of the screen in a fixed position.

     

    http://reallycheapfloors.com

     

    If you look at the source, I have this for the navbar

    
    
    Contact Us.
    About Us
    Unfinished
    Prefinished
    Laminate
    JANKA Scale
    
    
    
    

     

    It's CSS contains this

    div#nav {
    height: 100%;
    width: 145px;
    background-color: black;
    background-color: #8C9AA3;
    background:url(gradient.jpg);
    background-size: 100% 100%;
    font-family:"Arial";
    margin: 0px; padding: 0px;
    padding-top: 0px;
    font-weight: bold;
    position:fixed;
    color:white;
    border-right: 1px solid black;
    }
    div#nav ul {
    list-style:none;
    margin: 0px;
    padding: 0px;
    }
    div#nav li  {
    padding:6px 3px;
    text-align:right;
    height: 30px;
    }
    
    div#nav li a {
    text-decoration: none;
    color:#eee;
    width:100%;
    height:100%;
    }
    div#nav li {
    background-color: 649DE8;
    }
    div#nav li:hover {
    background-color: #1364CF;
    color:white;
    cursor:pointer;
    }
    div#nav li:hover a {
    cursor:pointer;
    }
    
    div#nav li.contact {
    background-color:#DB4848;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 22px;	
    }
    div#nav li.contact:hover {
    background-color:#FF3C00;
    }
    

     

    What would be the easiest method to move that red Contact button to the bottom of that blue bar.?

  3. I'm intrigued about the PHP 5.4 aspects of the framework, which features are you using that were introduced with 5.4? Can it run at all on 5.3?

    Yeah.. I agree.

     

    The site looks fine, professional, all that good stuff... but what exactly is it that your MVC does?  You should provide some sort of demonstration on your site.  Then again, I do feel rather ignorant on the subject of MVC.. maybe it's self explanatory if I knew it?

     

    Regardless, you need to demonstrate WHY your framework is good.

  4. I'm sure there's a more efficient way using an array_map, but this is the best I can come up with off the top of my head.

     

    $array = array("11:23", "12:46", "13:34", "14:34", "14:85");
    foreach($array as $value) {
        if(strpos($value, "12") !== FALSE) {
              echo "Yes";
        }
    }
    

  5. Personally, I think rythemton's method is better...

     

     

    Regardless, these forums aren't meant for code to be written for you only to jump back with the error.  Research these errors.  This isn't a race to see who can write the perfect code either.  Just my 2 cents.

     

  6. Think of it like a movie rental store.  The actual database is.. well, the movie store itself.  SQL is the cashier who helps you find a certain movie.  PHP is YOU, the customer, albeit a very annoying one in this analogy.  You can ask the cashier (SQL) to find you any movie that you want, but unless you actually rent the movie, the location of this movie is lost... and since this hypothetical customer has no SQL memory, he/she must ask the cashier(SQL) again and again and again where every single movie that he/she wants .. is.

     

    It isn't until the customer(PHP) actually says, "I think I'll pick that one up..and hold it in my hands while I find others" that memory is stored.  Well, I guess it wouldn't be stored into memory until said movies were actually rented, but the customer could steal them.  Either way, the customer selecting the movies is no different that when you assign variables for result sets in PHP.

  7. Even though it isn't code related, I think that a phpfreaks logo contest would be a good idea for a start competition.

     

    We couldn't exactly guarantee that the winning logo is used, but I am very curious to see what everyone could come up with.  I find myself ocasionally sketching out logos when I'm doodling, but I can never get passed that segmented circle.  There has to be an awesome-r phpfreaks logo out there in someone's brain somewhere.

  8. Can anyone tell me why this doesn't work in IE?  Other than the fact that it is IE

    $("#wrapper tr").live('click', function() {
    	var link = $(this).find("input").attr('value');
    	alert(link);
    	//window.open(link);
    
    });
    

    When I run this in FF, the alert says "NOLINK", like I have hardcoded into the input

    When I use IE, of course, it fails to work... and the alert says "undefined"

     

     

  9. I know it's possible somehow to stretch a gradient 100% vertically.  I just can't figure out how to do it.

    Suppose I have my div#nav

    div#nav {
    height: 100%;
    width: 200px;
    background-color: black;
    background-color: #8C9AA3;
    ///  What am I doing wrong?
            background: url(gradient.jpg) 100%;
    ///  I need this gradient to span from top to bottom.
    font-family:"Arial";
    margin: 0px; padding: 0px;
    padding-top: 0px;
    font-weight: bold;
    position:fixed;
    color:white;
    }
    

    Here's the gradient..

    http://reallycheapfloors.com/gradient.jpg

    This is possible right?

  10. Straight from webfaction.com

    Once you have a domain name, you can use your domain registrar’s website to point your domain name to WebFaction’s domain name servers:

     

        Name Server IP Address

        ns1.webfaction.com 50.56.93.59

        ns2.webfaction.com 178.79.142.142

        ns3.webfaction.com 209.114.37.51

        ns4.webfaction.com 173.230.141.144

    I suppose the MX records will automatically update when the domain moves to the nameserver.

    Regardless, the MX question is covered in the above link.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.