473,804 Members | 3,958 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Hacks and 3 pixel jog

I am having major issues in IE. This web development exercise involves
learning why certain hacks work and others don't. My web page renders
ok in Firefox.

The main problem in my web page relates to complexity; emulating
position fixed in IE. If I simplify the page, the issues subside,
which does not help me learn about web development idiosyncrasies.

The height %1 hack did not alleviate the situation either. Look at the
CSS, simple.css, for details.

The three pixel jog presents a major problem on a long page. The
information at PIE was helpful, yet did not help me resolve the
situation. Again, the main inquiry refers to managing multiple hacks
and pinpointing issues within IE. The DOM inspector in Firefox helps,
yet I have not found its equivalent in IE.
http://www.positioniseverything.net/...reepxtest.html

Do I have to apply this height hack or dimension hack (hasLayout) to
every element on the web page including <p> elements?

The following page is pared down examples for those purists, who
prefer a simplified page.

http://neville.f2o.org/Template_TEMP1.html

Full page
http://neville.f2o.org/Template_noXML.html

Jul 21 '05 #1
8 4418
Els
R0bert Neville wrote:
I am having major issues in IE. This web development exercise involves
learning why certain hacks work and others don't. My web page renders
ok in Firefox.

The main problem in my web page relates to complexity; emulating
position fixed in IE. If I simplify the page, the issues subside,
which does not help me learn about web development idiosyncrasies.
Of course it does. Troubleshooting is exactly that - take styles
and/or elements off until the problem disappears. Then deduct which
element and/or style caused the problem.

[3px jog] Do I have to apply this height hack or dimension hack (hasLayout) to
every element on the web page including <p> elements?
The 1%height hack only needs to be applied to the containing element,
which in most cases is the content div.
The following page is pared down examples for those purists, who
prefer a simplified page.

http://neville.f2o.org/Template_TEMP1.html
If that is simplified...
Full page
http://neville.f2o.org/Template_noXML.html


Okay, I can see how this page is even fuller than the other one, but
the simple one is by no means simplified. (imo of course :-) )

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #2
R0bert Neville <ro************ ***@yahoo.com> wrote:
I am having major issues in IE. This web development exercise involves
learning why certain hacks work and others don't. My web page renders
ok in Firefox.

The main problem in my web page relates to complexity; emulating
position fixed in IE. If I simplify the page, the issues subside,
which does not help me learn about web development idiosyncrasies.
The situation should have taught you that it's unwise to over complicate
things in an attempt to get IE to do stuff that is beyond it's natural
ability. Keeping an element in view with position:fixed should never be
a requirement for a page to work, just let it scroll in browsers that
don't support it.
http://neville.f2o.org/Template_noXML.html


Some other tips:

A document should contain only one level 1 header, not 13.

<a name="top" id="top"></a> is old school coding only useful if NS4
compatibility is a must. <h2 id="top">Defini tion List Selectors
Example</h2> is the modern way.

Don't rely on javascript for anything essential, avoid non standard
Ecma/javascript, use capability detection.

Use a width that scales with the text size for layout containers with
text, otherwise your site will break if the user zooms the text.

Sizing fonts down to 62.5% of my configured preference results in
unreadable text.

There are more browsers than IE and Mozilla, a site published on the www
should be constructed to work on most of them.

Don't fix the width of the layout, allow it to flow in the width of the
available viewport.

--
Spartanicus
Jul 21 '05 #3
On Mon, 02 May 2005 10:14:34 GMT, Spartanicus
<in*****@invali d.invalid> wrote:
R0bert Neville <ro************ ***@yahoo.com> wrote: Some other tips:
A document should contain only one level 1 header, not 13.
What are you saying by this statement? Use <H2> instead after the
first level one. Interesting point if that's what you mean. Please
clarify and include backup reference.
<h2 id="top">Defini tion List Selectors Example</h2> is the modern way.
Cool. I like this approach better.
Don't rely on javascript for anything essential, avoid non standard
Ecma/javascript, use capability detection.
Bah Humbug! Javascript is essential to this document template
solution.
Use a width that scales with the text size for layout containers with
text, otherwise your site will break if the user zooms the text. Sizing fonts down to of my configured preference results in
unreadable text.
This approach assumes the default browser text is about 16px. Thus
62.5% brings it to 10px, and then it scales up to 12px in the main
container. If your resolution is so high, then you probably adjust the
text size on most sites anyway. At least, my text scales.
There are more browsers than IE and Mozilla, a site published on the www
should be constructed to work on most of them.
The solution is client-based. The page is only up on a server for
debugging. IE support is only relevant in debugging terms.
Don't fix the width of the layout, allow it to flow in the width of the
available viewport.


