PC Review


Reply
Thread Tools Rate Thread

Can you see what is wrong with my code please?

 
 
Don
Guest
Posts: n/a
 
      13th Dec 2006
I am very new to this HTML lark and am on the verge of giving up. I had
hoped Frontpage would be the answer to my dreams but now I don't feel so
certain.

The problem I am seeing is, that although the table is defined at 200px wide
and the image is also specified to be 200px wide the image is pushing the
table out to 202px.

I have tried setting the image at 198 but then of course the picture is less
than the cell above it. I want the coloured cell above the picture to be
the same width as the picture.

I have no idea what I am doing wrong and have had no luck Googling for an
answer.

Please could anyone advise me what is going on? I really hope so.

Thanks for looking.

Don


 
Reply With Quote
 
 
 
 
Don
Guest
Posts: n/a
 
      13th Dec 2006

"Don" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am very new to this HTML lark and am on the verge of giving up. I had
>hoped Frontpage would be the answer to my dreams but now I don't feel so
>certain.
>
> The problem I am seeing is, that although the table is defined at 200px
> wide and the image is also specified to be 200px wide the image is pushing
> the table out to 202px.
>
> I have tried setting the image at 198 but then of course the picture is
> less than the cell above it. I want the coloured cell above the picture
> to be the same width as the picture.
>
> I have no idea what I am doing wrong and have had no luck Googling for an
> answer.
>
> Please could anyone advise me what is going on? I really hope so.
>
> Thanks for looking.
>
> Don


<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This would just be an informatio</title>
</head>
<body>

<div align="center">
<table border="0" cellpadding="0" width="200">
<tr>
<td valign="top"><table >
<tr>
<td width="100%" height="15" bgcolor="#FDB200" >This would just be an
information pane and this text is only here for filling the box so that it
will not be empty.</td>
</tr>
<tr>
<td width="100%" height="15">
<img border="0" src="images/pumpkin.jpg" width="200" height="150"
hspace="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>

</body>
</html>


 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      13th Dec 2006
Can your provide a URL to this page?

Make sure that all table / cell padding is set to zero, as well as making sure the image doesn't
have any background blending borders.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Don" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I am very new to this HTML lark and am on the verge of giving up. I had hoped Frontpage would be
>the answer to my dreams but now I don't feel so certain.
>
> The problem I am seeing is, that although the table is defined at 200px wide and the image is also
> specified to be 200px wide the image is pushing the table out to 202px.
>
> I have tried setting the image at 198 but then of course the picture is less than the cell above
> it. I want the coloured cell above the picture to be the same width as the picture.
>
> I have no idea what I am doing wrong and have had no luck Googling for an answer.
>
> Please could anyone advise me what is going on? I really hope so.
>
> Thanks for looking.
>
> Don
>



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      13th Dec 2006
<table border="0" cellpadding="0" width="200">

should be -

<table border="0" cellpadding="0" cellspacing="0" width="200">

If you don't specify all three of the cell attributes, you get the default
for the one that's missing.

--
Murray
--------------
MVP FrontPage


"Don" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Don" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I am very new to this HTML lark and am on the verge of giving up. I had
>>hoped Frontpage would be the answer to my dreams but now I don't feel so
>>certain.
>>
>> The problem I am seeing is, that although the table is defined at 200px
>> wide and the image is also specified to be 200px wide the image is
>> pushing the table out to 202px.
>>
>> I have tried setting the image at 198 but then of course the picture is
>> less than the cell above it. I want the coloured cell above the picture
>> to be the same width as the picture.
>>
>> I have no idea what I am doing wrong and have had no luck Googling for an
>> answer.
>>
>> Please could anyone advise me what is going on? I really hope so.
>>
>> Thanks for looking.
>>
>> Don

>
> <html>
> <head>
> <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>This would just be an informatio</title>
> </head>
> <body>
>
> <div align="center">
> <table border="0" cellpadding="0" width="200">
> <tr>
> <td valign="top"><table >
> <tr>
> <td width="100%" height="15" bgcolor="#FDB200" >This would just be an
> information pane and this text is only here for filling the box so that it
> will not be empty.</td>
> </tr>
> <tr>
> <td width="100%" height="15">
> <img border="0" src="images/pumpkin.jpg" width="200" height="150"
> hspace="0"></td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
> </div>
>
> </body>
> </html>
>



 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      13th Dec 2006

"Murray" <(E-Mail Removed)> wrote in message
news:%23LKzo$(E-Mail Removed)...
> <table border="0" cellpadding="0" width="200">
>
> should be -
>
> <table border="0" cellpadding="0" cellspacing="0" width="200">
>
> If you don't specify all three of the cell attributes, you get the default
> for the one that's missing.
>


Sadly that did not work Murray. I now have the following code but the table
is still pushed out by 2px.



