Advanced Search

Search:

Type: Posts; User: Rain Lover; Keyword(s):

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds; generated 19 minute(s) ago.

  1. Two errors I get in JSLint for no good reason

    I checked the following code in JSLint:


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Reset textarea</title>
    </head>
  2. Replies
    2
    Views
    492

    Thanks for the answer!

    Thanks for the answer!
  3. Replies
    2
    Views
    492

    Which CSS selector?

    Sometimes I find it difficult to choose the right CSS selector. Consider this, for example:


    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <title>Which CSS...
  4. Thanks for the answer and explanations! :)

    Thanks for the answer and explanations! :)
  5. That's the problem: why should there be such a...

    That's the problem: why should there be such a difference between different DOCTYPEs when it comes to a container height and what exactly is this difference? The content is the same, so the container...
  6. Extra top padding in a container when using HTML5 doctype

    There is extra top padding in the following div:


    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <title>Extra Top Padding</title>
    <style>
  7. Is it reliable to reclaim the iframe like this:...

    Is it reliable to reclaim the iframe like this: demo.
    Or this way: demo.
  8. Many thanks for the answer, John! However, I've...

    Many thanks for the answer, John! However, I've found three similar applications that seem to function as I wish. I wonder how they work differently from my demo and what changes I need to make in my...
  9. Keep writing elements into an iframe even after its redirection to different URLs

    I know how to write into an iframe:


    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <title>Writer</title>
    <style>
  10. Semantic element to create a toggle and best practice to undo a function

    Sample:


    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <title>Toggle</title>
    <style>
  11. Thank you, but I prefer a simple CSS solution.

    Thank you, but I prefer a simple CSS solution.
  12. Why top:27px? As coothead said and I tested, the...

    Why top:27px? As coothead said and I tested, the header DIV height is about 70px in IE11.
  13. Many thanks for the code, but I'd prefer not to...

    Many thanks for the code, but I'd prefer not to give a fixed height, especially such a big height size, to the header DIV.
  14. Flexible DIV to cover the rest of the page and divide the height in half for children

    Here's a sample layout:


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Dynamic DIV</title>
    <style>
  15. Directly add an attribute as an element property

    Here's how I change the value of an existing attribute:


    element.attribute = "value"

    But is it OK to use the above method to create a new attribute?
  16. Replies
    3
    Views
    480

    Many thanks for the answer, John! :) For IE8 I...

    Many thanks for the answer, John! :)
    For IE8 I use onpropertychange="indicate();".
  17. Replies
    3
    Views
    480

    if (var) vs. if (var != )

    Sample:


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Check Text Field Value</title>
    <style>
  18. Replies
    8
    Views
    1,039

    You're right. I'd better stick to type="reset"....

    You're right. I'd better stick to type="reset".
    Thanks for the pointer! :)
  19. Replies
    8
    Views
    1,039

    Thank you and John, anyway! :)

    Thank you and John, anyway! :)
  20. Replies
    8
    Views
    1,039

    How about not using setTimeout?

    How about not using setTimeout?


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Form onreset</title>
    </head>
  21. Replies
    8
    Views
    1,039

    Good idea! I'll give it a try. Thanks! :)

    Good idea! I'll give it a try.
    Thanks! :)
  22. Replies
    8
    Views
    1,039

    Form onreset Event after the form reset

    Here's a sample form:


    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title>Form onreset</title>
    </head>
  23. Resize iframe & textarea in reverse directions

    Iframe isn't reziable in Firefox. Then I decided to put it in a div and resize that instead:


    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Resizable Iframe & Textarea</title>...
  24. No, Home doesn't always redirect to a single URL:...

    No, Home doesn't always redirect to a single URL: it can be seen with either http://www.example.com/ or http://www.example.com/.

    Thanks for the snippet! :)
  25. Hi Nile and thanks for the answer! Yes it seems...

    Hi Nile and thanks for the answer!
    Yes it seems to work. However, there's one thing I don't know how to do: my site landing page and Home are the same. In other words, http://www.example.com/ and ...
Results 1 to 25 of 178
Page 1 of 8 1 2 3 4