Lefu Posted June 15, 2007 Share Posted June 15, 2007 hi, I need to position this table centered I declared my table like this <table align="center" class = "layertbl" > but it does work on firefox but on IE it is aligned left. please help. below is the style for the table. =================== .layertbl { position:ralative; float: left; width : 800px; border : 1px 2px solid #000000; border-collapse: collapse; border-spacing:0px 0px; height : 100%; vertical-align:top; } ======== Quote Link to comment https://forums.phpfreaks.com/topic/55761-solved-aligning-table-centered/ Share on other sites More sharing options...
Lefu Posted June 15, 2007 Author Share Posted June 15, 2007 it is sorted out, all I had to do is change float:left to float:center in my css. Quote Link to comment https://forums.phpfreaks.com/topic/55761-solved-aligning-table-centered/#findComment-275523 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.