Jump to content

HTML Mac vs Win


Raybaudi

This topic is 5690 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all friends

the attached HTML file shows a grafh of 12 columns on Win...

... but they are nine, because the last 3 are zero height.

Mac shows exactly, but Win NO.

Can someone expert of HTML say me why ?

P.S.: change the extension from .txt to .html and open with a browser.

test.txt

Link to comment
Share on other sites

Its not so much an issue with Windows vs. Mac. It is a browser difference. If you open it on Firefox, you will see that it displays fine.

Link to comment
Share on other sites

I've tried modifying every property i can think of and still can't get it working... IE7 just gives the element 19px of height for no reason, even if you remove padding, margins, line height, put in a max height, try and hide the overflow etc... why don't you use google charts or something: http://code.google.com/apis/chart/

Link to comment
Share on other sites

Hi Genx

thanks for the link and many tanks for trying to solve the problem with IE.

I know that this is not a real issue with Win and Mac, but with their default browsers.

What it's still arguing me is why the same HTML can't be viewed exactly the same way on both platforms.

I would think that there was an ( my ) error into the code, but...

Link to comment
Share on other sites

No there was nothing wrong with your code. IE is just a lousy browser. IE has had some issues with the DIV tag for quite some time; especially prior to 7.

Link to comment
Share on other sites

because the HTML code is very simple and customizable and didn't need a web connection.

The second point is well taken but the google api is hardly difficult to work out... Here's a pretty bar chart i put together after playing with it for 5 minutes:

http://chart.apis.google.com/chart?cht=bvg&chco=4d89f9,c6d9fd&chs=1000x300&chd=t:16,10,61,12,15,19|17,12,15,90,15,20&chxt=x,y&chxl=0:|Jan|Feb|Mar|Apr|May|June&chbh=50&chg=0,10&chdl=2008|2009

Link to comment
Share on other sites

Well you can actually use this work around.

I'm trying to achive exactly corrispondence to numbers and height !

The work around is good only for 0 value; between it and 10 the graphic fails ( as you sure know : )

Link to comment
Share on other sites

Ah yes the lower number still do have the issue. I was aware of it earlier but it slipped my mind when I was modifying the file.

Link to comment
Share on other sites

  • 2 weeks later...

I've tried modifying every property i can think of and still can't get it working... IE7 just gives the element 19px of height for no reason, even if you remove padding, margins, line height, put in a max height, try and hide the overflow etc...

Finally I found that this is a known bug of IE.

And there is a workaround...

and an: [color:red]  between the div tags.

Note that that is needed ONLY for vertical bar, not for the horizzontal one.

Vert_E_Oriz.zip

Link to comment
Share on other sites

This topic is 5690 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.