Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > TABLE within DIV Issue

Reply
Thread Tools

TABLE within DIV Issue

 
 
Rob
Guest
Posts: n/a
 
      02-06-2007
I am having problems trying to get a web page to work in IE 6. It
works fine in firefox, opera, and newer versions of IE, but not in
IE6.

I am not very familiar with CSS, but I don't see why this shouldn't
work. There is a table inside a <DIV> section which should appear
directly below text, but when IE6 is used, the table is pushed down
and white space is created. This is because of a <DIV> on the left
column, which seems to be determining the start point of the table. I
really don't understand why this particular browser version decides to
make a gap there, or how it can be fixed.

it is a standard table....
<TABLE width=100%>
<TR><TD wid......

within a
<div id="content">
tag.

so I don't see why the position of the table should be determined by a
<DIV> tag outside of the one it's in. If anyone has IE6 or older, the
problem can be seen on the page:

http://www.brick-soton.ac.uk/team.asp


Does anybody have any ideas? Any help would be very much
appreciated

Cheers

Rob

 
Reply With Quote
 
 
 
 
cwdjrxyz
Guest
Posts: n/a
 
      02-06-2007
On Feb 6, 2:31 pm, "Rob" <rdw...@soton.ac.uk> wrote:
> I am having problems trying to get a web page to work in IE 6. It
> works fine in firefox, opera, and newer versions of IE, but not in
> IE6.
>
> I am not very familiar with CSS, but I don't see why this shouldn't
> work. There is a table inside a <DIV> section which should appear
> directly below text, but when IE6 is used, the table is pushed down
> and white space is created. This is because of a <DIV> on the left
> column, which seems to be determining the start point of the table. I
> really don't understand why this particular browser version decides to
> make a gap there, or how it can be fixed.
>
> it is a standard table....
> <TABLE width=100%>
> <TR><TD wid......
>
> within a
> <div id="content">
> tag.
>
> so I don't see why the position of the table should be determined by a
> <DIV> tag outside of the one it's in. If anyone has IE6 or older, the
> problem can be seen on the page:
>
> http://www.brick-soton.ac.uk/team.asp
>
> Does anybody have any ideas? Any help would be very much
> appreciated


I got a message that the server is not found on three trys to connect.
Perhaps this is just a temporary problem, but you might wish to check.


 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      02-06-2007
cwdjrxyz wrote:

> On Feb 6, 2:31 pm, "Rob" <rdw...@soton.ac.uk> wrote:
>> I am having problems trying to get a web page to work in IE 6. It
>> works fine in firefox, opera, and newer versions of IE, but not in
>> IE6. ...
>> <snip>
>> so I don't see why the position of the table should be determined by a
>> <DIV> tag outside of the one it's in. If anyone has IE6 or older, the
>> problem can be seen on the page:
>>
>> http://www.brick-soton.ac.uk/team.asp
>>
>> Does anybody have any ideas? Any help would be very much
>> appreciated

>
> I got a message that the server is not found on three trys to connect.
> Perhaps this is just a temporary problem, but you might wish to check.


Perhaps: http://www.brick-soton.co.uk/team.asp
is the correct URL ?

I would guess the problem with IE6 is caused by the errors on the page,
knowing that IE has its own set of rules.

<http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.brick-soton.co.uk%2Fteam.asp>
"Failed validation, 422 errors"

Once the errors are corrected, which may fix the problem, then let's
look again.

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
Rob
Guest
Posts: n/a
 
      02-06-2007
On 6 Feb, 22:37, "Beauregard T. Shagnasty"
<a.nony.m...@example.invalid> wrote:
> cwdjrxyz wrote:
> > On Feb 6, 2:31 pm, "Rob" <rdw...@soton.ac.uk> wrote:
> >> I am having problems trying to get a web page to work in IE 6. It
> >> works fine in firefox, opera, and newer versions of IE, but not in
> >> IE6. ...
> >> <snip>
> >> so I don't see why the position of the table should be determined by a
> >> <DIV> tag outside of the one it's in. If anyone has IE6 or older, the
> >> problem can be seen on the page:

