Alendar Posted August 28, 2006 Share Posted August 28, 2006 I just downloaded Opera to see what my site looked like on it and I found something is not right.When I look at my site in FireFox or IE my site looks like this:My Webpage in FF or IEWhen I look at my site in Opera my site looks like this:My Webpage in OperaWhy is it doing that? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 28, 2006 Share Posted August 28, 2006 it might be inheriting the centering from a parent element. Just set the text-align of that element to left. Link to comment Share on other sites More sharing options...
Alendar Posted August 28, 2006 Author Share Posted August 28, 2006 That did not work. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 28, 2006 Share Posted August 28, 2006 can I see the code or should I keep guessing? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 28, 2006 Share Posted August 28, 2006 I guess you should see the code. Link to comment Share on other sites More sharing options...
Alendar Posted August 28, 2006 Author Share Posted August 28, 2006 <div class="borderwrap"> <div class="maintitle"> <p>Â Article 1</p> </div> <table class="table" cellspacing="1"><tbody> <tr> 1 </tr><tr> <td class="catend" colspan="5"></td> </tr> </tbody></table></div> .table { width:100%; text-align: left; } Link to comment Share on other sites More sharing options...
aspnetguy Posted August 28, 2006 Share Posted August 28, 2006 I guess you should see the code.What code...the links are to PNG images Link to comment Share on other sites More sharing options...
justsomeguy Posted August 28, 2006 Share Posted August 28, 2006 I was trying to be funny by using "guess" and "the code" in the same sentence.. I thought it was sort of.. nevermind.Try closing that 1 inside of a <td></td>, you just have it hanging out in the <tr></tr>. Link to comment Share on other sites More sharing options...
Alendar Posted August 28, 2006 Author Share Posted August 28, 2006 Try closing that 1 inside of a <td></td>, you just have it hanging out in the <tr></tr>.Thank you!! It worked! Link to comment Share on other sites More sharing options...
aspnetguy Posted August 28, 2006 Share Posted August 28, 2006 I think that right there proves that Opera is the "strictest" browser and doesn't let you get away with garbase code like IE, although I am surprised FireFox displayed it correctly. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 28, 2006 Share Posted August 28, 2006 I'm surprised Firefox allows stuff like that as well, but when you think that Firefox's goal is to get people to switch from IE, I guess it makes a little sense to allow for a little crap here and there. I hope they phase that out as the versions progress though and get a little more strict, lazy web developers have had it too good for too long! The way I see it, there is no need for something like "quirks mode", or any alternative way of displaying a page. It should ideally be unambiguous how to display it, but that counts on web developers knowing what they are doing (that's why we're here, isn't it?) and not making the browser guess.I'm surprised Opera displayed it in the table at all though. Most of the time when I screw up and leave something out of a td, Opera puts the content above the table itself. Not the best presentation choice, but it definately lets me know right away that I screwed up. although I am surprised FireFox displayed it correctly.... but did it? How do you correctly display invalid code? Link to comment Share on other sites More sharing options...
reportingsjr Posted August 28, 2006 Share Posted August 28, 2006 Yes, that usually happens with me to justsomeguy, if I dont have my info inside of a <tr> or <td> it will just stick it efore the start of the table. Must be how you coded it!BTW, 400th post! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now