Jump to content
xisto Community
sonesay

Table Left Column Spacing

Recommended Posts

.left { margin: 0; padding: 0; }
Not sure why the reset of margin and padding on the left hand side of the matrix works to remove the "line", but it does.

And here is a sample of the "matrix" coding for both Table elements and div elements that worked for me on another project once upon a time.

http://forums.xisto.com/no_longer_exists/

Share this post


Link to post
Share on other sites

Thanks for spotting that jlhaslip, Also for the example link as well. There are obviously many ways to do it and I'm not sure what is easier to create and maintain but I will stick with my version for now. It is weird that I have to explicitly apply margins and paddings to zero to my left and right columns. I would think they would be passed down from the table selector. I did not create a document type for the page so could that be why margins and padding doesn't get inherited automatically by the child elements?

Share this post


Link to post
Share on other sites

And if you review the code for the matrix sample I posted, you notice that the Table version is a lot less code than you used.Check it out. Your version is pretty complex. I think the biggest difference is in my use of cell spacing and cell padding for the tabled version. Not certain about that though.

Share this post


Link to post
Share on other sites

I had a quick look and your table version uses styles in the table tag attributes itself. The reason I wanted CSS classes is so I can reuse them else where. I will have a further look and decide on what version I will go with but at the moment I have somehow managed to mess up my site template so I am frantically trying to correct it right now.Thank you again for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.