>
> >>http://www.brick-soton.ac.uk/team.asp

>
> >> Does anybody have any ideas? Any help would be very much
> >> appreciated

>
> > I got a message that the server is not found on three trys to connect.
> > Perhaps this is just a temporary problem, but you might wish to check.

>
> Perhaps: http://www.brick-soton.co.uk/team.asp
> is the correct URL ?
>
> I would guess the problem with IE6 is caused by the errors on the page,
> knowing that IE has its own set of rules.
>
> <http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.brick-so...>
> "Failed validation, 422 errors"
>
> Once the errors are corrected, which may fix the problem, then let's
> look again.
>
> --
> -bts
> -Motorcycles defy gravity; cars just suck



sorry, yeah it is http://www.brick-soton.co.uk/team.as

my mistake. The 422 errors are all because of simple HTML?! have I
used the wrong Doctype or something?

Thanks for the help so far!

 
Reply With Quote
 
Ed Seedhouse
Guest
Posts: n/a
 
      02-06-2007
On 6 Feb 2007 14:57:14 -0800, "Rob" <> wrote:


>sorry, yeah it is http://www.brick-soton.co.uk/team.as


Um, no it's at http://www.brick-soton.co.uk/team.asp

Do you ever check what you write?

>my mistake. The 422 errors are all because of simple HTML?!


No, because of over-complicated messy html. Probably done with some
ugly "What you see is what you get" editor, perpaps Word or some other
Office applicationsjudging by the classname of the table.


>have I
>used the wrong Doctype or something?


Yes, but that isn't the cause of the problems. CSS rules are *defined*
for *valid* html or xhtml. If you don't give it that, and you aren't
even close, you have no basis for complaint about the results in any
browser.

You should not be using the transitional doctype, you should be using
strict, probably html 4.01 strict. Forget about xhtml.

In either case, writing valid html or xhtml is not just an important
skill, it is absolutely vital. If you can't undertake to learn to do
that forget about designing web pages.

 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      02-06-2007
Rob wrote:

> On 6 Feb, 22:37, "Beauregard T. Shagnasty"
> <a.nony.m...@example.invalid> wrote:
>> <http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.brick-so...>
>> "Failed validation, 422 errors"
>>
>> Once the errors are corrected, which may fix the problem, then let's
>> look again.

>
> sorry, yeah it is http://www.brick-soton.co.uk/team.as[p] <-- p
>
> my mistake. The 422 errors are all because of simple HTML?! have I
> used the wrong Doctype or something?


No, not really.

You are using XHTML 1.0 Transitional. New pages should be Strict,
though, as you aren't transitioning from anything. However, it doesn't
matter which doctype is used, there are still many, many errors.

I would recommend that your new documents be HTML 4.01 Strict.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

XHTML requires all tags to be in lower-case, but it is good policy (at
least I think so) to use lower-case all the time.

One of the first things I noticed was a <style> block in the <body>
instead of on the <head>. Browsers would be free to ignore it if they so
chose. It should also start with:

<style type="text/css">

<P><B>30/01/07: </B> should be: <p><strong>30/01/07: </strong>
<I>Travel Representative</I> -> <em>Travel Representative</em>

There is text not in any container; the following should be in a <p>:
"Meet the team of BRICK India '07! ..."

...and so on. You have a large conglomeration of 1999 code mixed with
1995 code. It would be difficult to list everything here in a post.

How are you writing this? Some Microsoft product?

--
-bts
-Motorcycles defy gravity; cars just suck
 
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
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM
div within div Tom HTML 10 01-15-2005 07:29 PM
Block DIV within a block DIV? Noozer HTML 3 01-06-2005 10:24 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