HTML Help needed

fiveub's Slave
Associate
Joined
1 Sep 2007
Posts
1,461
Location
OcUK HQ
I have two questions..

Firstly, ive made a simple webpage but it is spaced for some reason in IE but not in firefox.

hu.png


Why is this?
_________________________________________________________________________________________________________________________________________________

My other question is how do i get two lines around my content box?

huu.png


Code:
<html>
<body>
<!--[if IE]>
<script language="JavaScript" type="text/javascript">
  alert("It appears you are using Internet Explorer, this website is best viewed in Mozilla Firefox.");
</script>
<![endif]--> 
<center>
<table width="760px" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="images\banner.png"/></td>
</tr>
<tr>
<td width="196px"><img src="images\buttons\button_home.png"/>
</td>
<td width="564px">
<font face="arial">Content goes here</font></td>
</tr >
<tr>
<td width="196px"><img src="images\buttons\button_planning.png"/>
</td >
<tr>
<td width="196px"><img src="images\buttons\button_logo.png"/>
</td>
<tr>
<td width="196px"><img src="images\buttons\button_flyer.png"/>
</td>
<tr>
<td width="196px"><img src="images\buttons\button_banner.png"/>
</td>
<tr>
<td width="196px"><img src="images\buttons\button_wristband.png"/>
</td>
<tr>
<td width="196px"><img src="images\buttons\button_cdcase.png"/>
</td>
<tr>
<td width="196px"><img src="images\buttons\button_digitalposter.png"/>
</td>
<tr>
<td  colspan="2"><br><center>
<HR WIDTH="50%" SIZE="3" NOSHADE>
<font face="arial">Copyright 2007 - Ben Davies<br>This website is best viewed in Firefox</font></center></td>
</tr>
</table>
</center>
</body>
</html>
 
Tables are for the displaying fo tabular data not for site layouts, google for some CSS layout scheme help.

As for why IE is displaying the whitespace, if you were to remove all the carridge returns from your source I'd put money on it displaying 'correctly', but again, use CSS for the layout not tables.
 
Tables are for the displaying fo tabular data not for site layouts, google for some CSS layout scheme help.

As for why IE is displaying the whitespace, if you were to remove all the carridge returns from your source I'd put money on it displaying 'correctly', but again, use CSS for the layout not tables.

Ive been told not to run before i can walk. Somone told me to learn tables first.. :confused:
 
Ive been told not to run before i can walk. Somone told me to learn tables first.. :confused:

That person was certainly wrong. Read up on CSS, it's really not that difficult to learn.

Also, your IE alert is really in poor taste. Nobody who wishes to be taken seriously these days would use it. They'd just design a site that works in both.


Give it a go. If you have any troubles or need help, there are plenty of people here would be more than happy to help/give advice.
 
Back
Top Bottom