Jump to content
xisto Community
Chesso

Html Table Issue.

Recommended Posts

instead of <table>, try:<table cellpadding="0" cellspacing="0">
or
<table style="border-width: 0px; padding: 0px; margin: 0px;">

Well, if you're going to do the latter, you might as well put that in css. IE:

<table class="info">

Then in your css file:

.info {
padding: 0px;
margin: 0px;
}

Or, in a more generic manner, you can just specify what you want for tables:

table {
//layout info
}

And you can specify how you want to layout the table with the info class.

Maybe it'd be better if you (Chesso) posted the code for the whole page so that people can get a better of idea of why the table is causing the page to break? I mean, it's true that you can emulate tables with divs, but I think it's better to use tables all the same. Also, maybe linking to the site would be better so that people can sort through things without looking at your php code.
Edited by Arbitrary (see edit history)

Share this post


Link to post
Share on other sites

Oh I see what you mean, I should have tried that. I just haven't had that issue before, it might be something specific to how the code/tags are layed out and branched.

Just wondering does the examples I've gave you work for the div/css against table? Just curious as it did for me even though it might not be the best solution.

Cheers

Share this post


Link to post
Share on other sites

when i have troubles with tables the very first thing i do is make sure i have the cellpadding and cellspacing and both on 0. that always fixes any table problems i have, lol. oh and other problems i have i have to use colspan and valign.for your problem though im not sure.

Share this post


Link to post
Share on other sites

Well seen as it brakes the site up pretty badly, I guess some sort of alignment could be an issue.I did test out a few different possibilities, but with being capped on speed and especially this ISP (it's mostly great otherwise) it's not very stable when capped, so it is hard just to load up this page lol (let alone a CSS reference).

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.