Jump to content


Popular Content

Showing content with the highest reputation since 11/15/2019 in all areas

  1. 1 point
    Use flex box <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Document Title</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="author" content=""> <!--<link rel="stylesheet" href="css/styles.css?v=1.0"> --> <style> *{box-sizing: border-box;} .layout-wrap { display: flex; min-height: calc(1px + 40vw);} .layout-col1{ display: flex; flex: 1 1 100%; max-width: 40%;} .layout-col2{display: flex; flex: 1 1 100%; max-width: 60%; flex-wrap: wrap; justify-content: space-evenly; } .layout-col2 >div, .layout-col1 >div { margin: 10px; border: 3px solid #000;} .div1 {flex: 1 1 auto;} .div2 { flex: 1 1 auto; max-width: 40%; margin-right: 5px;} .div3 { flex: 1 1 auto; max-width: 60%; margin-left: 5px;} .div4 { flex: 1 1 100%; max-width: calc(100% - 20px);} </style> </head> <body> <!--<script src="js/scripts.js"></script> --> <div class="layout-wrap"> <div class="layout-col1"> <div class="div1"></div> </div> <div class="layout-col2"> <div class="div2"></div> <div class="div3"></div> <div class="div4"></div> </div> </div> </body> </html>
  2. 1 point
    Name attributes on your inputs. That's the only way the data can be retrieved in the FormData. I can see one textarea has one 'title1' which is why you can probably see that one.
  3. 1 point
    Always room for improvement and hopefully you'll never stop improving. Obviously you're learning so don't be afraid to break things. Experiment. Make mistakes. Decide for yourself what you think you've learned. Have the courage to be wrong. That's when I'm most likely to remember what I learned. The bigger the mistake the bigger the memory! EDIT: The most important question is what you posted good enough for you right now?
  4. 1 point
    It's a "feature" built into iPhone browsers. If you make sure that the font size of the text inside your inputs is at least 16px then iPhone won't try to zoom in to see it.
  5. 1 point
    Does using width: 100vw; make a difference? Then make input width proportional in vw also.
  6. 1 point
    Yes. Use CSS to set the border width to 0 or the border style to "none"
  7. 1 point
    Try wrapping this in an if statement that tests for string length: $var = 7; echo sprintf('%02d', $var);
  8. 1 point
    I have come this far: http://w3webseiten.eu/ What is missing is the menu getting to (display:none), the moment the width gets medium or small. [edit] Of cause, mediaqueries . . . Now I will make the menu get over the content, then I am at the same point that the examples had I used before where the menu is positioned fixed. Putting the problem in words is a part of the solution! regards.
  9. 1 point
    Hello @leela52452, dir attribute is used to set the direction of the text within an element in an HTML document. If you set it as an RTL then it will display HTML from right to left. It generally used when language is like Arabic etc. dir attribute is not a compulsory attribute so you can also skip this.
  10. 1 point
    URLs in external stylesheets are relative to the location of the stylesheet itself rather than the page. I can't tell if this is your problem or not since I don't know if your CSS is in an external stylesheet.
  11. 1 point
    Images are inline by default. All inline elements are placed at the text baseline. There is always a bit of space reserved below the baseline, which is for hanging letters like "g" or "y", and you see this space below the image. In order to fix this, you can either make the image a block, or set its vertical align to "middle".
  12. 1 point
    Hello @krishnanayaks Following are the differences between GET and POST Method : The GET Method : The GET method sends the encoded user information appended to the page request. The page and the encoded information are separated by the ? character. The GET method produces a long string that appears in your server logs, in the browser's location. The GET method is restricted to send upto 1024 characters only. Never use GET method if you have password or other sensitive information to be sent to the server. GET can't be used to send binary data, like images or word documents, to the server. The data sent by GET method can be accessed using QUERY_STRING environment variable. The PHP provides $_GET associative array to access all the sent information using GET method. The POST Method : The POST method transfers information via HTTP headers. The information is encoded as described in case of GET method and put into a header called QUERY_STRING. The POST method does not have any restriction on data size to be sent. The POST method can be used to send ASCII as well as binary data. The data sent by POST method goes through HTTP header so security depends on HTTP protocol. By using Secure HTTP you can make sure that your information is secure. The PHP provides $_POST associative array to access all the sent information using POST method. I hope above information will be useful for you. Thank you.
  13. 1 point
    <?php echo "What kind of issue are you having? Mind telling us more whats wrong with the code (expected results and what you are getting)"; ?>
  14. 1 point
    $display= overwrites the prev output, you need to append to prev output with $display.=
  15. 0 points
    That is what there supposed to do, you have create a layout so they don't look a jumbled mess.
  • Create New...