Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Nov 2001
    Location
    Fort Dodge, Iowa, USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Self-adjusting navigation panel

    In creating a web site for a church, I set up a simple two-frame presentation...narrow left frame (for navigation) and a wide right frame (for content). It _functions_ fine, but the navigation source - a separate web page - keeps flattening itself out.

    EXAMPLE:

    In my editor (Sausage Software's Hot Dog v5) it looks like this - where each link is an image of a button...

    HEADING 0
    LINK
    LINK
    LINK
    LINK
    HEADING 1
    LINK
    LINK
    LINK
    HEADING 2
    LINK
    LINK

    ...which is what I want. The way that browsers (Netscape & IE5) see it is...
    HEADING 0 HEADING 1 HEADING 2
    ...
    ...with the HEADINGs lined up next to each other and the LINKs each alligned perfectly with their respective HEADING.

    As said above, the link work just like they're supposed to...I just can't get the navigation contents to stay in a line down the length of the left frame.

    I'm sure there is something I'll kick myself for missing - once I know the cause - but for now I'm stumped.

    Please help!


    Thanx,

    malkor <img src=/S/bash.gif border=0 alt=bash width=35 height=39>

  2. #2
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Self-adjusting navigation panel

    I usually don't say this, but I must concur, you are going to kick yourself on this one! <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    What makes this:
    Line1
    Line2

    show up on different lines in your editor is the Carriage Return and Line Feed characters (ASCII 10 and 13 (don't remember which is which...hehehehe)). In VB, the combo is set as a VB constant 'vbCrLf'.

    Now, that tells a normal text editor to go to the next line. However, HTML completely ignores the Carriage Return and Line Feed characters. Why? Because an HTML page would look horrible if you had to include everything you wanted to display on one line, in one line of HTML.

    So, in HTML, these:
    Hello, how are you.

    and

    Hello,
    how
    are
    you.

    both show up as 'Hello, how are you.'

    However,
    Hello< br >GoodBye

    and

    Hello
    < br >
    Goodbye

    Both show up as:

    Hello
    Goodbye

    So, the answer to your question, is you need to use < br > (without the spaces...I put those in so it would show up in the post) to tell the browser to go to a new line.

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Self-adjusting navigation panel

    I don't understand how it can behave like a normal list in one place, and like three table cells in another place. Can you post a stripped down version of the HTML for that frame (e.g., you can zip it up or give us a link, or you can paste it, but some code is lost in that process).

Posting Permissions

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