Jump to content

tejasamrute

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by tejasamrute

  1. try padding-bottom:10px !important; else wrap a span around your text and give padding-top
  2. img_dentist { width: 400px; height: 350px; margin-left: 40px; padding-bottom:10px;}
  3. this is just a basic slider http://www.basic-slider.com/ for more options http://www.cssauthor.com/best-jquery-slider-plugins/
  4. u must be using Opera mini http://caniuse.com/#feat=border-radius Also Try this... border-top-left-radius: 6px;border-top-right-radius: 6px;border-bottom-right-radius: 6px;border-bottom-left-radius: 6px;
  5. CSS is to be written in <head> section...... CSS is used to give style to the html below..... this is how the entire code looks like with css... <!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Untitled Document</title><style type="text/css">nav { margin:0 auto; background-color:red; width:500px;}nav ul { list-style:none;}nav li { float:left; padding:10px;}nav li a{ color:red; text-decoration:none;} </style></head><body><nav> <ul> <li><a href="Home.html" title="to Home.html">Home page</a></li> <li><a href="About.html" title="to About.html">About page</a></li> <li><a href="folio.html" title="to folio.html">folio page</a></li> <li><a href="pet photography my dog.html" title="to pet photography my dog.html">pet photography page</a></li> </ul></nav></body></html> to give colour to text or background or any sort of style.....you need not to add it in html.....you just have to add it in css which is in the head section You will have to understand the concept of CSS..... http://www.w3schools.com/css/default.asp Take a look...it is easy....
  6. In CSS nav { margin:0 auto; /* Enables Nav to center with the width of the screen*/ width:500px;}nav ul { list-style:none;}nav li { float:left; padding:10px;} In HTML <nav> <ul> <li><a href="Home.html">Home page</a></li> <li><a href="About.html">About page</a></li> <li><a href="folio.html">folio page</a></li> <li><a href="pet photography my dog.html">pet photography page</a></li> </ul></nav> This is the correct way to deal with navigation
  7. can u also add your html code???
  8. Try install font awesome icons (easy customization) http://fortawesome.github.io/Font-Awesome/icons/
  9. This is the final lookout of the form..but there is 1 unusual problem.....i want the name of the sender to show in mail's sender column....if i write the name in the textfield without space...it shows up.....but if i use space to write full name....it shows (unknown sender).....i cant seem to understand the problem <?php if(isset($_POST['txtName'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "abc@xyz.com"; $email_subject = "Enquiry";$semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['txtName']) || !isset($_POST['txtContact']) || !isset($_POST['txtCategory']) || !isset($_POST['txtNewspaper']) || !isset($_POST['txtComments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $fname = $_POST['txtName']; // required $contact = $_POST['txtContact']; $category = $_POST['txtCategory']; $newspaper = $_POST['txtNewspaper']; $comments = $_POST['txtComments']; // required $error_message = ""; $string_exp = "/^[A-Za-z .'-=&%$#@{}^*|_!]+/i"; if(!preg_match($string_exp,$fname)) { $error_message .= 'The Name you entered does not appear to be valid.<br />'; } $string_exp = "/^[0-9]+$/"; if(!preg_match($string_exp,$contact)) { $error_message .= 'The Contact Number you entered does not appear to be valid.<br />'; } if($_POST['txtCategory'] == "false") { $error_message .= 'Please Select a Category.<br />'; }if($newspaper = nl2br(implode(', ', $_POST['txtNewspaper']))); if(strlen($comments) < 2) { $error_message .= 'The Comments you entered do not appear to be valid.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Below are the Form Details.nn"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($fname)."nn"; $email_message .= "Contact: ".clean_string($contact)."nn"; $email_message .= "Category: ".clean_string($category)."nn"; $email_message .= "Newspaper: ".clean_string($newspaper)."nn"; $email_message .= "Comments: ".clean_string($comments)."nn"; // multipart boundary $email_message .= "This is a multi-part message in MIME format.nn" . "--{$mime_boundary}n" . $email_message . "nn"; foreach($_FILES as $userfile){ // store the file information to variables for easier access $tmp_name = $userfile['tmp_name']; $type = $userfile['type']; $name = $userfile['name']; $size = $userfile['size']; // if the upload succeded, the file will exist if (file_exists($tmp_name)){ // check to make sure that it is an uploaded file and not a system file if(is_uploaded_file($tmp_name)){ // open the file for a binary read $file = fopen($tmp_name,'rb'); // read the file content into a variable $data = fread($file,filesize($tmp_name)); // close the file fclose($file); // now we encode it and split it into acceptable length lines $data = chunk_split(base64_encode($data)); } $email_message .= "--{$mime_boundary}n" . "Content-Type: {$type};n" . " name="{$name}"n" . "Content-Disposition: attachment;n" . " filename="{$fileatt_name}"n" . "Content-Transfer-Encoding: base64nn" . $data . "nn"; } } // create email headers $headers = 'From: '.$fname."rn". //'Reply-To: '.$email."rn" . 'X-Mailer: PHP/' . phpversion(); // headers for attachment $headers .= "nMIME-Version: 1.0n" . "Content-Type: multipart/mixed;n" . " boundary="{$mime_boundary}""; @mail($email_to, $email_subject, $email_message, $headers); ?> <!-- include your own success html here --> <font face="Arial, Helvetica, sans-serif">Thank you for contacting us. We will be in touch with you very soon.</font><br><br><a href="ad-booking.html" style="background-color:#ed6124; color:#fff; padding:10px; text-decoration:none">Back to the Page</a> <?php } ?>
  10. 1) Assign height to .ow_sign_in_wrap same as the height of the background image. 2) Add it in head section body { overflow:hidden;} 3) In HTML, under .ow_sign_in_wrap interchange following code with all its content <td width="60%"></td><td></td>to<td></td><td width="60%"></td> 4) Del .ow_footer and its content 5) Del .ow_footer and its content Note: There are 2 .ow_footer in HTML
  11. have you tried z-index property??...........we will need to see your code to give you a solution..
  12. .bgvideo-container { width: height: 500px; position: relative; overflow: hidden;}.bgvideo { width:100%; background-size: cover; position: absolute; top: 0; left: 0;} Try this...
  13. <style type="text/css">#Week1 { background-color:Lavender; /* Change colour as per your need*/ color:blue; font-weight:bold; font-style:italic;</style> Add the above color in your <head> section <tr id="Week 1"><--- Your Content ----></tr> This will make.....background color of the row Lavender & font in blue & bold-italic
  14. <form name="contactform" method="post" action="ad-booking-sendmail.php" enctype="multipart/form-data"> <strong>Give Your Name</strong>: <input name="txtName" type="text" class="input" id="txtName"><br> <strong>Your Tel No.</strong>: <input name="txtContact" type="text" id="txtContact" class="input"><br> <strong>Select Ad Category</strong>: <br> <input name="txtCategory" type="radio" value="Single Col."> Single Col. <input name="txtCategory" type="radio" value="Double Col." class="radio"> Double Col. <input name="txtCategory" type="radio" value="Display Col." class="radio"> Display Col. <br><br> <strong>Select News Paper</strong> :<br> <input type="checkbox" name="txtNewspaper[]" id="txtNewspaper" value="TOI"> TOI <input type="checkbox" name="txtNewspaper[]" id="txtNewspaper" value="ET" class="radio"> ET <input type="checkbox" name="txtNewspaper[]" id="txtNewspaper" value="GS" class="radio"> GS <input type="checkbox" name="txtNewspaper[]" id="txtNewspaper" value="BS" class="radio"> BS <input type="checkbox" name="txtNewspaper[]" id="txtNewspaper" value="MT" class="radio"> MT <input type="checkbox" name="txtNewspaper[]" id="txtNewspaper" value="NBT" class="radio"> NBT <br><br> <!---- <strong>Attach Content</strong> <span class="format">(doc, docx)</span><br> <input type="file" name="filename" id="filename"><br><br> -----> <!---- <strong>Attach Photograph</strong> <span class="format">(jpg, png)</span><br> <label for="txtResume"></label> <input type="hidden" name="upload" value="1" /><input type="file" name="txtResume" id="txtResume"><br><br> ----> <strong>Message</strong> <textarea name="txtComments" cols="58" rows="8" id="txtComments"></textarea><br> <input name="" type="submit" value="Send" class="button"> </form> i found some script for radio and check box. and i have added this under txtName validation...but they don't show error msgs if($_POST['txtCategory'] == "false") { $error_message .= 'Please Select a Category.<br />'; } if($newspaper = nl2br(implode(',', $_POST['txtNewspaper']))); Now the problem is.......if i don't select anything in Category & Newspaper.......the form doesn't go through....which is good.....but it doesn't even show the error msg of the respective field.....inturn it shows error msg like this.. " We are very sorry, but there were error(s) found with the form you submitted. " Probably i might be confusing you ...but i guess you will have to actually run my script to be able to understand.....
  15. input:focus { outline:none; border:none; box-shadow: 0 0 5px 5px red;} Try this....
  16. i got this script for multiple check box.......but it i don't get multiple values and also it does'nt give error message when the form is sent without checking any box....what can be the prob?? if(isset($_POST['txtNewspaper'])){ if($_POST['txtNewspaper'] == 'TOI') { // the Purchase radio button was selected } elseif($_POST['txtNewspaper'] == 'ET') { // the Sell radio button was selected } elseif($_POST['txtNewspaper'] == 'GS') { // the Sell radio button was selected } elseif($_POST['txtNewspaper'] == 'BS') { // the Sell radio button was selected } elseif($_POST['txtNewspaper'] == 'MT') { // the Sell radio button was selected } elseif($_POST['txtNewspaper'] == 'NBT') { // the Sell radio button was selected } else { // the user submitted an unexpected value? }}else{ $error_message .= 'Please Select a Newspaper.<br />';}
  17. i am messing things up.....it seems the codes doesn't fit into the code in have......can you write the code according the code i have......Sorry for trouble
  18. Problems i am facing with sendmail form are Validating Radio box, Check Box, Upload File (according to the formats mentioned) & sending their respective values to the email This is the code i hav so far <?php if(isset($_POST['txtName'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "abc@xyz.com"; $email_subject = "Enquiry"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['txtName']) || !isset($_POST['txtContact']) || !isset($_POST['txtCategory']) || !isset($_POST['txtNewspaper']) || !isset($_POST['txtComments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['txtName']; // required $contact = $_POST['txtContact']; $category = $_POST['txtCategory']; // required $newspaper = $_POST['txtNewspaper']; // required $comments = $_POST['txtComments']; // required $error_message = ""; $string_exp = "/^[A-Za-z .'-=&%$#@{}^*|_!]+/i"; if(!preg_match($string_exp,$name)) { $error_message .= 'The Name you entered does not appear to be valid.<br />'; } if(strlen($comments) < 2) { $error_message .= 'The Comments you entered do not appear to be valid.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Below are the Form Details.nn"; $email_from = $full_name.'<'.$email_from.'>'; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($name)."n"; $email_message .= "Contact: ".clean_string($contact)."n"; $email_message .= "Category: ".clean_string($category)."n"; $email_message .= "Comments: ".clean_string($comments)."n"; // create email headers $headers = 'From: '.$name."rn". //'Reply-To: '.$email."rn" . 'X-Mailer: PHP/' . phpversion();@mail($email_to, $email_subject, $email_message, $headers); ?> <!-- include your own success html here --> <font face="Arial, Helvetica, sans-serif">Thank you for contacting us. We will be in touch with you very soon.</font><br><br><a href="ad-booking.html" style="background-color:#ed6124; color:#fff; padding:10px; text-decoration:none">Back to the Page</a> <?php } ?> i am very rookie in PHP...so plz help
  19. #left { background-color: red; height: 800px; width: 20%; max-width: 200px; min-width: 100px; float: left; } #right { background-color: blue; height: 800px; overflow:auto; } Try this...
  20. i want to recreate a jquery of the home banner http://manoharart57.wix.com/purple-pr Help Appreciated!
  21. <script> window.onload = function () { /* Grab all elements with a placeholder attribute */ var element = document.querySelectorAll('[placeholder]'); /* Loop through each found elements */ for (var i in element) { /* If the element is a DOMElement and has the nodeName "INPUT" */ if (element[i].nodeType == 1 && element[i].nodeName == "INPUT") { /* We change the value of the element to its placeholder attr value */ element[i].value = element[i].getAttribute('placeholder'); /* We change its color to a light gray */ element[i].style.color = "#777"; /* When the input is selected/clicked on */ element[i].onfocus = function (event) { /* If the value within it is the placeholder, we clear it */ if (this.value == this.getAttribute('placeholder')) { this.value = ""; /* Setting default text color */ this.style.color = "#000"; }; }; /* We the input is left */ element[i].onblur = function (event) { /* If the field is empty, we set its value to the placeholder */ if (this.value == "") { this.value = this.getAttribute('placeholder'); this.style.color = "#777"; } }; } }}</script> Try this
  22. <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script></head><body><form action="" method="post"> <input type="text" id="input" value="" /></form><script type="text/javascript"> $(document).ready(function(){ var Element = "#input"; var InputText = "Full Name..."; $(Element).val(InputText); $(Element).bind('focus',function(){ $(this).addClass('focus'); if($(this).val()==InputText){ $(this).val(''); } }).bind('blur',function(){ if($(this).val()==""){ $(this).val(InputText); $(this).removeClass('focus'); } }); }); </script></body>
  23. tejasamrute

    Rule @face font

    i have been through that problem or call it a bug....but whatever it is......just to be safe.....i rename the file to its actual name
  24. tejasamrute

    Rule @face font

    @ingolme.... i tried to look for AEBL font......google doesn't even show in its suggestions....i am guessing he might have assigned wrong name @Gema.....right click on your font....select preview....you will see the name of the font
×
×
  • Create New...