Results 1 to 23 of 23

Thread: Annoying White Line

  1. #1
    scoutt
    Guest
    well you won't beileve this but eveytime you have this

    <td>
    <img>
    </td>

    it will creat an extra line.

    so to fix it you need to have the closing tag at teh end of the data.


    <td>
    <img src="http://www.vbshelf.com/logoidea.gif" alt="VBShelf - Programming Resources and Tutorials"></td>

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    I don't see any white line. YBMS.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Remove the newlines and spaces after the image in your code.

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Shouldn't

    Code:
    <p>foo
    bar
    blah</p>
    be the same as

    Code:
    <p>foo bar blah</p>
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5
    scoutt
    Guest
    that is why I say you won't believe it. it should be yes, but not in tables.

    <td>
    <img>
    </td>


    that is different than

    <td><img></td>

    that, in tables.

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I never knew that. Thanks for your help
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    scoutt
    Guest
    was that it?

  8. #8
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    "This site is optimized for IE 5+"

    That's funny. I see the annoying white line when I load up IE 5, but not when I use Mozilla.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  9. #9
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by scoutt
    was that it?
    Yes, sir.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  10. #10
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    There are menu options to change the page style. Why aren't the style sheets loaded so you can switch styles via the UA?
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  11. #11
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Can you say that again as though you were talking to a third grader?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  12. #12
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    No, but I can do this....

    You can provide alternate stylesheets that the user can choose without reloading the page.

    Code:
    <link rel="stylesheet" title="Silver" href="silver.css" type="text/css" media="screen">
    <link rel="alternate stylesheet" title="Brown" href="brown.css" type="text/css" media="screen">
    <link rel="alternate stylesheet" title="Blue" href="blue.css" type="text/css" media="screen">
    With the above example, the page would load with the default silver theme. I could then go to the browser menu and "Use Style -> Blue". The browser may load the blue.css if it hasn't already, but it won't bother loading the entire page.

    An example of a page that does this:
    http://www.meyerweb.com/eric/css/edg...iral/demo.html
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  13. #13
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I don't see the "Use Style" in the browser menu?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  14. #14
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by The Hobo
    I don't see the "Use Style" in the browser menu?
    It's in Netscape 6 (View->Use Stylesheet)

    I couldn't find it in IE or Opera

  15. #15
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    "Use Style" is under the "View" menu in Mozilla (1.0 RC2). I don't know what the equivalent would be in any other browser.

    I would expect the Mozilla-ish browsers (Netscape, Galleon, Konqueor) to offer some support for it. I know Opera 6 doesn't support it (which is a shame, since it is the only browser that I know of that supports @media projection). I've been so dissappointed with IE 6's blaring lack of CSS support that I haven't bothered looking to see if it will even support the link tag.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  16. #16
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Well, if it's only available in a few browsers, I don't think I should go that route. And I know have the people viewing my page (which would be maybe 2) probably won't go looking to see if they can change the style. It needs to be where they can see it.

    Splendid idea though.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  17. #17
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    A few browsers? I count 4 to 2. 'Course, it is possible that all of your users will limit themselves to the 2. That is fine.

    It is a shame that something that has been an industry standard for 4 years now isn't supported 100%.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  18. #18
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I'm not disagreeing with you at all. Just saying that I want the option available to all of my users if, for some reason, they want to use it. And unfortunatly, IE is the most common browser that views my site. Only 1 out of 4 users have something else.

    I just read about the new Netscape 7 and how it has all these cool tabbed windows and built in messanger support. Maybe if they (and IE) spent just as much energy making their browsers more compliant, we wouldn't have half the problems we do.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  19. #19
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Funny you should mention that CSS swapping stuff. I've been working on my own for a couple of days. You can change the style sheet via links at the bottom of the page, as well as the alternate style sheet method in NS (although it seems to have some bugs in NS when you click the link, that may be my fault at the moment ). If anyone's interested you can try it out at http://www.rickmusic.fsnet.co.uk/Jun...heme/index.htm - only the first three links work, and it uses cookies to store the stylesheet and menu states. By the way some of the styles aren't finished and look crap, so just ignore them

  20. #20
    scoutt
    Guest
    that is pretty good Rick, too bad you couldn't get some of the style to work in NS4.xx.

  21. #21
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Thanks. I haven't tested it in NS 4 (as is obviously apparent ) as I formatted my HDD a week or so ago and haven't got round to installing it. I may do it today. Although personally I don't bother with NS 4, I meam I'm sure it was a good browser in its day but it's pretty crap CSS wises.

  22. #22
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Actually it's a good job you said that, because that annoying alert comes up with every page you goto in NS 4, so I've changed it (but not uploaded it yet) so it only alerts you if you click the link. Also made my code a (tiny) bit more efficient.

  23. #23
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    [i]Originally posted by The Hobo I just read about the new Netscape 7 and how it has all these cool tabbed windows and built in messanger support.
    Yeah, Netscape sucks. If I wanted a messaging client, I would install a messaging client. I don't need a web browser that does something else for me.

    As to the tabbed interface (MDI). I love the way Opera does this, but Mozilla will do it, too.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

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



Click Here to Expand Forum to Full Width