The MainContent container has a max-width and min-width for browsers
that follow CSS 2 specifications. I am currently working on a
max-width solution in IE. In addition, the simplified page took a
fixed width approach for the purist.

Jul 21 '05 #4
On Mon, 02 May 2005 14:16:06 -0700, R0bert Neville
<ro************ ***@yahoo.com> wrote:
On Mon, 02 May 2005 10:14:34 GMT, Spartanicus
<in*****@inval id.invalid> wrote:
R0bert Neville <ro************ ***@yahoo.com> wrote:Some other tips:

A document should contain only one level 1 header, not 13. What are you saying by this statement? Use <H2> instead after the
first level one. Interesting point if that's what you mean. Please
clarify and include backup reference.


Have a look at the ISO version of HTML to find out why.

<https://www.cs.tcd.ie/15445/15445.html>

[ISO = International Standards Organisation, officially supported by
just about as many countries that you can find as members of the UN]

[...]
Don't rely on javascript for anything essential, avoid non standard
Ecma/javascript, use capability detection.


Bah Humbug! Javascript is essential to this document template
solution.


You are losing me there.

How on earth are you going to create a web site that will convey the
info you want to give me, if you are at the same time saying that in
order to do so you want to execute _your_ program code on _my_ system?

Forget that, I'm not interested, my system is under my control, not
yours.

--
Rex
Jul 21 '05 #5
R0bert Neville <ro************ ***@yahoo.com> wrote:
A document should contain only one level 1 header, not 13.
What are you saying by this statement? Use <H2> instead after the
first level one. Interesting point if that's what you mean. Please
clarify and include backup reference.


A page needs a brief description of it's entire content, this should be
provided by a level 1 header. From that follows that multiple level 1
headers is incorrect markup. Search the web if you need references.
Don't rely on javascript for anything essential, avoid non standard
Ecma/javascript, use capability detection.


Bah Humbug! Javascript is essential to this document template
solution.


That restricts use of the document to environments where you have
absolute control over the client's features, the web is not such an
environment.
Sizing fonts down to of my configured preference results in
unreadable text.


This approach assumes the default browser text is about 16px.


A browser's default text size is an unknown, no assumptions should be
made about it. Leave the default text size alone or specify 100% and it
should work for everyone. If you shrink the default text size down to
62.5% your text will be unreadable for a portion of users.
If your resolution is so high, then you probably adjust the
text size on most sites anyway.
There need not be a relation to monitor resolution, if there is then no
on the fly adjustments are necessary, a simple reconfiguration of the
browser's default size suffices.
At least, my text scales.


Not stuffing up the method to solve a problem you've created is not
smart, many people are unaware of how to enlarge text in their browser.
The proper thing to do is not create the problem in the first place.
There are more browsers than IE and Mozilla, a site published on the www
should be constructed to work on most of them.


The solution is client-based.


