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. 8 1690
"Cool Guy" <co*****@abc.xyz> wrote in message
news:16***************@cool.guy.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
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. =/
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.
"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.com/faq.pl?Tableless_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
Cool Guy <co*****@abc.xyz> 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.
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
On Sun, 19 Dec 2004 02:38:13 +0000, Cool Guy <co*****@abc.xyz> 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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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:
|
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...
|
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...
|
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...
|
by: Roger Withnell |
last post by:
How to I find out what size text the browser is set to?
Thanks in anticipation.
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |