1
I want to create two tables on the same page only one will have borders and the other will not. I have one already created in CSS but now I can’t create another.
<table border="0" width="500px" height="1000px">
<tr >
<td>
<iframe src=".PDF" ></iframe>
</td>
</tr>
<tr>
<td>
<iframe src=".PDF" ></iframe>
</td>
</tr>
</table></center>
This table looks like another. How do I get around this?
CSS table 1 (Built):
table {
width: 100%;
}
table.default {
width: 100%;
}
table.default tbody tr {
border-bottom: solid 1px #e0e0e0;
}
table.default td {
padding: 0.5em 1em 0.5em 1em;
}
table.default th {
font-weight: 600;
padding: 0.5em 1em 0.5em 1em;
text-align: left;
}
table.default thead {
background-color: #555555;
background-image: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.15)), url("images/bg01.png");
background-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.15)), url("images/bg01.png");
background-image: -o-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.15)), url("images/bg01.png");
background-image: -ms-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.15)), url("images/bg01.png");
background-image: linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.15)), url("images/bg01.png");
color: #fff;
}
PS: Now I want to create a new CSS for the table I put on top
What do you mean you already have the table created in css? You just put html there. What have you tried to do so far in the other table?
– Oeslei
Are you sure this CSS was made for this table? There is a class
.default
and two selectorsthead
andtbody
that are not being used intable
. Another point is that in HTML the table is with CSS inlinewidth:500px
and in CSS this value is changedwidth:100%
.– Renan Gomes
This CSS was made for another table and now I want to create a new CSS
– ChrisAdler
Friend, look for css tutorials, especially on the selectors. It seems that you still don’t understand how the css selectors work. Here’s a good tutorial on this.
– Oeslei
Tip: width=500px also does not exist, px is used in CSS and not in html attributes. :)
– Guilherme Nascimento
@Chrisadler can accept any answer?
– Maniero
Withdraws
.default
is not necessary, makes name element class simplerclass="minhatabela"
, ai works normal.– KingRider