Jump to content

HScrollbar appears after adding DOCTYPE?


nezos

Recommended Posts

Since i wanted to validate my code i added also the DOCTYPE:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> in it (look after the frame code).I am using two 3 frames (1 row contains 2 columns, and the 2nd row 1 "2+1=3")The following is the frame file:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7"><TITLE>blah blah</TITLE></HEAD><FRAMESET ROWS="90%,*"> <FRAMESET COLS="160,600"> <FRAME SRC="./gr/main_menu_gr.html" NAME=MENU SCROLLING=NO FRAMEBORDER=0> <FRAME SRC="./gr/main_gr.html" NAME=MAIN SCROLLING=AUTO FRAMEBORDER=0> </FRAMESET> <FRAME SRC="./logo.html" NAME=LOGO NORESIZE SCROLLING=NO> <NOFRAMES> <BODY> <P>No Frames</P> </BODY> </NOFRAMES></FRAMESET></HTML>And the above validates just fine! Now the PROBLEM!The PROBLEM is that if i add the DOCTYPE in the following code my page shows both the vertical and horizontal scrollbar, where it should only show the vertical. If i remove the DOCTYPE everything is fine, if i don't then the horizontal scrollbar appears although the text does not cover the whole page in width:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><TITLE></TITLE><STYLE TYPE="text/css">body, p,td { font-family: sans-serif; color: #000000; font-style: normal; font-size:11pt}</STYLE></HEAD><BODY><BR><H4><FONT COLOR=BLUE>Some text</FONT></H4><P><FONT COLOR="#A52A2A"><B><U>Some text</U></B></FONT></P><P><B>Some text</B></P><TABLE WIDTH="50%" CELLSPACING="0" CELLPADDING="2"><TR ALIGN=CENTER VALIGN=MIDDLE><TD>e-mail</TD><TD><A HREF="mailto:test@test.gr">Some text</A></TD></TR><TR ALIGN=CENTER VALIGN=MIDDLE><TD>Some text</TD><TD>Some text</TD></TR><TR ALIGN=CENTER VALIGN=MIDDLE><TD>Some text</TD><TD>Some text</TD></TABLE><BR><BR><P><FONT COLOR="#A52A2A"><B><U>Some text</U></B></FONT></P><P><B>Some text</B></P><TABLE WIDTH="50%" CELLSPACING="0" CELLPADDING="2"><TR ALIGN=CENTER VALIGN=MIDDLE><TD>e-mail</TD><TD><A HREF="mailto:test@test.gr">Some text</A></TD></TR><TR ALIGN=CENTER VALIGN=MIDDLE><TD>Some text</TD><TD>Some text</TD></TR><TR ALIGN=CENTER VALIGN=MIDDLE><TD>Fax</TD><TD>Some text</TD></TABLE><BR><BR><P><FONT COLOR="#A52A2A"><B><U>Some text</U></B></FONT></P><P><B>Some text</B></P><TABLE WIDTH="50%" CELLSPACING="0" CELLPADDING="2"><TR ALIGN=CENTER VALIGN=MIDDLE><TD>e-mail</TD><TD><A HREF="mailto:test@test.gr">Some text</A></TD></TR><TR ALIGN=CENTER VALIGN=MIDDLE><TD>Some text</TD><TD>Some text</TD></TR><TR ALIGN=CENTER VALIGN=MIDDLE><TD>Some text</TD><TD>Some text</TD></TABLE><BR><BR></BODY></HTML>by the way the above code validates just fine.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...