When i use the
tag its working. But when i put thetag inside a table it,s not working. Can i use thetag in a table?
When i use the
tag its working. But when i put thetag inside a table it,s not working. Can i use thetag in a table?
There’s no reason it shouldn’t work. Can you show us your code?
As Scott said, it should work. But, there are some minor issues.
So,
inside a table should be inside theas elsewhere can give odd results if crossing cells. Also,
defaults to width:100%, so if sizing is done thru the, you might have to play with the table’s width settings. I think there were some other minor issues, but, don’t remember them.
My first thought on it is that that is what the issue is, that’s why I’d like to see the code. If it is, you can put a fixed-width DIV in the
within the DIV. Not an ideal solution, but depends what it’s used for. Without seeing the code, it’s hard to tell.
The problem is the tabel width gets 100% i want to get it fixed to 400. Found this code worked in google chrome but not in internet expolrer. Is there a code that works for all browsers?
CSS
#tablediv {
max-width:400px;
}
PHP
[php]
’; | ’;
Okay, now, I am confused… You were talking about
not table width’s.
I do not see any's in your code…If you are just talking about table width’s, there are hundreds of ways to fix that.
First, create a DIV with the max styling width set to whatever and place the table inside it.
Or, just add CSS styling to the table and each row and each cell to fix it up as needed…doesn’t just
work?
Your code is all over the place. Inline styling, opening tags without closing them. Can you tell us exactly what you are trying to achieve so we can help you out? From looking at it, you don’t need to use PRE tags although I may be wrong. Are you just trying to keep spaces and new lines in your $_POST[‘message’]?
Ooops! Scottlpool is correct. I meant, the
code you have is useless and is not being used. It is just stuck in there. So, I think you need to tell us what you are trying to fix.