473,809 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE equivalent for max-width?

This does exactly what I want in Mozilla:

<div style='margin-left: auto; max-width:740px; margin-right:auto'>
<div style='margin-left: 120px; max-width:500px; text-align:justify'>
<div style='margin-left:-120px; float:left'>
<img src='graphic.pn g' width='105' height='105' />
</div>
<p>lots of text here</p>
</div>
</div>

By "exactly what I want" I mean:

- if window is large enough, a column of text 500px wide, centered,
with a graphic in the 120px left margin;

- if window is not large enough, the left margin will not shrink
(thus preventing graphic from being pushed out of sight), but the
right margin will shrink;

- as window shrinks further, the text column will begin to shrink
(but only after the right margin has reached zero).

However, max-width is not supported on IE. In fact, the graphic
disappears completely (not sure why). How can I achieve the same
effect on IE?

TIA,
Steve
Jul 20 '05 #1
1 3920
On 11 Sep 2004 21:40:54 -0700, st*********@hot mail.com (Steve Kobes)
wrote:
By "exactly what I want" I mean:

- if window is large enough, a column of text 500px wide, centered,
with a graphic in the 120px left margin;
Don't want that. Size the text column(s) in ems.
However, max-width is not supported on IE. In fact, the graphic
disappears completely (not sure why). How can I achieve the same
effect on IE?


There is a hack described at
http://www.svendtofte.com/code/max_width_in_ie/

Be aware though that getting it to work properly can be considerably
more work than this page suggests. For example you will need a media
print override. And the slightest extra variations in the layout may be
difficult to handle or even insoluble. Do hide it in a separate
iehack.css which is linked to in an IE conditional comment, to make sure
no other browsers (or the validator) fall over it.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2

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

Similar topics

1
8554
by: Code_Dark | last post by:
Hi, I'm coming over to python from C and C++, and I was just wondering if there's an equivalent of the Do-While fuction that I'm so fond of... I really like it, and it's handy for asking the user if they'd like to repeat a program (or parts of a program). Please reply to this or email me at dshaw858@NOSPAM-hotmail.com. Just take up the NOSPAM- part ;-) Thanks in advance, - Code_Dark
15
1727
by: Dan | last post by:
Is there a python equivalent of this trick in C? Logic_Test ? True_Result : False_Result Example: printf( "you have %i %s", num_eggs, num_eggs > 1 ? "eggs" : "egg" );
11
1790
by: Dark Cowherd | last post by:
http://www.ucalc.com/mathparser/index.html There is a great library called UCALC which allows you to set up an expression and evaluate it for e.g. you an define an expression by calling a function in UCALC then call it with various values of x for e.g. see this page http://www.ucalc.com/mathparser/sample6.html
3
8374
by: Will Chamberlain | last post by:
I have looked around and found the equivalent for IIF (Access) to be a SELECT CASE in SQL. I have tried this with no success. I am also looking for the equivalent of MAX and have had no luck. The portion of the string I am trying to SQL'ize is: SELECT Max(IIf( Is Null,0,)) AS ADCN FROM ADCN INNER JOIN Sheet ON ADCN.RecordID = Sheet.RecordID WHERE (Sheet.Drawing = '" & x & "') AND (Sheet.SheetNumber = 0);
6
1828
by: Jeff Kish | last post by:
Hi. I'm a casual sql user. I have found a situation where I need to convert an oracle statement to tsql, one I can just fire off in any sql tool against an ms sql server database. I studied the exists statement and I think I understand it somewhat, however I was not sure how to get it quite right. If you have an idea and a minute or two I'd appreciate any insight or tutorial. insert into authorization (program, optiontitle, usergroup,...
10
3182
by: Neuruss | last post by:
I'm sorry for asking about another language here, but since I only know Python and I'm trying to write something in C#, I guess this is the best place... I'd like to know how to write this in C#: x= sz = 10000000 x.extend(range(sz))
0
1296
by: AJ | last post by:
Hi all, I have the following query which isn't quite finished! 1) How do i specify the '@Country' parameter is optional in an ACCESS stored query? (like MSSQL @Country INT = NULL) 2) What is the Access Equivalent of the following AND CLAUSE ? AND c.Country = Coalesce(@Country, c.Country) Query involved below:
1
25077
by: vivekgrs | last post by:
hi everybody, i am working in ms - access. i want 2 select the max imum number of particular column and i want 2 add 1 to that. if the table is empty, that statement wants 2 work, i had used the query in Oracle for this purpose. select nvl(max(no),0) +1 from table1; but i dont know 2 write query in access. nvl is not accepting in access.
5
5741
by: Greg | last post by:
I can see there is no simple way to define a type like just a simple C++ typedef, such as typdef signaltype double; Using #define seems like a bad idea if it works atall. Using a struct looks promising but then is there a way of referncing a value without having to use the dot operator.
10
1608
by: cppquester | last post by:
I got an app where a bunch of values are set before the calculation is fired up. I need an elegant way to check if all variables have been set. So for example for double I am thinking about a class Double { private;
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.