Forum Moderators: open

Message Too Old, No Replies

Closing </li> tag and bottom scrollbar?

Do you need closing </li> tags....

         

sderenzi

7:34 pm on Mar 30, 2004 (gmt 0)



Hi. I was wondering two things. Firstly I ran a check with TidyGUI & CSE HTML Validator, both told me all was well. Then I was sifting through my source and found I'd forgotten to replace the <br> tags with </li> ones. I am listing alot on my site. I was therefore wondering if you even need closing </li> tags at all?

Secondly I use frames for my site. Really the format is a left frame for menu content then a right for display content. The strange thing is that is the text goes down the page on te right a bottom scrollbar appears, if it can all fit then it doesn't. Yet the Menu frame is fine? I tried removing my .css link and it still did displayed the bottom scrollbar, I also erased almost everything in the .htm files and the bottom scrollbar still appeared. Is this something with my source do you think or could it be my system configuration?

Thanks, Sam.

tedster

7:56 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In HTML the closing tag for <li> and <p> is optional. In XHTML it is required.

With the bottom scrollbar - that sounds like a width problem. Is there some element high on the page that is requiring a particular width? Perhaps an image?

sderenzi

8:04 pm on Mar 30, 2004 (gmt 0)



I thought it was a width problem, but then I resized the width to almost nothing and the bottom scrollbar still didn't go away. It is most bizzare. Basically is only happens when my site is framed, if I open each .htm file individually then the bottom scrollbar won't appear. The stranger thing is even if I resize the frames so the menu frame is like 10, if the content frame needs to be scrolled then again the bottom scrollbar appears. That makes me wonder whether the <li> option has something to do with it because I removed almost everything else but that.

Thanks, Sam.

sderenzi

8:10 pm on Mar 30, 2004 (gmt 0)



Maybe there's something wrong with my index.htm file, take a look:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html lang="en">
<head>
</head>
<frameset cols="20,80" border=0 frameborder="no" framespacing=0>
<frame src="example_me.htm" name="Example_Menu" scrolling="yes" noresize>
<frame src="example_ne.htm" name="Example_Content">
</frameset>
</html>

sderenzi

8:18 pm on Mar 30, 2004 (gmt 0)



You're not going to believe this. I found out what is causing it. In every .htm file I added <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

When I remove that then all is well. What in the world?

moltar

8:18 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could this be it: scrolling="yes"

sderenzi

8:20 pm on Mar 30, 2004 (gmt 0)



scrolling ="yes" isn't it. The problem is this ----> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
But I don't have an idea why.

tedster

8:30 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cols="20,80"

That means 20 pixels and 80 pixels - not what you intended I think. Try either

cols="20%,80%"

-- or, probably a better idea --

cols="120,*"

Of course, replace the 120 to whatever width your particular layout requires for the left menu. The wildcard * character means "fill the rest of the screen".

Purple Martin

11:17 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're not going to believe this. I found out what is causing it. In every .htm file I added <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

..........

scrolling ="yes" isn't it. The problem is this ----> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
But I don't have an idea why.

That is the doctype for a normal page, not for a frameset page. On that page (and only that page) you need the doctype that you used in message #4:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

Keep the loose one for the other pages within the frameset.