I currently have this segment of HTML code:
<table cellspacing="0" cellpadding="0" width="100%">
After validating my HTML document, I discovered that these attributes are outdated. However, removing them would affect the alignment of my website. I am seeking a suitable solution to replace these attributes using CSS code.