robsworld
01-23-2009, 04:13 PM
Hi, I'm just learning CSS but theres something I can't figure out, I've done lots of reading but nothing works.
I have a site that I wanted to make a spreadsheet type look with grid lines of course using all CSS. I found some methods that used the table tags but I don't want any table tags and I know I don't need them. Anyways I finally got some code to work which does exactly what I want but the borders don't show up in IE, firefox you can see it fine. Here's the code I have and a link to my page so you can see it. Thanks for the help.
http://robsworld.comze.com/index.html
CSS Code for tables:
#table {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border: solid #000000 thin;
vertical-align: bottom;
}
#table2 {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border-right: solid #000000 thin;
border-bottom: solid #000000 thin;
border-top: solid #000000 thin;
vertical-align: bottom;
}
#table3 {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border-right: solid #000000 thin;
border-bottom: solid #000000 thin;
border-left: solid #000000 thin;
vertical-align: bottom;
}
#table4 {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border-right: solid #000000 thin;
border-bottom: solid #000000 thin;
vertical-align: bottom;
}
HTML code for tables
<div id="table">gfds </div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table3">gfds </div>
<div id="table4"></div>
<div id="table4"></div>
<div id="table4"></div>
I have a site that I wanted to make a spreadsheet type look with grid lines of course using all CSS. I found some methods that used the table tags but I don't want any table tags and I know I don't need them. Anyways I finally got some code to work which does exactly what I want but the borders don't show up in IE, firefox you can see it fine. Here's the code I have and a link to my page so you can see it. Thanks for the help.
http://robsworld.comze.com/index.html
CSS Code for tables:
#table {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border: solid #000000 thin;
vertical-align: bottom;
}
#table2 {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border-right: solid #000000 thin;
border-bottom: solid #000000 thin;
border-top: solid #000000 thin;
vertical-align: bottom;
}
#table3 {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border-right: solid #000000 thin;
border-bottom: solid #000000 thin;
border-left: solid #000000 thin;
vertical-align: bottom;
}
#table4 {
margin: 0;
padding: 0;
float: left;
width: 100px;
max-width: 100px;
min-height: 25px;
height: 25px;
border-right: solid #000000 thin;
border-bottom: solid #000000 thin;
vertical-align: bottom;
}
HTML code for tables
<div id="table">gfds </div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table2"></div>
<div id="table3">gfds </div>
<div id="table4"></div>
<div id="table4"></div>
<div id="table4"></div>