473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Table width - table jumps out of its div

Hi,

In my stylesheet I've set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes up the
total amount of width available.

However, in IE the table "jumps" out of it's container and takes over the
div to the right. It appears as though the table is taking up a width of
100% as in 100% of the page size, not the div.

How can I rectify this?

Pictures, thousand words, etc... At the moment I don't have this online but
if you'd like to see the result, I can always put it online somewhere.

Thanks in advance,

Ikke
Nov 1 '06 #1
11 9756
VK

Ikke wrote:
Hi,

In my stylesheet I've set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes up the
total amount of width available.

However, in IE the table "jumps" out of it's container and takes over the
div to the right. It appears as though the table is taking up a width of
100% as in 100% of the page size, not the div.
See
<http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/msg/6c92890f4573c956>

Nov 1 '06 #2
"VK" <sc**********@yahoo.comwrote in
news:11**********************@e64g2000cwd.googlegr oups.com:
>
Ikke wrote:
>Hi,

In my stylesheet I've set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes
up the total amount of width available.

However, in IE the table "jumps" out of it's container and takes over
the div to the right. It appears as though the table is taking up a
width of 100% as in 100% of the page size, not the div.

See
<http://groups.google.com/group/comp....oring.styleshe
ets/msg/6c92890f4573c956>
That is exactly what I'm faced with - a table nested within the div of a
liquid layout... Alas, there is no solution to be found there.

Do you perhaps have a solution or a suggestion?

Thanks,

Ikke
Nov 1 '06 #3
VK
See
<http://groups.google.com/group/comp....oring.styleshe
ets/msg/6c92890f4573c956>

That is exactly what I'm faced with - a table nested within the div of a
liquid layout... Alas, there is no solution to be found there.

Do you perhaps have a solution or a suggestion?
That depends on what kind of layout do you have in your mind. If it's a
centered on the page content area with left and right remainders then I
have a reliable and elegant solution I use often. If it's a classical
three columns layout with content in each column or something more
sophisticated then I'm not a div-layout guru: but someone else may
suggest something. A link or an ASCII sketch would be helpful.

Nov 1 '06 #4

"Ikke" <ik**@hier.bewrote in message
news:Xn************************@195.130.132.70...
Hi,

In my stylesheet I've set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes up the
total amount of width available.

However, in IE the table "jumps" out of it's container and takes over the
div to the right. It appears as though the table is taking up a width of
100% as in 100% of the page size, not the div.

How can I rectify this?

Pictures, thousand words, etc... At the moment I don't have this online
but
if you'd like to see the result, I can always put it online somewhere.

Thanks in advance,

Ikke
change the width value of the table to 98% to compensate for the IE flaw.

Nov 1 '06 #5
"richard" <do*@john.sonwrote in news:ei*********@news2.newsguy.com:
>
"Ikke" <ik**@hier.bewrote in message
news:Xn************************@195.130.132.70...
>Hi,

In my stylesheet I've set the width of a table to 100% - in Opera and
Firefox, the table is placed within the containing div and it takes
up the total amount of width available.

However, in IE the table "jumps" out of it's container and takes over
the div to the right. It appears as though the table is taking up a
width of 100% as in 100% of the page size, not the div.

How can I rectify this?

Pictures, thousand words, etc... At the moment I don't have this
online but
if you'd like to see the result, I can always put it online
somewhere.

Thanks in advance,

Ikke

change the width value of the table to 98% to compensate for the IE
flaw.
How is that going to help? I've just tried it, and all it does is make the
table the suggested 2% less wide - the layout is still messed up...

Thanks anyway,

Ikke
Nov 1 '06 #6
"VK" <sc**********@yahoo.comwrote in
news:11********************@i42g2000cwa.googlegrou ps.com:
See
<http://groups.google.com/group/comp....uthoring.style
she ets/msg/6c92890f4573c956>

That is exactly what I'm faced with - a table nested within the div
of a liquid layout... Alas, there is no solution to be found there.

Do you perhaps have a solution or a suggestion?

That depends on what kind of layout do you have in your mind. If it's
a centered on the page content area with left and right remainders
then I have a reliable and elegant solution I use often. If it's a
classical three columns layout with content in each column or
something more sophisticated then I'm not a div-layout guru: but
someone else may suggest something. A link or an ASCII sketch would be
helpful.
Indeed - I'm going to put an example online in an hour or so...

