By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,630 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,630 IT Pros & Developers. It's quick & easy.

Using CSS results in changes in page display

P: 2
I am working on validating a website to 4.01 standards. I have not had much experience in html or css until this project so it may be a simple mistake or misunderstanding.

Basicly what is happening is that I am getting small spaces between tables where there weren't any before. This throws the alignment way out of wack.

The website is generated using apache server and php. The pages are the results of the generated page with all the main text removed.

http://powercoreeng.com/page.css

http://powercoreeng.com/menuold.html

http://powercoreeng.com/menunew.html

I have tried everything I can think of but I can't seem to find a way to make the css version match the old non-css version.
Jan 8 '08 #1
Share this Question
Share on Google+
2 Replies


P: 2
I figured out the problem.

It appears to be that <table> properties don't transfer to <td> and <tr>.

To fix the problem I just added this to my css file
Expand|Select|Wrap|Line Numbers
  1. td
  2. {
  3.     border-style: none;
  4.     border-width: 0px;
  5.     border-spacing: 0px;
  6.     padding: 0px 0px 0px 0px;
  7. }
  8. tr
  9. {
  10.     border-style: none;
  11.     border-width: 0px;
  12.     border-spacing: 0px;
  13.     padding: 0px 0px 0px 0px;
  14. }
  15.  
Thanks for being my sounding board :) I hope this will help someone else who may have run across this
Jan 8 '08 #2

Expert 100+
P: 303
Just a note - instead of repeating css like that, you can combine them.
Expand|Select|Wrap|Line Numbers
  1. tr, td
  2. {
  3.     border-style: none;
  4.     border-width: 0px;
  5.     border-spacing: 0px;
  6.     padding: 0px 0px 0px 0px;
  7. }
  8.  
Jan 9 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.