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.
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.
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.