Jump to content

shad

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

2 Neutral

About shad

  • Rank
    Newbie

Previous Fields

  • Languages
    html. javascript, php
  1. /* CSS Document */*{line-height:12px; font-family:Arial, Helvetica, sans-serif; font-size:12px;}body {margin:0;}ul, li, p, span, div, h1, h2, h3, h4, h5, h6, form, input {margin:0; padding:0;} I downloaded a css template from internet the first line of css starts with ' * ' and some properties as shown below what does this mean? *{line-height:12px; font-family:Arial, Helvetica, sans-serif; font-size:12px;}
  2. <html><head><style type="text/css">#customers{font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;width:100%;border-collapse:collapse;}#customers td, #customers th{font-size:1em;border:1px solid #98bf21;padding:3px 7px 2px 7px;}#customers th{font-size:1.1em;text-align:left;padding-top:5px;padding-bottom:4px;background-color:#A7C942;color:#ffffff;}#customers tr.alt td{color:#000000;background-color:#EAF2D3;}</style></head><body><table id="customers"><tr> <th>Company</th> <th>Contact</th> <th>Country</th>
  3. what are these -moz- // mozilla-webkit- // safari or chrome-o- // operafor what purpose are it used.I have come across in css tutorials, I have come to know that the deprecated properties have been symbolized -moz- , -webkit- ..I may be wrong . because i don't know the actual purpose of it.I want to know where are they used also it would be very much helpful for me if you can give an example for it?thanks
  4. priority concept can thought when there a two values but in the above case there only one value?I would like to WHEN to use this !important, i mean what can be the situation
  5. background-color:inherit;background-color:transparent;background-color:!important; can anyone guide me what's the use of these three when i used the background is got is white?
  6. <?phpfor($i=0;$i<=10;$i++){$a=$i;echo $a."<br>";}echo $i?> i got output as 01234567891011 1) question 1) why am i getting 11 after echo $i this outside for loop;question 2) I got the same out put when I write $i+=1 so is can $i++ replace Si+=1 and viceversa
  7. I corrected my code and got reply <?php$i=1;$res;while($i<=10){$res=5*$i;echo "5". "*".$i. "=". $res."<br>";$i++;}?> output as 5*1=55*2=105*3=155*4=205*5=255*6=305*7=355*8=405*9=455*10=50
  8. yes, I thought it that two times declaring is not needed but influenced by c language. hey for the last line echo is semicolon needed echo "5". "*". "=". "$res"."<br>" Is there any problem giving variables in quotes?
  9. <?php$x=9843switch ($x){case 1: echo "one";break;case 2: echo "two"; break;case 3: echo "three"; break;case 4: echo "four" break;case 5: echo "five"; break;case 6: echo "six"; break;case 7: echo "seven"; break;case 8: echo "eight"; break;default:echo "zero";}?> when I run this program it's displayed in browser asParse error: syntax error, unexpected T_SWITCH in C:\xampp\htdocs\switch.php on line 3 note : the program has to be generated using loops and conversion methodso little bit confusion
  10. thanx for your comments.. I got it !even number generation<?php$i=2;$num=20;for($i=2;$i<=num;$i+=2){echo $i."<br>"}?> 0dd number;$i=1;for($i=1;$i<=20;$i+=2){echo $i."<br>"}?> Multiplication table<?php$i=1;$res;while($i<=10){$res=5*$i;echo "5". "*". "=". "$res"."<br>"}?> But last program can you plz help me number to name conversion
  11. it should be generated only in php no other scripting lang should be used_eg: if if..else while for loop etchope you got it
  12. hello! every one!I have one assignment hoping you all will help me.question one1) write a php program to display first ten even numbers.2) write a php program to display odd numbers between "X and y"?3) write a php program to display multiplicatoin table of five ? and the output should be of the form5 * 1 = 5............5 * 10 = 504) write a php program to to convert a number into wordseg: 999 should be displayed as nine nine nine :facepalm:help plzthanks in advance
×
×
  • Create New...