Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. You need to read through the tutorials. Here's the tutorial page for CSS shadows: https://www.w3schools.com/css/css3_shadows.asp
  2. You have to distinguish between a representation of the string in your code and the actual value of the string. The variable is being sent in from outside, so there's no literal string that needs to be parsed by the PHP engine.
  3. I'm afraid this system is much too complex to solve in a forum post. It looks like you would have to hire somebody to reverse engineer this software.
  4. There's no feature in CSS to add outline to text, but it can be imitated using multiple text shadows, each in one of four directions.
  5. Things like changing position, rotating and changing colors can be animated with CSS. https://www.w3schools.com/css/css3_transitions.asp https://www.w3schools.com/css/css3_animations.asp For more complex animations you would need more difficult techniques.
  6. Which software is intended to run this code? This certainly is not capable of running in browsers.
  7. Which part of that site is multimedia? It's a storefront, if you want to have a store on your website you can search for ecommerce software for your server.
  8. I can't see anything obvious from your image. Seeing a live example of each of the two buttons would help me figure it out.
  9. I would start with clearly defining what "multimedia website" means.
  10. You'll have to learn Javascript. https://www.w3schools.com/js/default.asp There aren't tutorials out there for every possible thing you would want to do, but you can learn how to break down your problem into its components and build a program that does it. After you've learned Javascript, the first step is to define what it means to teleport: How frequently does it teleport and where can it teleport to?
  11. Ingolme

    CSS accordion

    Remove the <br> element from between the radio button and the label.
  12. Ingolme

    CSS accordion

    You can't have both effects with pure CSS. These work like radio buttons and checkboxes. A checkbox can be checked and unchecked, but does not affect other checkboxes. A radio button can only be selected and only gets deselected when a different radio button in the same group is selected.
  13. You have to build it or hire somebody to build it for you. A PHP script will work if your server supports PHP, but there are tons of other server-side languages with which to build your website.
  14. You're going to need software on your server to do anything. HTML does not do anything on its own.
  15. I always write semantic HTML first and think about styling later. I can't give a definitive solution that applies to every problem, I solve things on a case-by-case basis and that's where experience comes in. The longer you have spent solving problems, the easier it is to come up with solutions to new ones. I only mentioned Javascript because your example looked like it was already employing Javascript to begin with. if you have the radio buttons there for a different reason than a Javascript-based feature then the solution may be different.
  16. I haven't yet encountered a situation where it's impossible to apply CSS to make it look right without altering the semantic order of the elements. In your first example, shifting content to the left or right is not extremely difficult. In your second example with radio buttons, this sounds like a Javascript thing. You just need one image element and one title which are modified by Javascript and they don't need to be embedded with the radio buttons because the radio button label should describe what is changed. In summary, I don't see a reason not to stick with semantic layout.
  17. What you're asking for is called pagination and it's usually done by adding a page or offset number to the query string and putting that value into the LIMIT clause of the SQL query. You can use AJAX to do it, but I'd recommend first using just PHP and then adding the Javascript layer on top of that for convenience.
  18. The size of pixels on the canvas is different than the size of pixels in the browser. By default, they're the same, but if you resize the canvas with CSS they change. If you have <canvas width="100" height="100"> and you use CSS to set its width to 200px, then each pixel on the canvas will occupy two pixels on the page. The width and height attribute of the canvas indicate the size of the surface being drawn on.
  19. Images are inline elements, so they are aligned with the baseline of the text. There is space below the text baseline to accommodate hanging letters such as g or y. To solve this, you can use the vertical-align CSS property on the images to align them with the middle of the text instead of the baseline. This would go in your CSS stylesheet img { vertical-align: middle; }
  20. The syntax is wrong in your second media query code. The @media keyword should appear only once at the beginning. @media screen and (max-width: 640px) {
  21. The problem with using echo statements is that code editors will not highlight the HTML syntax. If you're building a template file, you usually have large amounts of HTML with small amounts of PHP. I personally do not like the BASIC style syntax even for templates. When you use curly braces, most code editors will show you where the current brace ends and allow you to show or hide the block of code. With proper formatting and indentation the code becomes easier to read. <?php if(isset($_GET['edit'])) { ?> <button type="submit" name="update">update</button> <?php } else { ?> <button type="submit" name="save">save</button> <?php } ?>
  22. I remember when blink was phased out, Mozilla made a big announcement out of it. It used to work in all browsers, but was deprecated and later removed.
  23. Insert the customer first, then the order after. You should only need to insert once into each table.
  24. You got undefined because the function is not returning anything. The function must use the return statement.
×
×
  • Create New...