473,466 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

width v. max-width?

Hi --

I found this on a template, along with a warning that IE would ignore
it:

#content { max-width: 36em; }

Assuming that the person who wrote this is much smarter than me, why
this this a better method of limiting line-length than:

#content p { width: 36em; }

Only curious,
Thanks

Jan 26 '06 #1
7 1786
<me******@gmail.com> wrote:
I found this on a template, along with a warning that IE would ignore
it:

#content { max-width: 36em; }

Assuming that the person who wrote this is much smarter than me, why
this this a better method of limiting line-length than:

#content p { width: 36em; }


What happens when the available display area is less than 36em wide?
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Good teachers are costly. Bad teachers cost more." - Bob Talbert
Jan 26 '06 #2
> I found this on a template, along with a warning that IE would ignore
it:

#content { max-width: 36em; }


IE ignores it because { max-width } is a CSS2 command and IE does not
support CSS2.

--
Viken K.
http://home.comcast.net/~vikenk
Jan 26 '06 #3
"Viken Karaguesian" <vikenkNO_SPAM@NO_SPAMcomcast.net> wrote:
IE does not support CSS2.


Too sweeping a statement, IE supports some CSS2.

--
Spartanicus
Jan 26 '06 #4

Spartanicus wrote:
"Viken Karaguesian" <vikenkNO_SPAM@NO_SPAMcomcast.net> wrote:
IE does not support CSS2.


Too sweeping a statement, IE supports some CSS2.


Maybe I should have said "IE does not support CSS2 *well*" :>)

Viken K.

Jan 26 '06 #5
>
What happens when the available display area is less than 36em wide?
--

Okay, that's a good reason. Gotcha, thanks.

Jan 26 '06 #6
Viken Karaguesian wrote:
Spartanicus wrote:
"Viken Karaguesian" <vikenkNO_SPAM@NO_SPAMcomcast.net> wrote:

IE does not support CSS2.


Too sweeping a statement, IE supports some CSS2.

Maybe I should have said "IE does not support CSS2 *well*" :>)

Viken K.

Viken,

Too narrow a statement. IE doesn't support anything well. :-)

(Actually, I rather like it for FTP, which it seems to handle flawlessly...)

Chris Beall

Jan 26 '06 #7
On 2006-01-26, Chris Beall <Ch*********@prodigy.net> wrote:
Too narrow a statement. IE doesn't support anything well. :-)

(Actually, I rather like it for FTP, which it seems to handle flawlessly...)


It doesn't support text mode. :)

Bye.
Jasen
Jan 27 '06 #8

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

Similar topics

1
by: Steven Bethard | last post by:
So I've been playing around with trying to add a keyword argument to min and max that works similarly to the one for sorted. It wasn't too hard actually, but it does raise a few questions about...
2
by: Jack | last post by:
Greetings folks, Just curious if anyone knows what the following would produce: SELECT MAX( ECP_SUPPORT_DED_EMAIL.CD_TYP_CMPGN) CD_TYP_CMPGN, MAX(ECP_SUPPORT_DED_EMAIL.CELL_ID) CELL_ID,...
2
by: Pink Panther | last post by:
Using the following SQL can the results be explained? Using A97 (with the SP2 for Jet 3.5) or A2002 CREATE TABLE Test (PK Number CONSTRAINT PK_TEST PRIMARY KEY, ParentID Number, Child...
3
by: Ker | last post by:
I have a query that works great. It gives me the min for multiple fields. Within this query, I also need to get the max of some fields too. I currently have output of Date Name ...
8
by: charles.amith | last post by:
I have 2 tables: LOCATION and ELEVATION In location, I would like to find the record with the max value for field: DATE1 In elevation, I would like to find the record with the max value for...
61
by: norb1 | last post by:
After tracking down a bug in my Fortran program, I found that it assumed max(NaN,0.) = 0. This makes no sense, as the outcome of the operation is undefined and should be NaN. max(NaN,0.) = NaN...
6
by: mike | last post by:
so I keep optimizing my fields down to the minimum character length necessary i.e., varchar(15), then I find out a month later its gotta get bigger, then a few months later, bigger again, etc. ...
19
by: Eugeny Myunster | last post by:
I know, only simple one: #include <stdio.h> int main() { int min=0,max=0,i,arr; for(i=0;i<12;i++) arr=rand()%31-10; for(i=0;i<12;i++)
54
by: bearophileHUGS | last post by:
Empty Python lists don't know the type of the items it will contain, so this sounds strange: 0 Because that may be an empty sequence of someobject: 0 In a statically typed language in...
0
by: hong.niu4 | last post by:
please look our website ,have more mode shoes clothing hat cap bags ! Air Max Air Max 87 shoes www.shoestrade.biz Air Max 90 shoes www.shoestrade.biz Air Max 91 shoes www.shoestrade.biz Air...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.