Forum Moderators: open
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.
Thanks, Sam.
<!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>
When I remove that then all is well. What in the world?
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".
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.