|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Problems with cross-browser compatibility! Help needed!!
I'm designing a website for a friend who has just set up their own company. I don't have much HTML experience, but seem to be getting along fine using TextWrangler and HTMLCodeTutorial.com
![]() However, I am having serious problems in cross-browser compatibility. I'm designing the website on my PowerBook, running Safari 2.0.1. Next to me, I have an old iMac running IE5.1.7 (*shudder*) and Mozilla 1.3.1. My friend is (sadly) running Windows 2000 and whatever Internet Explorer versions ships as standard with that. My PowerBook and iMac show exactly the same page layout between the three browsers. However, it is a different story for the PC. Attached are the screenshots from the PC and Safari. The intended output is the mac screenshot, with the vertical black line and the navigation buttons butted up close to each other. For reference, the buttons change on mouseover. I believe this works on the PC, as I tried the mouseover code out on the PC in question on another site I deisgned. As you can see, the PC is refusing to show the vertical line on the right of the buttons, and the buttons are spaced out far too much. Below is the appropriate HTML code, with some parts removed to save space in the thread This is the code I wrote in TextWrangler and tested it on 3 Mac browsers.Code:
<body>
<!-- Logo banner bar -->
<center>
<table width=100% cellpadding=10>
<tr>
<td valign=center colspan=2><img src="images/logo.jpg" alt="Logo"></td>
<td valign=center><img src="images/title_strapline.jpg" alt="Title and strapline"></td>
</tr>
<tr>
<td colspan=3><img src="images/horiz_line.jpg" width="100%" height=2 alt="-----"></td>
</tr>
<!-- End banner bar -->
<br>
<br>
<tr valign=top>
<!-- buttons -->
<td>
<img src="images/buttons/home_on.jpg" name="home" border=0 alt="Home button"</img>
<br>
<a href="pages/who.html"
onMouseOver = "rollover('who')"
onMouseOut = "rollout('who')"
><img src="images/buttons/who_off.jpg" name="who" border=0 alt="Who We Are button"></a>
<br>
[all the other navigation buttons]
</td>
<!-- end buttons -->
<td><img src="images/vert_line.jpg" height="100%" width=2 alt="-----"></td>
<!-- main body -->
<td>
<span class="welcomehead">
<center>Welcome<br><br></center></span>
<span class="welcome">
[body text].<br><br><br><br></span>
<span class="footnote">
Please note: this website is currently under construction and none of the links in the button bar work.</span>
</td>
</tr>
</table>
The vertical line is a 1 pixel tall, 2 pixel wide JPEG file. The horizontal line is a 2 pixel wide, 1 pixel tall JPEG file. How can I make this so as it appears correctly (like the Mac screenshot) on the Windows computer? Thanks for the help ![]() Edit: All three computers have different screen resolutions - if this affects things! (can't see why it should space everything out and make a line disappear though) Also, the stypes in <span...> are in an external CSS file. Last edited by thomasp; Sep 18, 2005 at 03:26 PM. Reason: Correcting sizes on line graphics |
|
|
|
0
|
|
|
#2 |
|
Have you run it through a W3C Validator?
__________________
"Simplicity is the ultimate sophistication." |
|
|
|
0
|
|
|
#3 |
|
In my experience this is all too common: a page works perfectly on any browser other than IE for Windows (or possibly Netscape 4 or earlier). It may not be an issue with validation...it may not be something you can easily solve without scrapping your design for something that works on IE for Windows.
My initial thought is that IE is spacing out the navigation bar because of the text in your third column. A possible (though a bit complicated) way around this may be to have your navigation bar in one table, the body in another table and possibly put the two of those in a table (one cell) that encompasses the entire page. Example (sorry for the crude ASCII): ---------------- <--Page or page-size table |------ -------| ||Navi ||Body || ||Table||Table|| |------ -------| |---------------| For the vertical line, you may want to try adding another column to the Nav Table and having the vertical line be the background image of the table.
__________________
Before a brilliant person begins something great, they must look foolish in the crowd. QS02 800MHz G4 + 768 RAM + 300 GB HD + NVidia GeForce4 MX 2G 10 GB iPod + 512 shuffle last.fm + music mobs + itunes registry Last edited by Whyren; Sep 15, 2005 at 01:44 PM. |
|
|
|
0
|
|
|
#4 | |
|
Quote:
No doctype (not sure about this one - I'm an amateur web designer) The next one: Code:
<!-- Logo banner bar --> <center> <table width=100% cellpadding=10> <tr> The validator shows I didn't put "'s around the '100%' - is this likely to cause problems with IE on PC? Next: Code:
<td valign=center colspan=2><img src="images/logo.jpg" alt="Logo"></td> Next: Code:
</tr> <!-- End banner bar --> <br> <br> <tr valign=top> Next: Code:
<!-- buttons --> <td> <img src="images/buttons/home_on.jpg" name="home" border=0 alt="Home button"</img> <br> Finally: Code:
<!-- main body --> <td> <span class="welcomehead"> <center>Welcome<br><br></center></span> I might try making these changes (and if anyone else has suggestions!), and see if it comes up any better on the PC. Thanks for the help!
|
||
|
|
0
|
|
|
#5 | |||||||
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
What was the validator complaint?Quote:
If you write to standard though, most browsers will render simple stuff well enough to work w/out any additional mods or whatever.
__________________
"Simplicity is the ultimate sophistication." |
||||||||
|
|
0
|
|
|
#6 | |||
|
Quote:
The validator complaint was: Quote:
Quote:
![]() Thanks for the help so far
|
||||
|
|
0
|
|
|
#7 |
|
IE6 is still refusing to show that vertical line
and it's still spreading the buttons out ![]() FireFox on PC manages to show the page correctly though ![]() Oh well, back to the drawing board, I guess. |
|
|
|
0
|
|
|
#8 |
|
That is the toughest part about being a designer now a days. Before it was IE and nothing else. It was great! But not the case anymore. Unfortuantly it still carries most of the market share, so it's the most important, so I'd make sure it works in IE PC.
Good luck.
__________________
C H I C O W E B D E S I G N
C H I C O H O S T I N G Content Management Solutions - M A V I E O Design Studio |
|
|
|
0
|
|
|
#9 |
|
You say the vertical line graphic is 3 px wide but in your code you have width = 2
Put the nav buttons into their own table within the large table cell. |
|
|
|
0
|
|
|
#10 | |
|
Quote:
Currently, I've bodged the site by manually entering the height for each page. This is not ideal, as it doesn't look right on big monitors. I'll try to find a better solution when I've got a bit more time
|
||
|
|
0
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Applecare+ help help help!!!! | Hpye | iPhone | 13 | Oct 21, 2011 10:24 PM |
| Problems with Migration Assistant - Need Help Please!! | wez99950 | Mac Basics and Help | 1 | Oct 1, 2009 05:50 PM |
| Mac Book and external iomega hard drive...problem with saving music...help needed. | Polly Pod | MacBook | 2 | Feb 9, 2009 08:45 AM |
| Cousin calling me with problems with his mac, help? | tennismanclay | Mac OS X | 4 | Jan 29, 2009 07:14 PM |
| Safari problem w/ .dmg files, help needed. | kewp04 | Mac Applications and Mac App Store | 2 | Sep 10, 2004 12:02 PM |
All times are GMT -5. The time now is 01:15 PM.




This is the code I wrote in TextWrangler and tested it on 3 Mac browsers.

and it's still spreading the buttons out 
Linear Mode