The real question is do you have absolute control over the clients.
Given that you seem to be striving for dual client compatibility, and
because you proclaimed this to be a "web development", this does not
seem to apply. If this is for a controlled client environment then this
group is not the correct platform for your query (note the www in the
group's name). Posts to this group are discussed in a www context.

--
Spartanicus
Jul 21 '05 #6
On Mon, 02 May 2005 23:26:50 GMT, Spartanicus
<in*****@invali d.invalid> wrote:

Maybe, I should have included the standard disclaimer. You explain the
whole scenario and people scuff at the unwieldy post; if you are too
concise, you may not provide them with enough information. Generally,
I find a balance between too much and too concise. This approach may
mislead some people to assumptions.

STANDARD DISCLAIMER: My project aims at creating a document template
and navigation approach for my computing notes. These web pages are
for personal usage and will reside on an external hard drive. I will
use these documents to help me remember key computing idiosyncrasies.
These documents number 100+. The CSS style sheet should allow me to
have a consistent format and allow me to update formatting for all
documents at once. The documents should be primarily viewable on
Firefox; Safari, Opera, IE (distant Third) and Netscape (further
distant fourth); and not have any platform specific needs. Thus
server side processing like PHP is not desirable. All processing
should be client based.
Jul 21 '05 #7
Robert Neville <robert_neville 310@.no******@h oo.com> wrote:
Maybe, I should have included the standard disclaimer.
That would be unwelcome here since it doesn't say anything about the
specific message. What is part of the posting conventions here is to
quote something of what you are replying to (trimmed down to a minimum).
STANDARD DISCLAIMER: My project aims at creating a document template
and navigation approach for my computing notes. These web pages are
for personal usage and will reside on an external hard drive.
Then they are not web pages and strictly speaking off topic for this
group.
I will
use these documents to help me remember key computing idiosyncrasies.
These documents number 100+. The CSS style sheet should allow me to
have a consistent format and allow me to update formatting for all
documents at once. The documents should be primarily viewable on
Firefox; Safari, Opera, IE (distant Third) and Netscape (further
distant fourth); and not have any platform specific needs. Thus
server side processing like PHP is not desirable. All processing
should be client based.


If these documents are for your use only, why the many different
browsers? If you need to access these documents using clients installed
on systems that are not yours, you then have no control over their
configuration and the requirements are pretty much the same as for web
documents.

--
Spartanicus
Jul 21 '05 #8
"The DOM inspector in Firefox helps,
yet I have not found its equivalent in IE."

There are several solutions out there that provide basic help with
analyzing web content

- DOM Inspector
http://www.download.com/IE-DOM-Inspe...ml?tag=lst-0-1
- DOM SPY
http://www.download.com/DOMSpy/3000-...ml?tag=lst-0-2
- Web Accessibility toolbar
http://www.nils.org.au/ais/web/resources/toolbar/
- IEDocMon: http://www.cheztabor.com/IEDocMon/index.htm

Markus

Jul 21 '05 #9

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

Similar topics

7
2284
by: Priti | last post by:
<td align="center" bgcolor="#6699cc" onMouseOver="white4.bgColor='#ffffff'" onMouseOver="this.bgColor='#993300'" onMouseOut="this.bgColor='#6699cc'" onMouseOut="white4.bgColor='#6699cc'"> I am having a problem changing the color of 2 differnt table cells when mouseing over of 1cell. The issue is I want to change the bgcolor of my cell that I am mouseing over as well as an adjacent cell, but not the whole row. The script changes only one,...
3
2420
by: james.dixon | last post by:
Hi I was wondering if anyone else had had this problem before (can't find anything on the web about it). I have three select elements (list boxes - from here on I'll refer to them as 'the list boxes'). Users can add and remove items from the list boxes. When the users are adding and removing items, the list boxes are single
22
23389
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete examples?
1
2055
by: code | last post by:
Hi Grp http://www.books-download.com/?Book=1493-PHP+Hacks+%3a+Tips+%26+Tools+For+Creating+Dynamic+Websites+(Hacks) Description Programmers love its flexibility and speed; designers love its accessibility and convenience. When it comes to creating web sites, the PHP scripting language is truly a red-hot property. In fact, PHP is currently used on more than 19 million web sites, surpassing
8
7681
by: Flack | last post by:
Hey guys, In my app I have a bitmap where drawing is done and in the form's paint method I show the bitmap: private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { if(MyBitmap != null) { Graphics g = e.Graphics;
3
2798
by: Bart Van der Donck | last post by:
Hello, I'm having a hard time trying to configure printed output that consists of multiple pages. The idea is the following: <div style=" border: 1px solid blue; position: absolute; top: 20px; left: 20px;
30
9092
by: Chaos | last post by:
As my first attempt to loop through every pixel of an image, I used for thisY in range(0, thisHeight): for thisX in range(0, thisWidth): #Actions here for Pixel thisX, thisY But it takes 450-1000 milliseconds I want speeds less than 10 milliseconds
53
4144
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in javascript object and that's all. No need to know CSS hacks, no need to clutter your html with tables. http://www.bravelayout.scarabeo.biz/Quickstart
1
3246
by: ofiras | last post by:
In bitmap, how can I find the nearest pixel (pixel 1) to a specific pixel (pixel 2) that has different color from pixel 2? Or how can I find a pixel in a specific distance from pixel 2 (like a circle that pixel 2 is his center, and I'm looking for a pixel that has different color that pixel 2)? (I'm trying to do a voronoi diagram maker, so I need to search for the nearest colored pixel in my bitmap for every pixel that is not colored...
1
10323
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
10082
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
9161
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
7622
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
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
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
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
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 we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.