<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This would just be an informatio</title>
</head>
<body>

<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="200">

<tr>
<td valign="top"><table >
<tr>
<td width="100%" height="15" bgcolor="#FDB200" >This would just be
an information pane and this text is only here for filling
the box so that it will not be empty.</td>
</tr>
<tr>
<td width="100%" height="15">
<img border="0" src="images/pumpkin.jpg" width="200" height="150"
hspace="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>

</body>
</html>


 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      13th Dec 2006

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can your provide a URL to this page?
>
> Make sure that all table / cell padding is set to zero, as well as making
> sure the image doesn't have any background blending borders.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================


Thank you Thomas.

Please look at:

http://81.179.168.184/



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      13th Dec 2006
And what is this?

<td valign="top"><table >
------------------------^^^^^^^

Chopped liver? 8)

--
Murray
--------------
MVP FrontPage


"Don" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
>
> "Murray" <(E-Mail Removed)> wrote in message
> news:%23LKzo$(E-Mail Removed)...
>> <table border="0" cellpadding="0" width="200">
>>
>> should be -
>>
>> <table border="0" cellpadding="0" cellspacing="0" width="200">
>>
>> If you don't specify all three of the cell attributes, you get the
>> default for the one that's missing.
>>

>
> Sadly that did not work Murray. I now have the following code but the
> table is still pushed out by 2px.
>
>
>
> <html>
> <head>
> <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
> <meta name="ProgId" content="FrontPage.Editor.Document">
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>This would just be an informatio</title>
> </head>
> <body>
>
> <div align="center">
> <table border="0" cellpadding="0" cellspacing="0" width="200">
>
> <tr>
> <td valign="top"><table >
> <tr>
> <td width="100%" height="15" bgcolor="#FDB200" >This would just be
> an information pane and this text is only here for filling
> the box so that it will not be empty.</td>
> </tr>
> <tr>
> <td width="100%" height="15">
> <img border="0" src="images/pumpkin.jpg" width="200" height="150"
> hspace="0"></td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
> </div>
>
> </body>
> </html>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      13th Dec 2006
Try:

<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This would just be an informatio</title>
</head>
<body>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td valign="top"><table>
<tr>
<td width="100%" height="15" bgcolor="#FDB200" >This would just be
an information pane and this text is only here for filling
the box so that it will not be empty.</td>
</tr>
<tr>
<td width="100%"><img border="0" src="images/pumpkin.jpg" width="200" height="150"></td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Don" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>> Can your provide a URL to this page?
>>
>> Make sure that all table / cell padding is set to zero, as well as making sure the image doesn't
>> have any background blending borders.
>>
>> --
>> ==============================================
>> Thomas A. Rowe
>> Microsoft MVP - FrontPage
>>
>> http://www.Ecom-Data.com
>> ==============================================

>
> Thank you Thomas.
>
> Please look at:
>
> http://81.179.168.184/
>
>
>



 
Reply With Quote
 
Tom Willett
Guest
Posts: n/a
 
      13th Dec 2006
Your cell is specified in %, not Pixels.
Your table has no specifications set.
--
===
Tom Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
===
"Don" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
|
| "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
| > Can your provide a URL to this page?
| >
| > Make sure that all table / cell padding is set to zero, as well as
making
| > sure the image doesn't have any background blending borders.
| >
| > --
| > ==============================================
| > Thomas A. Rowe
| > Microsoft MVP - FrontPage
| >
| > http://www.Ecom-Data.com
| > ==============================================
|
| Thank you Thomas.
|
| Please look at:
|
| http://81.179.168.184/
|
|
|


 
Reply With Quote
 
Don
Guest
Posts: n/a
 
      13th Dec 2006

"Tom Willett" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Your cell is specified in %, not Pixels.
> Your table has no specifications set.
> --
> ===
> Tom Willett
> Microsoft MVP - FrontPage
> ---
> FrontPage Support:
> http://www.frontpagemvps.com/
> ===


I am not clear why the % bit would make a difference to my problem as it
only defines that the cell must stretch for the entire width of the table
IIUC.

Have I misunderstood this please Tom?

Don


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong syntax when I try to set Javascript code in C# Code Behind. mesut Microsoft C# .NET 5 30th Jul 2008 10:22 AM
can some tell me what's wrong with this code? BRC Microsoft Access Form Coding 6 28th Jun 2007 11:19 PM
HREF ASP code problem - what's wrong with this code.... =?Utf-8?B?TWljaw==?= Microsoft Frontpage 3 14th Nov 2005 01:53 PM
Re: what is wrong with this code =?Utf-8?B?TWlrZQ==?= Microsoft ASP .NET 0 16th Sep 2004 09:13 PM
If IsNull Check Number Stop Code, What is wrong with this code ? Dave Elliott Microsoft Access Forms 1 21st Dec 2003 03:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:04 PM.