Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2007, 05:14 PM   #1 (permalink)
Contributing Member
 
Join Date: 10-06-04
Posts: 96
iTrader: 0 / 0%
Latest Blog:
None

Gr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebody
Send a message via MSN to Gr8Writer
Question IE 6 Layout problem

I have a page that displays ideally in Firefox: http://www.e-tungsten.com/mim_and_pim.html

However, the same page in IE 6 has the table with the pictures stretched out past the right edge of the screen without any scroll bar. If I adjust the table width to accomodate IE 6, this messes with the width of the table columns in Firefox.

Is there any way to adjust this page so that it will look good in both browsers? I've just about come to the end of my rope with this problem and really need some help with it, so *any* help would be appreciated.

Thanks.
Gr8Writer is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-28-2007, 11:25 AM   #2 (permalink)
Contributing Member
 
Join Date: 10-06-04
Posts: 96
iTrader: 0 / 0%
Latest Blog:
None

Gr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebody
Send a message via MSN to Gr8Writer
My bad. I accidentally left this page overnight in its width-adjusted state. If you could please take a look now and see what's wrong with the page, I would greatly appreciate it.

You can see the page with the 80% width here: http://www.e-tungsten.com/mim_and_pim-test.html

Also, I validated the page with two validators and both times the page passed validation.

Thanks in advance.

Last edited by Gr8Writer : 02-28-2007 at 11:41 AM. Reason: To add URL and validation info
Gr8Writer is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-28-2007, 12:06 PM   #3 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,788
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
Send a message via Yahoo to Taltos
I took a few minutes to take a look and my first thought is that you may not have your <tr> and <td> tags balanced. It was taking too long to find the problem but that is the first thing I would look at. I usually keep my tags seperate from the content and on a different line so I can match them up easier.

Other than that, it looks like IE is pushing the second column in your innermost table over to the right of
Code:
<H2 style="color: #00FFFF">Metal Injection Molding (MIM) &amp;<BR>Powder Injection Molding (PIM)</H2> <DIV style="padding-right: 0px"><!-- start no right padding for table --> <H3>Place your <A HREF="https://www.e-tungsten.com/query.html">MIM and/or PIM enquiry </A> here.</H3>
I'm not sure why yet unless tags don't balance. The other thing that makes this difficult is the percentages on the widths. I know you had a previous thread on this topic and decided to go the way you have. With % you have to make sure that ALL containing elements have a % width also or the inner ones don't know what width to start from to figure the %.

Hope this makes some sense.
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-28-2007, 12:48 PM   #4 (permalink)
Contributing Member
 
Join Date: 10-06-04
Posts: 96
iTrader: 0 / 0%
Latest Blog:
None

Gr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebody
Send a message via MSN to Gr8Writer
Smile

Quote:
Originally Posted by Taltos View Post
Other than that, it looks like IE is pushing the second column in your innermost table over to the right of
Code:
<H2 style="color: #00FFFF">Metal Injection Molding (MIM) &amp;<BR>Powder Injection Molding (PIM)</H2> <DIV style="padding-right: 0px"><!-- start no right padding for table --> <H3>Place your <A HREF="https://www.e-tungsten.com/query.html">MIM and/or PIM enquiry </A> here.</H3>
Thanks, that did seem to be the problem, but I've worked around it now by putting each caption in its own table cell.

Quote:
With % you have to make sure that ALL containing elements have a % width also or the inner ones don't know what width to start from to figure the %.
What's ironic is that this is exactly what was causing the problem. I took out the width attribute of the innermost table and my problems disappeared.

Thanks for your help, though.
Gr8Writer is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-02-2007, 03:57 PM   #5 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,788
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
Send a message via Yahoo to Taltos
No problem.

FYI...The % issue was probably that you had 100% width in the innermost table but its containing tag didn't have a % width. That made it use 100% of the browser window (sort of) as the width for the innermost table.
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-03-2007, 12:53 AM   #6 (permalink)
Contributing Member
 
Join Date: 10-06-04
Posts: 96
iTrader: 0 / 0%
Latest Blog:
None

Gr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebodyGr8Writer is liked by somebody
Send a message via MSN to Gr8Writer
Quote:
Originally Posted by Taltos View Post
No problem.

FYI...The % issue was probably that you had 100% width in the innermost table but its containing tag didn't have a % width. That made it use 100% of the browser window (sort of) as the width for the innermost table.
Actually the containing tag did have a percentage -- 82%. The whole screen is split into two columns: 18% from the left margin is the navbar and 82% (the right column) is the content area. The content area is also enclosed by a green border created with a DIV tag that utilizes a CSS class.

I want to use 100% of the 82% content area, while keeping the innermost table within the green border. Thus, for the innermost table, I used

Code:
<table border="1" width="100%" cellpadding="0" cellspacing="0">
However, I found that when I did not specify a width for the innermost table, the browser calculated the table width itself and displayed it perfectly in both IE 6 and Firefox 2. Go figure...

Thanks for the reply.
Gr8Writer is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
layout problem white10 Coding Forum 2 06-21-2007 01:20 AM
Layout problem. canadiancray Coding Forum 10 02-26-2007 10:37 AM
problem for slicing the layout tekitouni Web Design Lobby 10 09-09-2006 10:21 PM
CSS / site layout problem DarrenC Coding Forum 1 04-24-2006 05:07 PM
CSS problem - 3 column layout al2six Coding Forum 12 05-22-2004 07:33 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:22 AM.
© Copyright 2008 V7 Inc