Jump to content

cssfreakie

Staff Alumni
  • Posts

    1,674
  • Joined

  • Last visited

Everything posted by cssfreakie

  1. i don't see that gap really, what browser / version are you using?
  2. All I can say is that using tables for layout, inline style, bad tags and a bunch of other bad practises will make your site hard to contain and redundant. Unfortunately your site has them all. If you read both the sticky (at css forum) and my signature, and apply this would not have happened. Also a grid system, would be nice to try out in order to get rid of the tabular design. Just a hint: you will need float and clear for this. google them if you have no idea what they mean. It will fix it, but it that's pretty much it.
  3. good find! Grid systems are a great way to layout your website in an orderly way without trying to achieve the save with pretty much often redundant code.
  4. did you read the sticky of this forum? Also your do you have some client side code instead of serverside (php is a serverside language). Maybe even a better an online example? What version of IE screw it up for you? if all, did you read the steaky?
  5. In order to help you, please post a link to the site your refering to, not everyone knows it here.
  6. it saves 1 extra declaration of float, and besides that it makes more sense to me to have all divs floated in the same direction, what if a 3th div suddenly comes along? Also, Float right would change the order from right to left (since we read from left to right that's a little odd) Try it out, take 3 divs, Give them a number and foat them all left or right. div.box{ width:200px; height:200px; float:left; /* change this and see what i mean*/ } Best thing is to read the float property at w3.org
  7. not sure what you want, but you can try this, not matter what the width is this works. <?php error_reporting(E_ALL); ini_set("display_errors", 1); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="css/yourstyle.css" /> <title></title> <style type="text/css"> #matches{ width:604px; /* width = 300*2+ (4x1 border) but it can be any width bigger than 604*/ background:#999; overflow:hidden; } .matchbox{ width:300px; border:1px solid #000; float:left; } .fl{ clear:left; } </style> </head> <body> <div id="matches"> <?php //table format $case = true; for($i=0;$i<11;$i++){ if($case == true && $i !== 0){ // so here it skips the first table, otherwise the clear in .fl facks up */ $class = 'fl'; }else{ $class = ''; } $tableformat = <<<EOT <table class="matchbox $class"> <tbody> <tr> <td>Teams</td><td>Goals</td> </tr> <tr> <td>MONTREAL CANADIENS</td><td>2</td> </tr> <tr> <td>TORONTO MAPLE LEAFS</td><td>3</td> </tr> <tr> <td>$i</td><td><span><a href="gamelogs/2.php">Box Score</a></span></td> </tr> </tbody> </table> EOT; echo $tableformat; $case = !$case; } ?> </div> </body> </html>
  8. Like the article states it's one of the harder to understand concepts in css.
  9. also have a read here: http://www.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/
  10. it just works out of the box, but since it's php code you need to have a server (like wamp). you can't just open that up in a browser. And not working, what do you mean with that? blank page? we are no visionaries.
  11. May i assume you didn't saw or understand the code i created above? because that was a badword filter. If you want people to write code for you and your not eager in trying it your self, maybe even the freelance forum is the best place to ask for help.
  12. place this at the top of your script run it, and tell us more explicit what is not working: <?php error_reporting(E_ALL); ini_set("display_errors", 1); ?>
  13. welcome! I use netbeans btw, But there is a complete topic on this, so have a read there, I think there even is a poll.
  14. it's quite nice, i just posted "moO" works like a charm But yeah bad word filtering would be nice indeed
  15. I am not a super start at this nor do i understand why you post this under third party software. BUt i came up with the following. I am not sure if this is the most efficient way but that just popped up. depending on the method you store your badwords, you wil most likely fetch them as an array, so i made a static one. The following works and should be fairly easy to implement. If you read it right. <?php $badwords = array( 'monkey', 'banana', 'justin bieber', 'barbara streisant' ); $pattern = implode('|', $badwords); echo $pattern; if(isset($_POST['submit'])&& !empty($_POST['input'])){ if(preg_match("~$pattern~", $_POST['input'])){ echo 'die!'; }else{ echo 'proceed'; } }else{ echo 'fill in some stuff'; } ?> <form action="" method="post"> <input type="text" value="" name="input" /> <input type="submit" name="submit" value="submit" /> </form>
  16. fluid or fixed widths, you can use exactly the same stuff. The reason by the way those words (WDP Community Updates") are viewed first is not only because they are bold but since we read from top to bottom left to right. those are the first real words, before that are images on the same line, than those words, next line is your main content page title with welcome, even if it's written bigger it won't pop out. So kae you headewr a real header that sticks in the mind next thing that need to be seen is the main content
  17. I am afraid not. (logo's keep em simple and stupid)
  18. you can also try inkscape, (it's free) and there quite some video tutorials for it
  19. I second that! even if it's only for this one site of yours, developing locally is much more fun, because you don't have to wait, it just runs on your own computer. Trust me I am a complete idiot on setting up servers, but than again something like wamp (made for idiots like me ) is set up in about 5 minutes and it works. And from that moment on you can test locally, ones you're done you upload it. (i use wamp and netbeans works almost out of the box) and you don't need a super computer.
  20. Sounds like my parents, and they did an excellent job!
  21. hmm i read a bit and a bit, and i think i found something that might be useful here too.: http://xforce.iss.net/xforce/xfdb/61124 It seems that by entering 8 bit characters in the username and or password field the processing script, tries to process them as 7-bit but fails in doing so, and by doing so it consumes large amounts of processing power, making the server go nuts (small joke for squirlmail 0_o ). I tried to read the patch you linked to, but those are native functions I think to squirlmail and written in a rather odd format for my understanding. May I assume that by forcing utf8 for own input values it prevents from this sort of attacks? Sorry if the above sounds stupid, as a non native speaker, this is what i think is the core of the problem. (sending characters to process that consume to much memory, making the server go banana's)
  22. alrighty, i'll have a look into that. I am certainly not a security guru Thanks mate!
  23. make sure read about preventing header injection, if your going to make a contact form, http://www.phpro.org/tutorials/PHP-Security.html#4
×
×
  • 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.