Click here to Skip to main content
15,885,182 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi guys please help me figure this out .
im designing a simple header to a page work on, and the result i get on IE 9,8 firefox is different check this out :

XML
<div id="setSpace">
    <table width="100%" border="2" id="sms_form_header">
    <tr>
    <td align="left"><h1>SWS - SMS Winning Solution</h1></td>
    <td align="left" valign="bottom" dir="rtl"><b><font color="red"><?php echo $_GET['credits']; ?></font></b></td>
    <td align="right" dir="rtl" valign="bottom">יתרת הודעות :</td><td></td>
    <td align="left" valign="bottom" dir="rtl"><b><font color="red"><?php echo $_GET['user']; ?></font></b></td>
    <td align="right" dir="rtl" valign="bottom">שלום,</td>
    </tr>
    </table>
    </div>


now, i added some css styles in a seperate file to the table shown in the code, but i don't think that's what causing the problem .
for example, in IE9 i dont see the table borders, and

tags are not working, while in firefox the desing i see in my workspace is similar 100% .

im new as you can see . please guide me.

moses

Posted

1 solution

I have no idea which of your border, alignment and similar attributes create the loss in cross-browser compatibility. I can tell you why: I never use them. Using such attributes is really a bad thing. I don't even know who develop Web sites using them. Probably none of real Web developers.

Styles and presentation-specific formatting should be separated from the content as much as possible; and the technical way of doing it is using CSS. OK, you say, you use it. I cannot see it from your code. And even if you apply some CSS style to your code, this is not enough. You also should stop using attributes you are using in your code sample. Just remove then all, use none of them, and, in some cases, use the attribute class.

Yes, cross-browser compatibility is a real problem, but the borders and alignment you are trying to achieve is way too simple. Such simple rendering usually is not a problem with CSS. There is nothing special you need to know; just grab a text of CSS standard and/or a good reference book and learn using those styles. It would be much more effective then talking about them. There is no a better way.

Good luck,
—SA
 
Share this answer
 
Comments
moses12345 31-Mar-12 17:36pm    
hi,
well i guess i'm not a REAL web developer like you, but i asked a simple question dude, try to focus next time .
Sergey Alexandrovich Kryukov 31-Mar-12 23:57pm    
What do you want me to focus on? Instead of playing offended card, try to use the exact recipe I gave you. I am not a Web developer at all, I just know the exact answer to help you. Just use the advice.
If you get it, please consider accepting this answer formally (green button) -- it should resolve your problem.
--SA
moses12345 1-Apr-12 2:09am    
the green button is for a solution, non of the above is a solution, and all was well known before you wrote an essay instead of quick helpful soultion .
please let other ppl here comment about this and do not disturb .

and a quick tip for life : lose your attitude, try to leave a good impression on ppl, never hold your nose up high, coz sometimes you don't know who your'e talking to, and what picture do they get of you .
moses
Sergey Alexandrovich Kryukov 1-Apr-12 14:29pm    
I don't really care. Sorry, I have to ignore your accusations. I understand where it comes from. You got a complete solution and don't want to admit it because it makes your own work look bad. You can just forget it, but I don't think you can hope for good help in general. Instead of focusing on your work, you play offended card.
I don't think my posts can help you, I suspect all I write it in vain. Sorry.
--SA
Sergey Alexandrovich Kryukov 1-Apr-12 14:30pm    
I don't really care.
Apparently, you cannot or don't want to see the help. Do you still have a problem implementing that stuff?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900