I have to build this with a div, but I need to use a table for my client (dummy user). Therefore, I create this html table using CSS, which works fine in Chrome.
I read some related topics but just didn't get the key trick! hope someone tells me what is wrong.
Here is my CSS and I have a jsfiddle demo here (works only in Chrome) First check out the jsfiddle demo in Chrome, then try Firefox and you will see what I had in mind.
#content_container {
width:960px;
}
#content_container .fullcontainer > table {
border-bottom: 4px solid #222;
}
#content_container .fullcontainer {
width:inherit !important;
margin: 0 auto !important;
padding: inherit !important;
}
#content_container table.eurostyle {
margin: 25px auto !important;
border-collapse: collapse !important;
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
text-shadow: 1px 1px 1px #eee;
}
table td img.alignleft {
margin: 0;
}
body h2 {
font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
font-weight: bold;
}
.eachtop {
border-top: 4px solid #222;
border-color: #000;
}
.eachaside {
border-top: 1px solid #222;
border-top: 1px solid #ccc;
font-size: 12px;
}
table td {
}
table h2 {
margin: 2px 0;
line-height: 1.1em;
font-size: 22px;
}
.eachtop > td:first-child {
padding: 3px 0;
}
.tdfit {
padding: 0 0 0 1px;
line-height: 0;
}
.ctable {
margin: 0 0 0 0px;
}
.ctable td img, .tdfit img {
max-width: 100%;
height: auto;
}
.ctable td {
padding: 1px;
border: 1px solid #000000;
border-top: none;
border-bottom: none;
line-height: 0.9;
}
.ctable td img {
}
source
share