hat was a stupid mistake by me, however its still not working with Internet Explorer.
Perhaps you understand it better if you see it, go to www.crystalwarz.astahost.com, login using visitor username and visitor password. go to train under military menu. There are some words messed up above the table iam talking about but i can fix those, just see how the texts under description are positioned.
While you are at it open the site using firefox, you will notice the index page is messed up O.o
Note if posting my website in this way is illegal please tell me =)
TavoxPeru Posted Sep 25 2008, 10:47 PM
QUOTE(khalilov @ Sep 25 2008, 05:40 AM) *
I used colspan in a table along with center in CSS
code is:
CODE
.boldtable1
{
position:absolute;
top:217px;
left:250px;
font-family:sans-serif;
font-size:12pt;
color:yellow;
background-color:black;
}
.boldtable1 TD, .boldtable1 TH
{
font-family:sans-serif;
font-size:8pt;
width=162px;
color:yellow;
background-color:black;
text-align:center;
vertical-align:middle;
}
I use in table
CODE
.
.
<TD colspan=4>...</TD>
The text becomes centered as if no cells were merged, there is merging of cells but the text is centered where the first cell was.
At first sight, you have an error in your CSS code for TD and TH, i suppose that you copy/paste your code from your HTML to CSS right???
Well, after a quickly test i made, i can say that it was the problem, simply change the "=" with an ":" to fix it, here is the corrected code:
CODE
.boldtable1 td, .boldtable1 th
{
font-family:sans-serif;
font-size:8pt;
width:162px;
color:yellow;
background-color:black;
text-align:center;
vertical-align:middle;
}
BTW, if you want to use quotes in your PHP code simply escape it with a "\", like this:
CODE
<?php
echo "<tr><td colspan=\"4\">..</td></tr>";
?>
Best regards,
khalilov Posted Sep 25 2008, 06:14 PM
The reason i don't use quotes is because i am using php
CODE
echo "<tr><td colspan="4">..</td></tr>";
That will start generating erros =)
maybe i'll use ' instead,as for small letters i'll modify it =).
Mordent Posted Sep 25 2008, 03:33 PM
Just a little note: I'd highly recommend using lowercase tags ("td" instead of "TD"), simply because it's then valid XHTML. HTML will most likely be slowly rendered redundant over time, meaning XHTML is the markup language that will make little things like that add extra hassle for you in the future. Same with colspan, really. You need to put some quotes around the 4 to make it XHTML compliant.
Not really an answer for you, but XHTML is overall one hell of a lot easier to debug. Take at look at w3schools sometime.
khalilov Posted Sep 25 2008, 10:40 AM
I used colspan in a table along with center in CSS
code is:
CODE
.boldtable1
{
position:absolute;
top:217px;
left:250px;
font-family:sans-serif;
font-size:12pt;
color:yellow;
background-color:black;
}
.boldtable1 TD, .boldtable1 TH
{
font-family:sans-serif;
font-size:8pt;
width=162px;
color:yellow;
background-color:black;
text-align:center;
vertical-align:middle;
}
I use in table
CODE
.
.
<TD colspan=4>...</TD>
The text becomes centered as if no cells were merged, there is merging of cells but the text is centered where the first cell was.
None of this helped me i am a bit stone age in web design lol
Reply