Geeks With Blogs
Garrett Hoofman ..:: visions of afar ::..

So last I was trying to create myself a nice little web page for domain. I've had this domain for about two years now and I still don't have a web page for it, just sub domains and such. So I finally got around to making a website for it.

I've got quite a bit of experience with C# and asp.net so that was the logical choice. So I threw together a page template in a MasterPage and then put it up... The table that contained everything wasn't centered. So I went back into the code, told the div surrounding the table to center... Put center tags around the table... Used the designer to center it...

I opened up the page in Internet Explorer and the table was centered... omg. So I did my google searching. Finally I found an answer for it. Firefox has issues with centering tables and it's actually a decent little fix. You have to put the table into a class.

<table class="mainTable">.

Then in the style sheet use

.mainTable

{

margin:0 auto;

}

There we go. That's how you get a table to center in firefox properly.

Posted on Monday, April 9, 2007 11:31 AM | Back to top


Comments on this post: Firefox and ASP.Net

# re: Firefox and ASP.Net
Requesting Gravatar...
Thanks for the tip; I just had the same problem.
Sigh... 20 mins lost for ever :(
Left by Tou on Oct 22, 2007 6:22 AM

Your comment:
 (will show your gravatar)


Copyright © Garrett Hoofman | Powered by: GeeksWithBlogs.net