SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,211
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    same code but position is different

    Do you see the vertical position of "text" in http://dot.kr/x-test/upper.php is different from the vertical position of "text" in http://dot.kr/x-test/lower.php although they have same code?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,619
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Some strange kind of hidden character has crept into lower. Make sure to type your code in a plain text editor, rather than something like Word. If you clear away the spaces and then add in returns again, they are both the same:

    Code:
    <!doctype html>
    <html>
    
    <head>
        <meta charset="UTF-8">
        <title>upper</title>
      </head>
    
    <body>
    
    
    <p>text</p>
    
    </body>
    
    </html>

  3. #3
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,211
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Some strange kind of hidden character has crept into lower.
    How can you see the strange kind of hidden character?
    I can't see any strange kind of hidden character through view-source.

    Quote Originally Posted by ralph.m View Post
    Make sure to type your code in a plain text editor, rather than something like Word.
    I am using an Editor which is made by myself.
    I guess the editor has some kind of bug.

    If I can see the strange kind of hidden character, I might fix the Editor.

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Ralph probably just used copy-and-paste of the source code and its clearly sitting there on Line: 11 - illegal character data.

  5. #5
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,619
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Quote Originally Posted by xhtmlcoder View Post
    Ralph probably just used copy-and-paste of the source code and its clearly sitting there on Line: 11 - illegal character data.
    Yes, even if you just view source and click on that line, the blinking cursor is much bigger, so clearly there's something not right there. So I just deleted the white space and put in new line returns at whatever was there was cleared out.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •