[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 688
  • Last Modified:

"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.
0
lancerxe
Asked:
lancerxe
  • 6
  • 6
1 Solution
 
raterusCommented:
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?
0
 
lancerxeAuthor Commented:
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!
0
 
raterusCommented:
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?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
lancerxeAuthor Commented:
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?
0
 
raterusCommented:
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
0
 
lancerxeAuthor Commented:
Seems my account does not have access to that feature *sigh*
0
 
raterusCommented:
you can email me it and I'll post it, and hopefully everyone can at least see it
0
 
lancerxeAuthor Commented:
sure glad to email a pic of the issue, however, I cannot find your email under your member profile, what is your email?
0
 
raterusCommented:
I hid it :-)  Look at the bottom, about ten lines up above the "--"

It is just my username @ experts-exchange dot com
0
 
lancerxeAuthor Commented:
OK ras - emailed you the sample pic!
0
 
raterusCommented:
Here is the link to your files,
https://filedb.experts-exchange.com/incoming/ee-stuff/15-Problem.zip

Just looking at the pictures, I can tell you the solution is way out of my expertise.  I don't think I'll be much of any help,  What I'd do is this,

Post a pointer question here, just make it 20pts and describe your situation again, post a link back to this question.
http://www.experts-exchange.com/Web/Web_Languages/CSS/

A much more qualified expert in CSS should follow the link and help you here.
0
 
lancerxeAuthor Commented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now