Jump to content


  • Posts

  • Joined

  • Last visited

About davidb52

  • Birthday 11/03/1995

Previous Fields

  • Languages

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location

davidb52's Achievements


Newbie (1/7)



  1. Hello,I want a link that has a little (let's say) slogan underneath it.so not:http://google.combut:http://google.com but in this situation I can't get it work... <ul> <li><a href="#">Technology</a> <!-- I want a little slogan under this --> <ul> <li><a href="#2">PHP</a></li> <li><a href="#1">HTML</a></li> </ul> </li> <li> <a href="#">Lifestyle</a> <!-- I want a little slogan under this --> <ul> <li><a href="#">Sneakers</a></li> <li><a href="#">Random</a></li> </ul> </li> <li> <a href="#">About</a> <!-- I want a little slogan under this --> <ul> <li><a href="#">Background</a></li> <li><a href="#">Contact</a></li> </ul> </li></ul> /* Menu outside*/nav#headerMenu{width: 724px;height: 75px;margin: 0px 0px 0px 266px;padding: 0px 5px 0px 5px;background-color: rgb(255,255,255);}ul{margin: 0;padding: 0;list-style: none;float: right;font-size: 18px;}ul li{display: block;position: relative;float: left;line-height: 75px;}li ul{display: none;}ul li a{display: block;text-decoration: none;margin-right: 5px;white-space: nowrap;height: 72px;width: 150px;text-align: center;color: rgb(99,99,99);}li:hover ul{display: block;position: absolute;}li:hover li{float: none;font-size: 10px;width: 150px;height: 20px;}/* Submenu kleur */li:hover ul a{background: rgb(255,255,255);height: 20px;margin-top: 0px;line-height: 20px;}/* Submenu kleur (hover) */li ul a:hover{color: rgb(0,93,232);background-color: rgb(156,156,156);}/* hoofdmenu kleur hover submenu */li:hover > a {background: rgb(0,93,232);height: 2px;margin-bottom: 72px;}
  2. MM, link doesn't work.But I'm using html5. http://dev.w3.org/html5/html-author/doesn't tell anything about what to use... http://www.w3schools.com/html5/tag_meta.aspin the example that you can try, they use />. While later they use "HTML5: <meta charset="UTF-8">" So what is the best way?The validator doesn't say anything about it...
  3. Hello,I'm wondering if this is allowed, and for so far I can't find the answer.For elements likemetaimgHow do you close it? Because you only need "1" element (<img src="">) not 2 like (<a href=""></a>)So:<meta charset="utf-8"><img src="images/layout/logo.png" width="266" height="100" alt="Logo"> or<meta charset="utf-8" /><img src="images/layout/logo.png" width="266" height="100" alt="Logo" /> notice the / Thanks,David
  4. I'm working on a similar menu too. This is may useful for you: HTML: <ul id="menu"><li id="home"><a href="#">Home</a></li><li id="about"><a href="#">About Us</a><ul><li id="about2"><a href="#">The teams</a><ul><li><a href="#">History</a></li><li><a href="#">Vision</a></li><li><a href="#">History</a></li><li><a href="#">Vision</a></li></ul></li><li><a href="#">History</a></li><li><a href="#">Vision</a></li></ul></li><li id="products"><a href="#">Products</a><ul><li><a href="#">Cozy Couch</a></li><li><a href="#">Great Table</a></li><li><a href="#">Shiny Shelf</a></li><li><a href="#">Invisible Nothing</a></li></ul></li><li id="contact"><a href="#">Contact</a><ul><li><a href="#">Online</a></li><li><a href="#">Right Here</a></li><li><a href="#">Somewhere Else</a></li></ul></li></ul> CSS: /* menu */ul{font-weight: bold;font-size: 24px;margin: 0;padding: 0;list-style: none;}ul li{display: block;position: relative;float: left;}li ul{display: none;}ul li a{display: block;text-decoration: none;padding: 7px 5px 0px 5px;background: orange;white-space: nowrap;}li:hover ul{display: block;position: absolute;}li:hover li{float: none;font-size: 11px;}/* Hoofdmenu kleur */#about:hover a{background: red;}/* Submenu kleur */#about:hover ul a{background: yellow;}/* Hoofdmenu kleur (hover) */#about a:hover{background: red;}/* Submenu kleur (hover) */#about ul a:hover{background: green;}#about2 ul{display:none;}#about2:hover ul{display:block;left: 100%;top:0px;}#about2:hover ul a{background: purple;}#about2 ul a:hover{background: blue;}
  5. ( I asked this question on a other forum too, but I want to hear you opinions because the traffic at w3schools is different than that site )Hello,I'm trying to make a fast website. The css / javascript etc is already minifyd. But now I want to make my database faster.I know it's all about indexes and structures but even when that is already done well.What schould I use by then?Mysql, mysqli, pdo or postgresql?I was using mysql but then people said mysqli was faster. Than people said choose mysqli for speed and pdo for functionallity now they are saying choose pdo it's also faster. So what is really the fastest? and again I know it's all about structure your database and index it but let's say that is already totally right.Already thank you!David
  6. Nah I'm only want to increase the speed not the functionallity.So PDO exists more for the functionallity and Pear MDB2 too. So mysqli for speed? What do you guys think?
  7. Which means I still have to change everyting....And if I have to change everything why not go for the best by than? So do you think PDO is good for mysql?
  8. Thanks for the reply,the only problem: I don't know nothing about mysqli and pdo etc.Can you give me a good tutorials site?
  9. Thanks both, 1. What's that?2. Oke, thanks for the tip3. I did that too a while back ago, but I think and is easier. But is your way faster?4. Yes it's a little bit more readable by than but it's also ironic because I want to use less variables.
  10. Hello,I'm trying to optimize my PHP code for more speed.I normally used variables twice but I found out that that is something that slow downs your speed.Although now when I'm avoiding that I think my code is less readable so I wanted to ask you guys:What do you prefer? Readable code or faster code? I'm talking about this short of things: // before:$count = mysql_result($query, 0);if($count==1){ $place = $_POST['place'];if($place>=0 and $place<=$maxsize and is_numeric($place)){ // after:if(mysql_result($query, 0)==1){ if($_POST['place']>=0 and $_POST['place']<=$maxsize and is_numeric($_POST['place'])){
  11. davidb52

    cron job

    I love this tutorials about cron jobs http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/
  12. davidb52

    slow database

    Indeed to less informationIn phpmyadmin you could use optimize. I'm not sure if you could do something like this in oracle.
  13. davidb52

    in_array ( )

    I don't see the problem why it can't <?php$a = array('1.10', 12.4, 1.13);if (in_array('12.4', $a, true)) { echo "'12.4' found with strict check\n";}if (in_array(1.13, $a, true)) { echo "1.13 found with strict check\n";}?>The above example will output:1.13 found with strict check Update:Oops a string, not an array... Yeah you should use strpos for that.But btw why not make an array?
  • Create New...