HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Firefox & Explorer
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
stephenr



Joined: 11 Feb 2008
Posts: 2

PostPosted: Mon Feb 11, 2008 9:27 am     Firefox & Explorer Reply with quote

I designed my website and when I view it in exploer, it looks different in firefox. Can someone help me please. The website is www.purifiedtechnology.com

Thanks!
madprof



Joined: 26 Jan 2008
Posts: 98

PostPosted: Mon Feb 11, 2008 1:22 pm     Reply with quote

Quick fix - give the main table the following:
Code:

margin-left: auto;
margin-right: auto; 


Firefox does not (correctly) apply text-align: center to tables. IE does for the sake of quiet life. If you use both you'll be fine.

For a general solution to this cross-browser issue you can follow the technique shown here:
http://bluerobot.com/web/css/center1.html
stephenr



Joined: 11 Feb 2008
Posts: 2

PostPosted: Mon Feb 11, 2008 2:01 pm     Reply with quote

If I send you the source will you show me where to put it? I dont know the code, I did it on frontpage.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Mon Feb 11, 2008 3:33 pm     Reply with quote



You have
Code:
<table border="0" height="503" style="position: relative; left: 47px; top: 13px; width: 482px; border-collapse: collapse">
You can just add the code above to this one
Code:
<table border="0" height="503" style="position: relative; left: 47px; top: 13px; width: 482px; border-collapse: collapse; margin-left:auto; margin-right: auto">
I would consider though not using the position information. This is probably causing you some issues as well.

Reading through your code, you have some thing positioned absolutely, but right before you seem to want it centered.

You might consider redoing the code and don't use the position. Develop the site and don't design it. Frontpage will create some bloated code and it will cause problems.

_________________
Corey
Residential Office Solutions | Mile High Merchant Accounts | Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial