473,786 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE Text Problem

I'm converting my table-layout style HTML site to a mainly CSS one and have
run into a little problem with IE.

Here is a demonstration screenshot of the problem:

http://tomjb.com/misc/problem.png

Basically, when the text in my 'div' wraps around, it goes too far left in
IE. This doesn't happen in Firefox.

Here is a link to the HTML file that exhibits the problem:

http://tomjb.com/misc/index.htm

Here is a link to the stylesheet used by that page:

http://tomjb.com/misc/style.css

Any ideas on how to fix this will be appreciated.
Jul 21 '05 #1
8 1705

"Cool Guy" <co*****@abc.xy z> wrote in message
news:16******** *******@cool.gu y.abc.xyz...
I'm converting my table-layout style HTML site to a mainly CSS one and have run into a little problem with IE.

Here is a demonstration screenshot of the problem:

http://tomjb.com/misc/problem.png

Basically, when the text in my 'div' wraps around, it goes too far left in
IE. This doesn't happen in Firefox.


I'm writing for Firefox, and most of the time the pages look slightly
different (worse) under IE. I've given up spending time on a few pixels. If
the user takes exception to this, I suggest s/he'd switch to FF.
But then I'm not a commercial designer :-)
Steven
Jul 21 '05 #2
steven <st***********@ pandora.be> wrote:
I'm writing for Firefox, and most of the time the pages look slightly
different (worse) under IE. I've given up spending time on a few pixels. If
the user takes exception to this, I suggest s/he'd switch to FF.
But then I'm not a commercial designer :-)


I wouldn't mind so much but I'm converting my table-based layout to HTML +
CSS. The table-based version works fine under both browsers but this HTML
+ CSS has the aforementioned problem. =/
Jul 21 '05 #3
On Sun, 19 Dec 2004, Cool Guy wrote:
I wouldn't mind so much but I'm converting my table-based layout to
HTML + CSS.
There's been discussions about that before. It makes good sense to
re-engineer web pages *from the ground up*, if it's economically
justifiable; but a mere "conversion " is apt to leave you with the
worst faults of both schemes...
The table-based version works fine under both browsers
Oh dear, is that the bogosity detector going off yet again?

We've had the "both browsers" litany for almost as long as I can
remember. Just that the "two" browsers have changed, now and again,
since one of them was NCSA Mosaic.

Does it work properly with search engines? With IBM HPR (which your
server logs undoubtedly mis-identify as MSIE)? And so on...
but this HTML + CSS has the aforementioned problem. =/


I'd start by specifying explicit margin and padding, to eliminate
differences in the browsers' defaults. But more important in general
terms, there's nothing at all in your sample content that is
pixel-sized, so why on Earth are you trying to use CSS to size it in
pixels? That way lies fragile formatting, that breaks into shards as
soon as the display situation doesn't suit it.

Text is naturally sized in em units. Percentages can also be nice.
So be natural.

Oh, and make up your mind whether you're using HTML/4.01 or
XHTML/1.0-Appendix-C, and stick to it.

Jul 21 '05 #4
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote:
I wouldn't mind so much but I'm converting my table-based layout to
HTML + CSS.
There's been discussions about that before. It makes good sense to
re-engineer web pages *from the ground up*, if it's economically
justifiable; but a mere "conversion " is apt to leave you with the
worst faults of both schemes...


Hmm...

Someone, on another newsgroup, advised me to read
<http://www.allmyfaqs.c om/faq.pl?Tableles s_layouts> when I asked for
feedback on my site. So I got reading, and learned that CSS is a better
idea for declaring styles and that tables weren't meant to be used to
layout content.

So I decided to try a tableless layout - and IE falls over on my first
attempt. =/
The table-based version works fine under both browsers


Oh dear, is that the bogosity detector going off yet again?


Both IE and Firefox, that is -- the only browsers I have at hand to test
with.
[...]
but this HTML + CSS has the aforementioned problem. =/
I'd start by specifying explicit margin and padding, to eliminate
differences in the browsers' defaults. But more important in general
terms, there's nothing at all in your sample content that is
pixel-sized, so why on Earth are you trying to use CSS to size it in
pixels?


Because in the actual site (not just the test page), the middle div (which
has a background colour) is a specific size - and I know no better. =/
That way lies fragile formatting, that breaks into shards as
soon as the display situation doesn't suit it.

Text is naturally sized in em units. Percentages can also be nice.
So be natural.
Are you advising me to change the div sizes to em units (just so I can be
sure)?
Oh, and make up your mind whether you're using HTML/4.01 or
XHTML/1.0-Appendix-C, and stick to it.


Not sure what you mean here. I'd guess that it's something to do with the
fact that I'm using <element without closing tag /> style while specifying
HTML/4.01 as document type.

Thanks
Jul 21 '05 #5
Cool Guy <co*****@abc.xy z> wrote:
I'm converting my table-layout style HTML site to a mainly CSS one and have
run into a little problem with IE.

Here is a demonstration screenshot of the problem:

http://tomjb.com/misc/problem.png


Problem solved! I just needed to specify the widths for the left and right
divs, which I had previously omitted.

Thanks for replies.
Jul 21 '05 #6
Cool Guy wrote:
Oh, and make up your mind whether you're using HTML/4.01 or
XHTML/1.0-Appendix-C, and stick to it.
Not sure what you mean here. I'd guess that it's something to do with the
fact that I'm using <element without closing tag /> style while specifying
HTML/4.01 as document type.


