HELP PLEASE, display FF verses IE. -...

User 227765 Photo


Registered User
11 posts

I am very new to this and am trying to save my team money by doing the website myself.
I am doing simple HTML and tables, but whay works well in firfox looks huge and out of order in IE.

How do I make the tables look the same in both browsers??

I really need help, I am trying to learn and willing to listen, but I don't want to let my team down..

I want the table to look the samein Internet explorer as it does in Firefox, what have I done wrong please.

www.olyrollers.com

Christy
I am a newbie, I can live with it :P
User 355448 Photo


Ambassador
3,144 posts

Christy,

I don't know what program you are using to create your page, but you have a style section on your page. Different browsers have different default fonts and sizes. Try putting this at the top of your style section:

* {
margin: 0px;
padding: 0px;
}
body {
font-family: arial;
text-align: center;
min-width: 770px;
}
You can then set your margins and padding as you need without worrying that IE and FF will get things different. Set the font to the family you want, and you can even set the size to ensure more consistent results.

Then take a look at your code. Near the top, you have a body tag followed by a meta tag and style tag. Since Meta and style need to be in the head section, you need to move the closing (</head>)tag and the opening (<body bgcolor="#000000">)tag to below the closing (</style>) tag.

Hope this helps.
User 227765 Photo


Registered User
11 posts

In all honesty,
I am not using any program, I use lunar pages and am teaching myself code by reading the source of other pages and then reading these forums and books.....It is a mess I know, I am trying hard. I use coffee cup where I can, but am feeding myself information....as you can see by my beginners mistakes. I have fixed the areas you have said, but when I set the margin or padding to any numbers besides 0, IE looks even worse :0(.
Do you mind taking a look at the code to verify I followed your directions properly. The table is showing really large on IE, I really like the way it views in Firfox, not sure if I am missing something or have typed something incorrectly? I am so confused.. Lots of our fans use IE and I am getting lots of questions on when I can fix the page, but I am ashamed to answer, "I am not sure how to."
I am a newbie, I can live with it :P
User 355448 Photo


Ambassador
3,144 posts

I should have given better instructions and been clear in what I was asking. Are you using Notepad, CC HTML editor, or something else to input your code? You copied the code I use directly into the correct location. Where I have arial, you are using veranda throughout, so change that in the style. The min-width: 770px; is something I did for my site, so you should probably remove that.

I suspect the reason FF is left and IE is right, is that IE is seeing the menu, and FF is not. I suspect I am getting in over my head. I haven't used any flash on my site, but suppose I need to learn that.

Hopefully one of the better qualified folks will step in here.
User 37670 Photo


Registered User
2,138 posts

Hi Christy,

I had a look at your web page code. Can't suggar coat this even if I try, so.....The code is a little messed up? Please let me try to explain.
When you code a web page, you should not have empty code. Example from your web page (the one in your link):
<div align="center">� </div>
<div align="center">� </div>
<div align="center">� </div>

Those 3 lines of code start a <div> then end a </div> with nothing in them. You do the same thing all over the place with font tags:
<div align="center"><font size="2"><em><strong><font face="Verdana"> </font></strong></em></font></div>

That entire line of code is trying to center nothing, make font size 2 out of no font, make it em, strong and verdana, but there is no font!?

Fixing these empty lines of code will not make the tables the same in both browsers. It will confuse the browsers a little less and at least give you a chance to fix things in the future.

Here is what I would suggest:
Make a new page.
Use tables to help align your content, but keep them simple.
You can use many tables on one page, so don't try to get all the content into one big complicated table.
Stack your tables...make one table for the first row of content.
Make another table for the second row of content.
Make another for the third row....
Make all of those tables the same width, keeping in mind that images will dictate how wide you need the table. An image with width="700" can't fit into a table of with="500". The table will stretch to the 700 pixels of the image, no matter what you try to do.

Please let me try to provide you with an example of the code I am trying to explain.

<table border="1" width="750">
<tr><!-- Row 1 -->
<td>Use your longlogo.JPG here</td><!-- Col 1 -->
</tr>
</table>
<table border="1" width="750">
<tr><!-- Row 1 -->
<td width="400">this cell for ticket and loy sponsors image</td><!-- Col 1 -->
<td width="153">this cell for "our mission" statement</td><!-- Col 2 -->
<td>this cell for the PHOTOS click here stuff.</td><!-- Col 3 -->
</tr>
</table>
<table border="1" width="750">
<tr><!-- Row 1 -->
<td width="560">this one for team.jpg</td><!-- Col 1 -->
<td>in this cell, you could use the cosanostraboot.jpg a <br> tag, then the primadonna.jpg image. This might not be exactly the best way, but you will start to see how simple tables can be easier to use.</td><!-- Col 2 -->
</tr>
</table>

<table border="1" width="750">
<tr><!-- Row 1 -->
<td width="560">novbout.jpg image and info</td><!-- Col 1 -->
<td>put the rest of your image here, make sure to use the <br> tag so that they can sit one below the other in the same cell</td><!-- Col 2 -->
</tr>
</table>

The tables above will give you the effect you want and should display better in browsers. (no guarantees)
You can play with the width of the table, the width of the <td> sections to accomodate your image widths.

You do not need to set a "height" for your table. It will adjust automatically to your content, and the height="" is not allowed in a table in html rules, so browsers will tend to ignore it anyway.

Try a test page with just the tables and the contents. See what it looks like and if you get it the way you want, switch it for the table you have on your page. If not, at least I did not mess up your page for you.

Always keep a backup of your page before making changes, just in case.
Good Luck
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 364143 Photo


Guest
5,410 posts

Nice index page. You sure do have a lot of div's, though.

Most of those dives could be replaced with <p> and <h1>.

Use <div>'s to define the page layout.

<div id="container">
<div id="header">
<h1>This is the header text</h1>
</div>
<div id="body">
<h1>This is the body title text</h1>
<p>This is a body paragraph text</p>
</div>
<div id="footer">
<p>This is the footer text</p>
</div>
</div>
CoffeeCup... Yeah, they are the best!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.