Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Problem with "table" inside "p"

Reply
Thread Tools

Problem with "table" inside "p"

 
 
sevillad
Guest
Posts: n/a
 
      09-05-2007
Hello,

I've put a couple of tables inside a "p" element, and I get an
unexpected space between the line before the table and the table
itself. I added a black border around the "p" and I'm surprised to see
(in FF2) that the table isn't included! If I switch to IE6 it works
well. Why would this be? The test page is in

www.davidsevilla.com/test1.html

Thanks a lot,

David

 
Reply With Quote
 
 
 
 
Michael Fesser
Guest
Posts: n/a
 
      09-05-2007
..oO(sevillad)

>I've put a couple of tables inside a "p" element


Invalid markup. A paragraph can't contain anything but inline elements.

>and I get an
>unexpected space between the line before the table and the table
>itself. I added a black border around the "p" and I'm surprised to see
>(in FF2) that the table isn't included!


Correct. The browser will implicitly close the paragraph (whose end tag
is optional), before starting the table. You'll also get a validator
warning about an "end tag for element "P" which is not open".

Micha
 
Reply With Quote
 
 
 
 
Martin Jay
Guest
Posts: n/a
 
      09-05-2007
On Wed, 05 Sep 2007 14:09:47 -0000, sevillad <>
wrote:
>I've put a couple of tables inside a "p" element, and I get an
>unexpected space between the line before the table and the table
>itself. I added a black border around the "p" and I'm surprised to see
>(in FF2) that the table isn't included! If I switch to IE6 it works
>well. Why would this be? The test page is in
>
>www.davidsevilla.com/test1.html


Tables should not be put inside paragraphs, so your markup is invalid.

Presumably, Firefox is automatically closing the <p> block element
when the new table element begins. This is expected behaviour, and as
I understand it, this is correct.

On the other hand IE6 makes a wrong guess, which just happens to
coincide with what you want.
--
Martin Jay
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      09-06-2007
Well bust mah britches and call me cheeky, on Wed, 05 Sep 2007 14:09:47 GMT
sevillad scribed:

> I've put a couple of tables inside a "p" element, and I get an
> unexpected space between the line before the table and the table
> itself. I added a black border around the "p" and I'm surprised to see
> (in FF2) that the table isn't included! If I switch to IE6 it works
> well. Why would this be? The test page is in
>
> www.davidsevilla.com/test1.html


Are you the guy with the talking chipmunks?

--
Neredbojias
Half lies are worth twice as much as whole lies.
 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      09-06-2007
Neredbojias wrote:
> Well bust mah britches and call me cheeky, on Wed, 05 Sep 2007
> 14:09:47 GMT sevillad scribed:
>
>> I've put a couple of tables inside a "p" element, and I get an
>> unexpected space between the line before the table and the table
>> itself. I added a black border around the "p" and I'm surprised to
>> see (in FF2) that the table isn't included! If I switch to IE6 it
>> works well. Why would this be? The test page is in
>>
>> www.davidsevilla.com/test1.html

>
> Are you the guy with the talking chipmunks?


I can never remember elements are allowed in (or required to be in)
other elements. While I know HTML Help gets knocked about in here, one
thing I like about their entries for elements is their concise Contents
and Contained In lists.

http://htmlhelp.com/reference/html40/block/pre.html


--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
 
Reply With Quote
 
Harlan Messinger
Guest
Posts: n/a
 
      09-06-2007
Neredbojias wrote:
> Well bust mah britches and call me cheeky, on Wed, 05 Sep 2007 14:09:47 GMT
> sevillad scribed:
>
>> I've put a couple of tables inside a "p" element, and I get an
>> unexpected space between the line before the table and the table
>> itself. I added a black border around the "p" and I'm surprised to see
>> (in FF2) that the table isn't included! If I switch to IE6 it works
>> well. Why would this be? The test page is in
>>
>> www.davidsevilla.com/test1.html

>
> Are you the guy with the talking chipmunks?
>

No doubt he's here to promote their new film.
 
Reply With Quote
 
sevillad
Guest
Posts: n/a
 
      09-06-2007
Hi,

> >www.davidsevilla.com/test1.html

>
> Are you the guy with the talking chipmunks?


No. I wish I was.

> --
> Neredbojias
> Half lies are worth twice as much as whole lies.


David

 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      09-06-2007
Harlan Messinger wrote:
> Neredbojias wrote:
>> Well bust mah britches and call me cheeky, on Wed, 05 Sep 2007 14:09:47 GMT
>> sevillad scribed:
>>
>>> I've put a couple of tables inside a "p" element, and I get an
>>> unexpected space between the line before the table and the table
>>> itself. I added a black border around the "p" and I'm surprised to see
>>> (in FF2) that the table isn't included! If I switch to IE6 it works
>>> well. Why would this be? The test page is in
>>>
>>> www.davidsevilla.com/test1.html

>>
>> Are you the guy with the talking chipmunks?
>>

> No doubt he's here to promote their new film.


"When Good Chipmunks Go Bad" - TOO HOT FOR TV!

Operators are standing around.


--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
 
Reply With Quote
 
John Hosking
Guest
Posts: n/a
 
      09-06-2007
Blinky the Shark wrote:
> Harlan Messinger wrote:
>> Neredbojias wrote:


>>> Are you the guy with the talking chipmunks?
>>>

>> No doubt he's here to promote their new film.

>
> "When Good Chipmunks Go Bad" - TOO HOT FOR TV!
>
> Operators are standing around.


Sadly, it's much, much worse than that:
http://www.imdb.com/title/tt0952640/

--
John
Pondering the value of the UIP: http://improve-usenet.org/
 
Reply With Quote
 
Blinky the Shark
Guest
Posts: n/a
 
      09-06-2007
John Hosking wrote:
> Blinky the Shark wrote:
>> Harlan Messinger wrote:
>>> Neredbojias wrote:

>
>>>> Are you the guy with the talking chipmunks?
>>>>
>>> No doubt he's here to promote their new film.

>>
>> "When Good Chipmunks Go Bad" - TOO HOT FOR TV!
>>
>> Operators are standing around.

>
> Sadly, it's much, much worse than that:
> http://www.imdb.com/title/tt0952640/


Damn. It's sure fulla good looking women.


--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Configuring an inside nat group on inside interface jaalcock@gmail.com Cisco 2 04-11-2006 02:16 AM
inside-outside-inside issue on PIX 506E Dan Rice Cisco 9 02-04-2005 12:04 AM
Problem with inside to inside traffic after upgrading PIX 515 Cisco 5 06-15-2004 06:34 AM
Dynamic temp. datagrid col.gen. -Session access inside a class inside a UserCtrl Andy Eshtry ASP .Net 0 03-01-2004 11:48 PM
adding a variable inside a hyperlink template (inside a datalist) Dave ASP .Net 0 08-29-2003 08:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57