473,385 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem with conditional ie5 stylesheet

Hi,

I have written a brief conditional stylesheet to center the main div
of:

http://people.aapt.net.au/~adjlstrong/dapper.html

in ie5. It works well but tables are _still_ aligned left in ie5. The
css is:

http://people.aapt.net.au/~adjlstrong/ie5.css

or placed here:

body { text-align: center;}
#content { width:90%; text-align: left; }
table {margin-left: auto; margin-right: auto;text-align: center;}
td {text-align: left;}

It is a small but irritating problem that I would be grateful to have
solution for! I suspect that I am missing something small but
important.

Andrew

--
"The band! the speckled band!" whispered Holmes.
Aug 3 '07 #1
6 1661
In article <sl*******************@ilium.invalid>,
andrew <an****@ilium.invalidwrote:
Hi,

I have written a brief conditional stylesheet to center the main div
of:

http://people.aapt.net.au/~adjlstrong/dapper.html

in ie5. It works well but tables are _still_ aligned left in ie5. The
css is:

http://people.aapt.net.au/~adjlstrong/ie5.css

or placed here:

body { text-align: center;}
#content { width:90%; text-align: left; }
table {margin-left: auto; margin-right: auto;text-align: center;}
td {text-align: left;}

It is a small but irritating problem that I would be grateful to have
solution for! I suspect that I am missing something small but
important.

Andrew
I have not got IE5 but perhaps adding "width:32.5em;" to the
table css might help? Let me know if it works.

(btw missing space in table summary: "Type of equipmentand costs
for the Dapper computer")

--
dorayme
Aug 3 '07 #2
andrew wrote:
>
http://people.aapt.net.au/~adjlstrong/dapper.html

tables are _still_ aligned left in ie5.
Both Win and Mac IE 5.x are dead browsers with a minuscule share of the
market. Why waste time trying to get them to render comparably to better
browsers? As long as the content is still usable, the rest isn't that
important. Don't lose any sleep over minor cosmetic differences.

--
Berg
Aug 3 '07 #3
Why bother with IE5?

It has like 1/3 of 1% at most of the browsers.

.................................................. .................................................
"andrew" <an****@ilium.invalidwrote in message
news:sl*******************@ilium.invalid...
Hi,
Aug 3 '07 #4
On 2007-08-03, Bergamot <be******@visi.comwrote:
andrew wrote:
>>
http://people.aapt.net.au/~adjlstrong/dapper.html

tables are _still_ aligned left in ie5.

Both Win and Mac IE 5.x are dead browsers with a minuscule share of the
market. Why waste time trying to get them to render comparably to better
browsers? As long as the content is still usable, the rest isn't that
important. Don't lose any sleep over minor cosmetic differences.
After thinking about it overnight, my favourite strategy, I can see
that you are of course perfectly correct :-) In fact the content _is_
perfectly usable in ie5 and the simple conditional css makes it a
little prettier _without_ further tweaking. And of course the page(s)
are meant for content not beauty.

Thanks for your advice,

Andrew

--
"The band! the speckled band!" whispered Holmes.
Aug 3 '07 #5
In article <sl*******************@ilium.invalid>,
andrew <an****@ilium.invalidwrote:
On 2007-08-03, Bergamot <be******@visi.comwrote:
andrew wrote:
>
http://people.aapt.net.au/~adjlstrong/dapper.html

tables are _still_ aligned left in ie5.
Both Win and Mac IE 5.x are dead browsers with a minuscule share of the
market. Why waste time trying to get them to render comparably to better
browsers? As long as the content is still usable, the rest isn't that
important. Don't lose any sleep over minor cosmetic differences.

After thinking about it overnight, my favourite strategy, I can see
that you are of course perfectly correct :-) In fact the content _is_
perfectly usable in ie5 and the simple conditional css makes it a
little prettier _without_ further tweaking. And of course the page(s)
are meant for content not beauty.

Thanks for your advice,
God help me Andrew! Or God bless your innocence. I'll think hard
on the difference deep into tonight.

Bergamot is a cold hearted bastard who always looks at the main
chance, the way ahead, the majority, the main game. Follow not
such lights, my son. Bend to listen to the little people, the
sick and the poor, the lonely, the uninfluential individuals.
Like Mac IE, Netscape 4, Win IE 3 and so on. How the hell would
you feel if you were those browsers and just ignored completely?

No, I say unto you, bend down and attend to them as if they were
thy children...

--
dorayme
Aug 3 '07 #6
dorayme wrote:
>
Bergamot is a cold hearted bastard who always looks at the main
chance, the way ahead, the majority, the main game.
You don't know me at all.
Mac IE, Netscape 4, Win IE 3 and so on. How the hell would
you feel if you were those browsers and just ignored completely?
If you paid attention, you'd notice what I said about being usable
regardless of cosmetic differences. How is that being ignored? Besides,
you can be assured that anybody still using those browsers has already
run into plenty of unusable sites. It isn't likely to be one of mine,
though.

--
Berg
Aug 3 '07 #7

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

Similar topics

0
by: kevin bailey | last post by:
hi there, if i have this in my XSLT file.. <input style="width:150pt;" value=""> are there any suggestions as to how i might get the value of 150 from another element value?
1
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the...
28
by: Benjamin Niemann | last post by:
Hello, I've been just investigating IE conditional comments - hiding things from non-IE/Win browsers is easy, but I wanted to know, if it's possible to hide code from IE/Win browsers. I found...
6
by: patrick j | last post by:
Hi I've been testing out the "Conditional Comment" for IE. This is because for my web-site I want to have two style sheets, one for IE 6 and one for other browsers. Thus I hope to have my...
3
by: SK3V | last post by:
I'm way out of my element on this one... (um... as it were...) I need to test an element (<F65> below) for a negative value, and if it's true, write another element (<F64>, below, currently...
2
by: John | last post by:
Hi there, I've just been reading "ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps" by K. Scott Allen (http://odetocode.com/Articles/450.aspx) and discovered how rebasing works with URL's in...
6
by: BMc | last post by:
So, as per Beauregard's suggestion, I have delved into the world of percentages and more fluid design for my next project. I am going along okay so far and have already determined that I will be...
13
by: BMc | last post by:
I just want to take a moment to say thank you to so many of you who posted a response to my request for help about the problem with THE GAP (see below?)! Your suggestions were not only a...
3
by: adamalton | last post by:
Hi, I'm putting some conditional comments into a page to stop Internet Explorer 6 from being the evil piece of sh!$ that it is. I want one stylesheet for IE 6 and another for all other browsers. ...
0
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...
0
isladogs
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.