473,383 Members | 1,733 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,383 software developers and data experts.

Table Max-Width

Hi guys,

For some reason, max-width isn't working on my computer. It's probably
a minor syntax error on my part, but I just want to be sure.

I'm running IE 6.0.2800.1106 SP1, my resolution is set to 1152x864,
and the browser is maximized. In an external CSS file, I have:

table { max-width: 1024px }

In the HTML, I have:

<table cellpadding="5" width="100%">
The file is being called correctly, since all of my other CSS is
working properly, but when I look at the page in my higher resolution,
it's still at 100%. Am I missing something?

TIA,

Mike
Jul 20 '05 #1
5 26432
Mike wrote:
For some reason, max-width isn't working on my computer. It's probably
a minor syntax error on my part, but I just want to be sure.

I'm running IE 6.0.2800.1106 SP1,
Internet Explorer doesn't support max-width.
table { max-width: 1024px }
<table cellpadding="5" width="100%">


What are browsers suppose to do when the specified width and the max-width
conflict?

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
> The file is being called correctly, since all of my other CSS is
working properly, but when I look at the page in my higher resolution, it's still at 100%. Am I missing something?


-ish.

The min- and max- width and heights don't work in Internet Explorer.
Check in something like Opera or Mozilla Firebird and you could find
you have done your bit ok.

Andrew Clover has a JavaScript
(http://www.doxdesk.com/software/js/minmax.html) to fudge around this
transparently for IE5+ on Windows which may help, depending on your
particular requirements.
Jul 20 '05 #3
> The min- and max- width and heights don't work in Internet Explorer.
Check in something like Opera or Mozilla Firebird and you could find
you have done your bit ok.

Andrew Clover has a JavaScript
(http://www.doxdesk.com/software/js/minmax.html) to fudge around this
transparently for IE5+ on Windows which may help, depending on your
particular requirements.

Thanks a lot, Graham, I'm checking that out now. Didn't realize that
it didn't work with IE, I though that 6.0 was supposed to support it.

David had asked:
What are browsers suppose to do when the specified width and the max-width

conflict?
My thought there was that it would be at 100% unless the visitors
resolution was set higher than 1024x768, at which point it would be
set at 1024. Was this not right? I've never actually seen it work,
being an IE user, so I don't know if I've created errors or what.

Thanks again,

Mike
Jul 20 '05 #4
In article David Dorward wrote:
Mike wrote:
For some reason, max-width isn't working on my computer. It's probably
Internet Explorer doesn't support max-width.
table { max-width: 1024px }
<table cellpadding="5" width="100%">


What are browsers suppose to do when the specified width and the max-width
conflict?


There can't be conflict:
http://www.w3.org/TR/CSS2/visudet.html#min-max-widths
http://www.w3.org/TR/CSS21/visudet.html#min-max-widths
|Applies to: all elements except non-replaced inline elements and
| table elements
^^^^^

(but IIRC, Opera implements max-width on table as if it would be
container width, and tries to fit table in that space, if that is
possible. Makes sence...)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #5
> Thanks a lot, Graham, I'm checking that out now. Didn't realize that
it didn't work with IE, I though that 6.0 was supposed to support it.

I only knew because I was caught out with min-width not so long ago.
I'd definitely recommend getting another browser to give you a second
opinion on your pages as otherwise you may be writing pages that only
work because of IE bugs or only fail because of IE bugs. Not that IE
has a monopoly on bugs.
My thought there was that it would be at 100% unless the visitors
resolution was set higher than 1024x768, at which point it would be
set at 1024. Was this not right?


Yes, but said with a bit of hand waving and a slight gritting of
teeth.

That is to say you do of course have to allow for the actual size of
the browser windows and any borders and scroll bars they may have, and
then consider the web page itself and if you have any margin or
padding on the body element (there may be some by default) and of
course any width, padding or margin on any other element that the
table would be inside. There may also be issues with the size of the
table cells if they are not consistent with the table size which means
something has to give. However yes there should be a point at which
the table width will be set at 1024 and not get any wider.

Jul 20 '05 #6

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

Similar topics

1
by: Renie83 | last post by:
Hi all, I was wondering if anyone has any ideas on how I would go about this task. What I have is a html table which is populated from 2 different sql tables. The first table contains values of...
6
by: Jason | last post by:
I need to populate a table from several sources of raw data. For a given security (stock) it is possible to only receive PARTS of information from each of the different sources. It is also...
5
by: kevinjouco | last post by:
Hello Have searched the group for a solution to the following problem without success: Table 1 has Ref No (No Duplicates) & Min Max Value Fields ie Ref No 1 Min 1 Max 10 Ref No 2 Min 11 Max...
7
by: slitvinov | last post by:
I am learning Relax NG. The problem is that I cannot figure out how to make a schema for a table. In my case I would like to make a table with any name of child elements (columns) but columns...
20
by: p175 | last post by:
Hi people, I have a stored procedure that creates many Global temporary session tables. Into each of these tables go the results of various processing using relational division all keyed and...
3
by: JHNielson | last post by:
I am not new to Access, but am new to the level of complexity I am now having to get into, so this question may be easy, but I don't even know what to look for to see if it has been posted here...
19
by: Khafancoder | last post by:
Hi guys, in my db i have these three tables 1.Stores 2.Products 3.Parts their structure is something like : Stores ----Products ----Parts
139
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
12
by: Michel Esber | last post by:
Hello, Db2 Linux LUW FP 15. Consider table A (ID varchar, EXECUTION_DATE date). a) I want to first retrieve all IDs that have not executed during the last 90 days: select distinct ID...
2
by: lenygold via DBMonster.com | last post by:
Hi everybody! I have a UDF. It is working fine. But when i try apply the same UDF to a view it is not working. CREATE VIEW SSN_SORTED AS WITH...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.