1) How do I remove borders from a table in CSS? Tried border:0px; but while that removes the outer border, my table rows have colours and the grids are visible in white.
2) How do you center align a table via CSS? I want the equivalent effect of doing align="center" on the table tag itself. I tried margin-left:50% but it seemed to place the table way over 50% of the way. I'm hoping I'm not going to have to set absolute values but can set a relative %
3) How can you apply separate styles to separate input buttons in a table. So imagine I have 3 textboxes <input type="text" ... > and 1 submit button <input type="submit">
in a table tblFoo that already has styling on it. I'm looking for something like :
#tblFoo input.submit{
}
#tblFoo input.text{
}
Can this be done?
Any help appreciated.
2) How do you center align a table via CSS? I want the equivalent effect of doing align="center" on the table tag itself. I tried margin-left:50% but it seemed to place the table way over 50% of the way. I'm hoping I'm not going to have to set absolute values but can set a relative %
3) How can you apply separate styles to separate input buttons in a table. So imagine I have 3 textboxes <input type="text" ... > and 1 submit button <input type="submit">
in a table tblFoo that already has styling on it. I'm looking for something like :
#tblFoo input.submit{
}
#tblFoo input.text{
}
Can this be done?
Any help appreciated.