css3 - container not getting displayed -
I am relatively new to JSP and HTML. I have been asked to create a GUI for one of my projects which was in Pearl, however, I have a problem with the container. Actually, each container displays results obtained from the file in the form of radio buttons, it works fine. But suddenly, one of the containers started to disappear, but suddenly, one of the containers started to disappear. Any help would be greatly appreciated.
Thanks in advance :)
& lt;% @ page language = "java" contentType = "text / html; charset = UTF-8" page encoding = "UTF - 8 "Import" = java.io. *, java.net. * "% & Gt; & Lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transcription // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Two-gm & lt; / Title & gt; & Lt; Style type = "text / css" & gt; Body {background color: white;} H3 {color: black} & lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H3 & gt; Tri-Grama 13 January 2013 USA & lt; / H3 & gt; & Lt; Div id = "content1" style = "background-color: #EEEEEE; height: 400px; width: 400px; overflow: automatic, border: 2px solid;" & Gt; & Lt; Form & gt; & Lt;% int i = 0; String line = null; String [] line_parse; Request.setCharacterEncoding ("UTF-8"); FileReader fis = New FileReader ("/ home / jones / test / trigram-topics-13th.txt"); Buffettder BR = New buffed reader (FIS); While (breadlines ()! = Null) {%> & Lt; Input type = "radio" name = "event_number" value = "& lt;% out.println (i);% & gt; & Gt; & Lt;% line = br.readLine (); Line_parse = line.part (""); Out.println (line_parts [0]); & Gt%; & Lt; Br> & Lt;% i ++; } Br.close (); & Gt%; & Lt; / Form & gt; & Lt; / Div & gt; & Lt; Br / & gt; & Lt; H3 & gt; Tri-Grama 14 January 2013 USA & lt; / H3 & gt; & Lt; Div id = "content2" style = "background-color: #EEEEEE; height: 400px; width: 400px; overflow: automatic, border: 2px solid;" & Gt; & Lt; Form & gt; & Lt;% request.setCharacterEncoding ("UTF-8"); Fis = New FileReader ("/ home / jones / test / trigram-topics-14th.txt"); Br = new buffed reader (FIS); While (breadlines ()! = Null) {%> & Lt; Input type = "radio" name = "event_number" value = "& lt;% out.println (i);% & gt;" & Gt; & Lt;% line = br.readLine (); Line_parse = line.part (""); Out.println (line_parts [0]); & Gt%; & Lt; Br> & Lt;% i ++; } Br.close (); & Gt%; & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
See it in the CSS file: -
// assumes that you did it under the ID container # container {display: heir! Important; } Or you can assign a style to the HTML file - Example:
& lt; Div style = "display: inherit! Important;" & Gt; & Lt; / Div & gt;
Comments
Post a Comment