Thanks,

Ikke
Nov 1 '06 #7
Ikke <ik**@hier.bewrote in news:Xns986EF131EAE2Bikkehierbe@
195.130.132.70:

<snip>
Indeed - I'm going to put an example online in an hour or so...
Here is the link: http://tesinfo.atspace.com/sample.html

Opera and Firefox display this site just as I want them to display it, but
IE messes up the table completely (the table is positioned below the center
and right div, and extends past the entire page).

As I've mentioned in another post, setting the width to 98% did not work
(as I expected).

Thanks for any help,

Ikke
Nov 1 '06 #8
In article <Xn************************@195.130.132.70>,
Ikke <ik**@hier.bewrote:
Ikke <ik**@hier.bewrote in news:Xns986EF131EAE2Bikkehierbe@
195.130.132.70:

<snip>
Indeed - I'm going to put an example online in an hour or so...

Here is the link: http://tesinfo.atspace.com/sample.html

Opera and Firefox display this site just as I want them to display it, but
IE messes up the table completely (the table is positioned below the center
and right div, and extends past the entire page).

As I've mentioned in another post, setting the width to 98% did not work
(as I expected).

Thanks for any help,

Ikke
Have you tried things for IE like

* html table {width:50%}

in your css? Play with the width value.

--
dorayme
Nov 1 '06 #9
VK
Here is the link: http://tesinfo.atspace.com/sample.html
>
Opera and Firefox display this site just as I want them to display it, but
IE messes up the table completely (the table is positioned below the center
and right div, and extends past the entire page).
That is just a guess from my another post, but try to set all
layout-crucial rules (width, float, clear etc) in style attributes of
involved div's. Will it produce any effect?

Nov 1 '06 #10
VK
http://tesinfo.atspace.com/sample.html

Just noticed: before anything else get the prolog (<?xml
version="1.0"?>) out!
It enforces quirk mode on IE plus IE's box model. Before IE box model
is normalized with others further investigations are rather useless.

Nov 1 '06 #11
"VK" <sc**********@yahoo.comwrote in news:1162425514.342529.243200
@h54g2000cwb.googlegroups.com:
>http://tesinfo.atspace.com/sample.html

Just noticed: before anything else get the prolog (<?xml
version="1.0"?>) out!
It enforces quirk mode on IE plus IE's box model. Before IE box model
is normalized with others further investigations are rather useless.
That's done the trick! As soon as I removed the prolog, the table showed up
exactly where I wanted it to, even in IE!!

Thank you very much!

Ikke
Nov 2 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stephen Weatherly | last post by:
Could anyone please help me with a problem I am having with my table widths??? If I have 2 images within a td tag, but using CSS relative positioning I position one over the top of the second (I...
0
by: David & Angela Ehmer | last post by:
I am using a table to display forum posts at http://www.acpchnqld.org.au/forum/forum.php The table is contained in the left column of the page in a div with the following ID #leftcolumn {...
4
by: Alex Meier | last post by:
I have the following problem: I need a simple, tabular layout in a webshop. - left column: navigation column with approx. 170px width - right column: content area the goal: the left column...
11
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
2
by: Earl Teigrob | last post by:
I am dynamically generating pages from images on the server and place each image into a single cell table (which I use to create a border around the image) The problem is that if I do not specify...
5
by: F | last post by:
I have an extra wide table (a couple of screens wide) that I need to set up in a way the table header cells are not wrapped but rather in one straight line. Fixing the table width (or cell...
4
by: bb nicole | last post by:
Below is my coding for the login and ticker. I put both of it in table which width=166 and height=188, but the size of both table was not same, one is wider and one is narrow...My problem now is when...
16
by: Tantale | last post by:
I used this serviec to check my webpage http://www.jmrw.com/Abroad/Barcelone/index.htm Made with Dreamweaver 8. The result is 206 errors, most of them "end tag omitted, but OMITTAG NO was...
1
by: Trap | last post by:
Hi, I am enhancing an website made from others. I want to put a table with this CSS property: ..tooltip table { font-size: 9px; color: black; table-layout: auto; <-------------- useful ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.