Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IE7 CSS PHP cross-platform , +
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 :
 
<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 30-Mar-12 13:19pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
moses12345 at 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 .
SAKryukov at 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 at 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
SAKryukov at 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
SAKryukov at 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
0 OriginalGriff 270
1 Sergey Alexandrovich Kryukov 185
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 30 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100