Link to home
Start Free TrialLog in
Avatar of lancerxe
lancerxe

asked on

"Center" Problems with asp.net 2.0/vb.net with Firefox Browsers

Hello Experts,

I am having problems with the "centering" applied in styles of simple HTML tables, cells, rows and other asp.net 2.0 server side controls when viewing in Mozilla FireFox browser.  MSIE of course is rendering it just fine.

I have already seen the customized <browserCaps> changes to  web.config file/system.web section example from within E-E.com asp.net forums and that did not do the trick as I hope it would.

Is there anything else I need to change within my master pages and inherited aspx changes to alleviate this centering problems??

Any help is greatly appreciated.
Avatar of raterus
raterus
Flag of United States of America image

Is there an asp.net rendering problem here?  Where an IE browser gets different HTML source than FireFox? (asp.net does render "downlevel", but for asp.net 2.0, FireFox is not considered a downlevel browser anymore)

Or, is this just a browser style/formatting issue?
Avatar of lancerxe
lancerxe

ASKER

In FireFox:

<table style="width: 780px; height: 48px; font-weight: bold; font-size: medium; color: #ffffff; font-family: 'Trebuchet MS';">
        <tr>
            <td>
                Login</td>

        </tr>
    </table>

In IE:

<table style="width: 780px; height: 48px; font-weight: bold; font-size: medium; color: #ffffff; font-family: 'Trebuchet MS';">
        <tr>
            <td>
                Login</td>
        </tr>
    </table>

no differences in the sample except thet IE centers by default, does FirFox left justify by default?  If FireFox default left justify then I have to explicitly set a style setting of "center" on the cell...  Looking into this currently.  will be back!
Ok, so it's not really an asp.net issue based on the browserCaps, it's a browser formatting issue itself.  I do not see the centering you are talking about in the example you posted?
Hey Raterus - Thanks for the quick responses.

The centering issues looks to be where the tables does not have explicit style settings on them so based on this behavior, IE defaults them to center and FireFox default as left-justified.  I am fixing this right now. thanks!

However I have other problems too that is FireFox rendering issue of the HTML table when you have no explicit style height setting?  IE seems to adjust the render properly to "dynamically adjust" the height of the HTML Table whereas with FireFox it sort of "Bleed" out rendering "Over" my footer.  If there is capability to post a pic on this site I would to show a sample of what I was talking about, or maybe email you a sample pic?
Wow, I just got an email yesterday from the admins of the site about a new upload feature, I've never used it, but it's located here for EE members,
http://ee-stuff.com/Expert/Upload/upload.php
Seems my account does not have access to that feature *sigh*
you can email me it and I'll post it, and hopefully everyone can at least see it
sure glad to email a pic of the issue, however, I cannot find your email under your member profile, what is your email?
I hid it :-)  Look at the bottom, about ten lines up above the "--"

It is just my username @ experts-exchange dot com
OK ras - emailed you the sample pic!
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hey Raterus!

You hunch was right and thanks a mill for pointing me to the CSS boards.  FireFox is not as lenient like IE on default width/height assignments on styles, I have to explicitly assign them or FireFox goes haywire.  I am currently making the proper adjustments to this settings, I should be fine from here.  Again, thanks a lot for your assist in the matter.