Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. You can select an element by its attribute using the square bracket selector as in this example: label[for=edit-submitted-eventinformation-how-long] { color: red;} What "tool" are you using to write your HTML? Your environment should give you full control of the HTML you're writing.
  2. Set the width to 33% and float the elements to the left.
  3. You can either do that with Javascript with just one page, or use PHP and multiple pages. Explanations on how to handle forms in Javascript and PHP is in the W3schools.com tutorials.
  4. Firefox uses the -moz- prefix. I don't know whether Internet Explorer uses -ms- or just plain linear-gradient. Put the rules in order so that the last rule is linear-gradient, and the ones with prefixes go before it. I think the syntax is "to bottom" rather than "top". Be sure to put units on your CSS rules: * {margin: 0; padding: 3px;} I haven't tested, but it's possible that some browsers don't allow two stops at the same position. If other solutions don't fix the problem, perhaps try transparent 5.01%
  5. When loading a site in HTTPS, all the resources (images, javascript, CSS files) must also be in HTTPS. You appear to be loading jquery.js through HTTP rather than HTTPS.
  6. I would suggest looking at the websites of colleges in your area.
  7. I prefer to start off separating HTML, CSS and Javascript simply because of scalability. When it's all in one place it's hard to distinguish one from another.
  8. In PHP you would use empty() to determine if the field was not filled in, then you would only store data from fields that were filled in.
  9. It depends on which forum software you're using.
  10. With innerHTML, you would just put the image's HTML: var filename = "image.jpg";element.innerHTML = "<img src='" + filename + "'>"; If you want a different method var img = new Image();img.src = "image.jpg";element.appendChild(img);
  11. You won't be able to do it without actually learning Javascript and a server-side language in depth. You could start by reading the W3Schools tutorials and move on from there. Have you tried anything yet?
  12. The modern approach is to give the image a max-width of 100% and put the image in a <figure> element.
  13. You have to remove the page from your browser's history to remove the visited state.
  14. The gallery itself would use Javascript. You would need a server-side language such as PHP to upload and store images and also to allow people to write comments. There's no short script that can do this, it's a project that takes time to build. You could look for a content management system that already does this or something like a Wordpress plug-in.
  15. The inifinite scrolling feature is done by requesting data from the server using AJAX and appending it to the page using DOM methods.
  16. The overflow goes on the link, not on the image.
  17. Set the link's display to inline-block. Borders on inline elements only wrap around the lines of text. When you want an element to wrap around something that was floated you can set their overflow property to hidden or auto
  18. I'd start with a simple <?php echo 'Hello, World!'; ?> just to ensure PHP is being executed, it sounds like it isn't.
  19. Yes, but it's not a good idea. It's better to generate the HTML and output it when the page is refreshed. If you want to modify a file, just look up file_put_contents()
  20. The error console says "loadXMLDoc() is not defined". Since all your code is on one line, you need to be extra careful to end everything with a semi-colon.
  21. 1. Make a database 2. Make an HTML form. 3. Use a PHP script to relay the information from the form to the database. All these things can be learnt in the W3Schools tutorials. http://www.w3schools.com/php/php_forms.asp http://www.w3schools.com/php/php_mysql_intro.asp Try something on your own, if you come across something specific you need help with then you can ask about it.
  22. It's actually on this page in the section about logical operators: http://www.w3schools.com/js/js_comparisons.asp If it helps to understand it better, !!something is the same as !(!something)
  23. No. <aside> is the tag in the HTML document. In CSS, #aside would select an element with an id "aside", for example <div id="aside">. .aside would select an element with a class "aside", such as <div class="aside"> All of this is in the CSS tutorial.
  24. Ingolme

    session cookie

    Like I said, in PHP a "session" is just a place to store variables so that they are accessible on multiple different pages. I don't know how to put it in simpler terms.
×
×
  • Create New...