Jump to content

cssfreakie

Staff Alumni
  • Posts

    1,674
  • Joined

  • Last visited

Everything posted by cssfreakie

  1. a few things. use display:inline; second. Your assigning properties to an #id in your style sheet while you meant a class so change # with a dot (.classname) (ie. .new_prod_wrap ) I would also recommend to remove all your inline style. just place all style in an external stylesheet. It's much cleaner and more efficient.
  2. you used position absolute on them, making them apear on top of eachother unless you give them other coordinates
  3. change your code to this .messageDiv { margin:5px auto; /* instead of 0 i set it to auto */ width: 500px; border-radius:15px; border: 1px solid #A5260F; background: #E28B65; text-align: center; } if this solved it for you (which i know it does ) please mark it solved, same is for your other questions, or at least be as polite as to respond. We are not responding to trees here. http://www.phpfreaks.com/forums/index.php?topic=336354.0 http://www.phpfreaks.com/forums/index.php?topic=336773.0 http://www.phpfreaks.com/forums/index.php?topic=336656.0 http://www.phpfreaks.com/forums/index.php?topic=336429.0
  4. so the usefull part of your code is this: .resultsBackground { background-image: url('images/D89-grey-c.JPG'); } can you remove: <!-- from your code it serves no purpose. besides that is the path to the image ccorrect. in other words is your image file in the folder named images? is the extension .JPG or .jpg or .jpeg or .JPEG ? IF you have an online example it would be easier to check this out for us.
  5. Hi twilitexa, an online example would be much more easier to work with.
  6. the w3c is the place to look. http://www.w3.org/standards/ May i assume this is solved now?
  7. well if you look at your first post we couldn't know that right...? maybe add this in the top of your script: <?php header('Content-language: en'); ?> Two question
  8. that same google provides a nifty tool named a search engine. IF you would have just type in something like: how does a meta language tag look like? you probably get something like this: <meta http-equiv="content-language" content="en"> Hope this helps more info here: http://www.w3.org/International/questions/qa-http-and-lang
  9. is a pretty generic description. Maybe do some error reporting and tell us if you get any errors. place this above your script: error_reporting(E_ALL); ini_set("display_errors", 1); besides that are you including the classes used like "User()"
  10. I never work with java, but this is probably what you are looking for: http://java.sun.com/products/plugin/1.3/docs/tags.html
  11. best thing is to use the resources available on the internet. for instance: http://www.w3.org/TR/NOTE-html40-mobile/ there are loads of things to pay attention too, and this is just not the place to write a comment in the form of a book. if you know what i mean the link above should give you a head start
  12. as you can see in your css you gave body a width of 100%. But since it is not wrapped in a div with a fixed width, it will use the window width as a reference. So if you make a window size of 10 px #banner will be 10pixels. Now as i sneaky tried to tel in the sentence above you require a reference point when working with percentages. For instance a wrapper that has a fixed width. But another thing could be to assign a min-width to en element. That way it can increase in size, but when the window is resized and meets that min-width, it shows a scroll bar. As far as making sure websites look the same in most browsers. Have a look at the sticky of the css forum and apply those 6 points. besides that make sure your markup and css is valid. This seems logical but most people fail to do so.
  13. here is one: http://tinymce.moxiecode.com/
  14. you compare against the value stored in the database. since A hash only goes one way you can't decrypt it. so the only way to check is to see if the hashed user input is equal to the already hashed stored value. for example. $database_value = '810c01753939495f6e23632d19c10d01'; $user_input = 'fatmonkeys'; if(md5($user_input)== $database_value){ echo 'the user input is equal to the stored value<br /> fatmonkeys hashed with md5 is equal to:<br /> 810c01753939495f6e23632d19c10d01'; }else{ echo 'userinput is invalid'; }
  15. Not sure what you mean with 'like' but what i meant is to make a combined image and use that as a background for the table row. see attachment, that is what i mean. Than give a height to the table row, assign a background and set the table to border-collapse:collapse; <!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/style.css" /> <title></title> <style type="text/css"> #score{text-align: center;border-collapse: collapse;} #score tr{ background:url("images/tablerow.png") repeat 0 -5px; height:30px; vertical-align: top; } #score td{ min-width: 60px; } </style> </head> <body> <div id="wrapper"> <table id="score"> <tbody> <tr id="head"><th>subject</th><th>wins</th><th>ties</th><th>loses</th></tr> <tr class="data"><td>online</td><td>245</td><td>6</td><td>67</td></tr> <tr class="data"><td>lan</td><td>245</td><td>2</td><td>10</td></tr> <tr class="data"><td>overall</td><td>490</td><td>8</td><td>77</td></tr> </tbody> </table> </div> </body> </html> next time just start coding and play around, you learn much more when you do it yourself. [attachment deleted by admin]
  16. well if you don't want to use array slice maybe try this: $myarray = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19); $min = 3; $max = 17; // so output should be all values between 3 and 17 //sort array sort($myarray); $newarray = array(); foreach($myarray as $value){ if($value<=$min ||$value>=$max){ //do nothing. }else{ $newarray[] = $value; // so here all values between min and max are assigned to a new array. } } var_dump($newarray); next time please define a bit more what you mean exactly.
  17. well some code would have been nice, but here is something that could be useful. just change the array values and you will see the effect. It probably could have been coded more efficient. $array = array( 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten' ); if(count($array)%2 === 0){ $var = (count($array)-1)/2; echo 'value is even middle numbers are '.$array[$var].'and '.$array[$var+1]; }else{ $var = count($array)/2; echo 'value is odd middle number is '.$array[$var]; }
  18. I would combine the gradient and the dashes to 1 image really, saves you calculating.
  19. Your require the float property. for this. If you need hep with it after you tried let me know.
  20. do you have an online example of this? Also I would encourage not to use css hacks, They lead just like this code to unexpected results. Use conditional comments instead. Besides that code for Firefox, and adjust for other browsers. As for a better and cleaner menu, have a look at the suckerfish menu. It's the best in the industry.
  21. you could put overflow:hidden on the container element. Although the right tool depends on the situation. if you have an online example of this, i am happy to take a look at it.
  22. well than maybe with javascript but the people you don't allow must be stupid, for it to work http://www.google.nl/#sclient=psy&hl=en&source=hp&q=block+ip+with+javascript&aq=0j&aqi=g-j1&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=978abaf5f363ea15&biw=1280&bih=676
  23. change host, not being able to do some basics is just mad. if he doesn't want to pay here is a free host: http://tinyurl.com/5n9jzc
×
×
  • 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.