Yes, <foo /> has entirely different meanings in HTML and XHTML (although
*most* browsers get the HTML meaning wrong and ignore the "/").

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 21 '05 #7
On Sun, 19 Dec 2004 02:38:13 +0000, Cool Guy <co*****@abc.xy z> wrote:
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote:

[...]
Text is naturally sized in em units. Percentages can also be nice.
So be natural.


Are you advising me to change the div sizes to em units (just so I can be
sure)?


You are advised to recognize the following basic typographical fact of
visual presentation in www user agents.

"The total available size for presentation is always 100% wide
and sufficiently high to give room for your content."

Use CSS to suggest presentations that scales within those "limits" and
you are up for a good start.

I.e. use relative units of measurements only and make sure that all your
widths sum up to a total of max 100% if you want to avoid side scrolling
in major parts of viewing situations.

This last part requires some extra markup if you want to use CSS borders
on the left and right side of an element but it can be done of course.

--
Rex
Jul 21 '05 #8
On Sun, 19 Dec 2004, Cool Guy wrote:
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote:
Text is naturally sized in em units. Percentages can also be nice.
So be natural.


Are you advising me to change the div sizes to em units (just so I
can be sure)?


That depends a bit on the context, which - excuse me - wasn't very
clear from your limited sample. On the whole, I think I'd tend to
recommend major divs being sized in percent, if they need to be sized
at all; although a max-width in em units can be handy if there's a lot
of text, at least for those browsers which implement that. In that
way you get flexible results for modest-sized browsing windows,
without getting over-long lines of text on very wide windows.

Sizing margins / borders / padding in units such as px, mm, pt, isn't
particularly harmful if you like that sort of thing, but I wouldn't
recommend trying to size major containers like that - as I say, it
tends to produce rigid, fragile designs which break apart as soon as
the browsing situation moves too far away from what the author
had in mind.

hth
Jul 21 '05 #9

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

Similar topics

2
3746
by: Srinath Avadhanula | last post by:
Hello, Sorry to be bringing up what seems to be a somewhat beaten up topic... This is what I wanted to do: Create a _simple_ text editor widget which supports VI(M) style keybindings but works with arbitrary fonts/unicode characters. Vi(m) unfortunately, does not support Devanagari (or proportional fonts) and it looks like it will take quite some time for these things to work. As
19
5682
by: Svennglenn | last post by:
I'm working on a program that is supposed to save different information to text files. Because the program is in swedish i have to use unicode text for ÅÄÖ letters. When I run the following testscript I get an error message. # -*- coding: cp1252 -*-
0
2431
by: Pierre Jelenc | last post by:
I have a blog script that is a customized version of Word Press (wordpress.org) at http://www.web-ho.com/blog/ Because of the way it evolved, some of the CSS may not be the best, I have tended to keep the default style sheet and add my modifications. The style sheet itself is at http://www.web-ho.com/blog/layout2b.css I use Mozilla 1.4.1 and don't see any problem, while the other member of the team, who uses I.E. 6, has problems with...
5
4758
by: Harry | last post by:
CSS Description: Table contains a column of td cells with links. Achieved: 1. Entire link cells highlight when hovered. 2. The entire area of these cells are clickable. Problem:
12
8435
by: who be dat? | last post by:
I'm trying to make a webpage do the following: I want a user to be able to click on a given image (there will be more than one image). Upon clicking a given image, characters specific to that image will be inserted into a textbox which is actually a text area. If the cursor is in the textbox/textarea then the characters are to be inserted at the cursor location. This means if the cursor is between some text then the characters need to...
3
2895
by: Jan Krouwer | last post by:
I have a problem that shows up only on some systems - the toolbar text in buttons is not visible (vb.net 2003 app, 1.1 framework). As a workaround, I changed the textalign property to "right". This solved the problem, but I don't know what's happening. I notice that there is a small "dot" in the first toolbar button that shows up in either of the textalign property choices. Perhaps this is why the text disappears but I didn't put the dot...
1
2411
by: svijay | last post by:
hi I have got a strange problem. May I know any solution for this. Here is the detailed description about the problem We have got a mainframe system and also production and development server.
14
4033
by: Roger Withnell | last post by:
How to I find out what size text the browser is set to? Thanks in anticipation.
4
1318
by: Steven Bethard | last post by:
I have some plain text data and some SGML markup for that text that I need to align. (The SGML doesn't maintain the original whitespace, so I have to do some alignment; I can't just calculate the indices directly.) For example, some of my text looks like: TNF binding induces release of AIP1 (DAB2IP) from TNFR1, resulting in cytoplasmic translocation and concomitant formation of an intracellular signaling complex comprised of TRADD,...
2
1706
by: DragonShade | last post by:
To be honest, I'm not sure if this is a .NET issue, some configuration on a PC, or a setting in a database but here goes: Environment (have NO control over): XP (London & Tokyo),.NET 2.0 C#, 2 text files from different sources, 1 database (in Tokyo). Working on GUI application (to be run in Tokyo) and Server exe (either in London or Tokyo). Application works with strings which contain both English and Japanese (typically english word...
0
9647
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
9492
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
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...
1
10108
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
9960
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
8988
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
7510
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
6744
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();...
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.