DoctorCZE DoctorCZE - 4 months ago 18
CSS Question

HTML invisible components

i am pure amateur with HTML, JS, CSS etc... I need make just testing site for one of my app.

My problem is... when i use some stuff like:
input type="text"

It never show.. i need it in table, just look to html code.

Btw. Text area is working, long experimenting with stpid css code :D, i already triyed everything what i can.



<!DOCTYPE html>
<html lang="en">
<style>
@import url("http://fonts.googleapis.com/css?family=Open+Sans:400,600,700");
@import url("http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css");


*, *:before, *:after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html, body {
height: 100%;
}

body {
font: 14px/1 'Open Sans', sans-serif;
color: #555;
background: #eee;
}

h1 {
padding: 50px 0;
font-weight: 400;
text-align: center;
}

p {
margin: 0 0 20px;
line-height: 1.5;
}

main {
padding: 50px;
margin: 0 auto;
background: #fff;
}

section {
display: none;
padding: 20px 0 0;
border-top: 1px solid #ddd;
}

input {
display: none;
}

label {
display: inline-block;
margin: 0 0 -1px;
padding: 15px 25px;
font-weight: 600;
text-align: center;
color: #bbb;
border: 1px solid transparent;
}

label:before {
font-family: fontawesome;
font-weight: normal;
margin-right: 10px;
}



label:hover {
color: #888;
cursor: pointer;
}

input:checked + label {
color: #555;
border: 1px solid #ddd;
border-top: 2px solid orange;
border-bottom: 1px solid #fff;
}


.mainTab{
width: 1920px;
margin: 0 auto;
}

.floatingTabs{
margin: 80px;
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3,
#tab4:checked ~ #content4 {
display: block;
}


.tg {border-collapse:collapse;border-spacing:0;width: 1920px;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:none;overflow:hidden;word-break:normal;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:none;overflow:hidden;word-break:normal;}
.tg .tg-0ord{text-align:right}
.tg .tg-94f7{background-color:#34ff34;text-align:right;vertical-align:top}
.tg .tg-red{background-color:#ffffff;text-align:left;vertical-align:top}
.tg .tg-lqy6{text-align:right;vertical-align:top}
.tg .tg-yw4l{vertical-align:top}

textarea {
border: none;
width: 100%;
-webkit-box-sizing: border-box; /* <=iOS4, <= Android 2.3 */
-moz-box-sizing: border-box; /* FF1+ */
box-sizing: border-box; /* Chrome, IE8, Opera, Safari 5.1*/


}
text { //just test, no woking.
border: solid;
width: 100%;
height: 100%;
-webkit-box-sizing: border-box; /* <=iOS4, <= Android 2.3 */
-moz-box-sizing: border-box; /* FF1+ */
box-sizing: border-box; /* Chrome, IE8, Opera, Safari 5.1*/
}




</style>





<head>
<meta charset="UTF-8">
<title>Incident detail</title>

</head>
<body>




<div class="mainTab">
<table class="tg">
<tr>
<th width="20%" class="tg-0ord">Some stuff</th>
<th width="20%"> **<input type="text">** </th>
<th width="20%" class="tg-lqy6">Here need checkboxstate </th>
<th width="20%" class="tg-yw4l"> etc </th>
<th width="20%" class="tg-yw4l"> </th>
</tr>
<tr>
<td width="20%" class="tg-lqy6">some of components</td>
<td width="20%" class="tg-yw4l">some of components</td>
<td width="20%" class="tg-lqy6">some of components</td>
<td width="20%" class="tg-yw4l">some of components</td>
<td width="20%" class="tg-yw4l">some of components</td>
</tr>

</table>
</div>




<div class="floatingTabs">
<input id="tab1" type="radio" name="tabs" checked>
<label for="tab1">Notes</label>

<input id="tab2" type="radio" name="tabs">
<label for="tab2">Instructions (Affered CI)</label>

<input id="tab3" type="radio" name="tabs">
<label for="tab3">Patrol</label>


<section id="content1">


</section>



<section id="content2">

</section>



<section id="content3">

</section>


</div>


</body>
</html>




Answer

Your CSS has this:

input {
    display: none;
}

So all inputs will be hidden. Just delete that?

Comments