HighDots Forums  

Absolute positioning between browsers

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Absolute positioning between browsers in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mehstg1319
 
Posts: n/a

Default Absolute positioning between browsers - 04-16-2008 , 04:41 AM






Hi there


Not sure if anyone can help me, I am working on a site for my
university, and am having a bit of trouble with css positioning. I am
very new to css and do not know very much about it.

Here is the link: http://homepages.feis.herts.ac.uk/~b...ix/matrix.html

Basically, the problem is that the ticks on the grid look perfectly
placed in IE but wrong in Firefox, and when I edit it to match
Firefox, it looks strange in IE.


Any ideas?


Paul

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-16-2008 , 05:04 AM






In article
<4d83e9db-a7de-48f0-8ebb-3bcbd32927c6 (AT) c65g2000hsa (DOT) googlegroups.com>,
mehstg1319 <mehstg (AT) gmail (DOT) com> wrote:

Quote:
Hi there


Not sure if anyone can help me, I am working on a site for my
university, and am having a bit of trouble with css positioning. I am
very new to css and do not know very much about it.

Here is the link:
http://homepages.feis.herts.ac.uk/~b...ix/matrix.html

Basically, the problem is that the ticks on the grid look perfectly
placed in IE but wrong in Firefox, and when I edit it to match
Firefox, it looks strange in IE.


Any ideas?
There are a fair few validation errors for the html via

<http://validator.w3.org/>

But never mind this for now. Why are you not using an html table,
something that is particularly appropriate, that is known to be very
cross browser friendly in many ways?

Up the text size and see how your page goes into fits (in FF, View menu,
Text size, Larger a couple or more clicks). In your lists you are doing
things like width: 80px; What do you expect will happen when the text,
your html text ticks (which are not and cannot be pixeled successfully)
don't fit in and worse.

I have spent some effort trying to convince various folks that some
lists are at bottom tables. But this is taking things too far in some
opposite conceptual direction!

Use a table and you won't then even have to specify widths for the cell.
They will shrink and grow to fit. Why have you forsaken the benign magic
of tables for the sorcery of lists and floating. They don't even have
the advantage of floats by wrapping.


Quote:

Paul
--
dorayme


Reply With Quote
  #3  
Old   
mehstg1319
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-16-2008 , 06:46 AM



On 16 Apr, 11:04, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote:
Quote:
In article
4d83e9db-a7de-48f0-8ebb-3bcbd3292... (AT) c65g2000hsa (DOT) googlegroups.com>,





*mehstg1319 <meh... (AT) gmail (DOT) com> wrote:
Hi there

Not sure if anyone can help me, I am working on a site for my
university, and am having a bit of trouble with css positioning. I am
very new to css and do not know very much about it.

Here is the link:
http://homepages.feis.herts.ac.uk/~b...ix/matrix.html

Basically, the problem is that the ticks on the grid look perfectly
placed in IE but wrong in Firefox, and when I edit it to match
Firefox, it looks strange in IE.

Any ideas?

There are a fair few validation errors for the html via

http://validator.w3.org/

But never mind this for now. Why are you not using an html table,
something that is particularly appropriate, that is known to be very
cross browser friendly in many ways?

Up the text size and see how your page goes into fits (in FF, View menu,
Text size, Larger a couple or more clicks). In your lists you are doing
things like width: 80px; What do you expect will happen when the text,
your html text ticks (which are not and cannot be pixeled successfully)
don't fit in and worse.

I have spent some effort trying to convince various folks that some
lists are at bottom tables. But this is taking things too far in some
opposite conceptual direction!

Use a table and you won't then even have to specify widths for the cell.
They will shrink and grow to fit. Why have you forsaken the benign magic
of tables for the sorcery of lists and floating. They don't even have
the advantage of floats by wrapping.



Paul

--
dorayme- Hide quoted text -

- Show quoted text -
dorayme

First of all, thanks alot for taking the time to help me. I have done
as you said and redesigned the grid to use standard tables. There
still seems to be some discrepancies between how the site looks in IE
and Firefox.

new version is uploaded here: http://homepages.feis.herts.ac.uk/~b...le/matrix.html


Any ideas


Paul


Reply With Quote
  #4  
Old   
John Hosking
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-16-2008 , 07:05 AM



mehstg1319 wrote:
Quote:
On 16 Apr, 11:04, dorayme wrote:
In article
yaddayaddapointlesslylongbutabridged...oups (DOT) com>,
mehstg1319 wrote:

Here is the link:
http://homepages.feis.herts.ac.uk/~b...ix/matrix.html
Basically, the problem is that the ticks on the grid look perfectly
placed in IE but wrong in Firefox, and when I edit it to match
Firefox, it looks strange in IE.
If by "ticks" you mean the question marks I see in FF and the empty
squares I see in IE6, then I guess you're talking about their vertical
alignment with the left-hand labels. Yes?

Quote:
There are a fair few validation errors for the html via

http://validator.w3.org/

But never mind this for now. Why are you not using an html table,
something that is particularly appropriate, that is known to be very
cross browser friendly in many ways?

Up the text size and see how your page goes into fits (in FF, View menu,
Text size, Larger a couple or more clicks). In your lists you are doing
things like width: 80px; What do you expect will happen when the text,
your html text ticks (which are not and cannot be pixeled successfully)
don't fit in and worse.


Use a table and you won't then even have to specify widths for the cell.
They will shrink and grow to fit. Why have you forsaken the benign magic
of tables for the sorcery of lists and floating. They don't even have
the advantage of floats by wrapping.



First of all, thanks alot for taking the time to help me. I have done
as you said
albeit only partially

Quote:
and redesigned the grid to use standard tables. There
still seems to be some discrepancies between how the site looks in IE
and Firefox.
You do know that they are *always* going to be different for most
non-trivial pages, don't you? They are, after all, different browsers.

Quote:
new version is uploaded here: http://homepages.feis.herts.ac.uk/~b...le/matrix.html

Any ideas
Make the /whole/ table a table, including the text labels on the left.

Also, I would say it is time to make your code validate (dorayme's
remark notwithstanding). Any time you're bashing your head against
differences between IE and FF, remember to check your code validity. It
may not solve the problems you're having, but it almost never hurts.

HTH

--
John
Pondering the value of the UIP: http://improve-usenet.org/


Reply With Quote
  #5  
Old   
Bergamot
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-16-2008 , 12:38 PM



mehstg1319 wrote:
Quote:
I am working on a site for my
university, and am having a bit of trouble with css positioning.
http://homepages.feis.herts.ac.uk/~b...ix/matrix.html
<heavy sigh>

Is this what they're teaching at the university level these days? It's
appalling. Please learn something about semantic HTML and get rid of
about 90% of those div's and br's.
http://microformats.org/wiki/posh

See also the links at the bottom of that page. Send your instructor(s)
there, too.

That's not really much better. You have the column headings completely
outside the table to which they apply, in invalid list markup.

There are 46 validation errors, some of which are serious, like
duplicate IDs.

The layout has issues as well. You are attempting to position text
blocks at precise x/y pixel coordinates. This is doomed to fail because
you cannot control the font size. Subsequently you end up with
overlapping text, making it unreadable.

You need to start over, I think.




--
Berg


Reply With Quote
  #6  
Old   
GTalbot
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-16-2008 , 03:59 PM



On 16 avr, 07:46, mehstg1319 <meh... (AT) gmail (DOT) com> wrote:

http://homepages.feis.herts.ac.uk/~b...ix/matrix.html


Quote:
Basically, the problem is that the ticks on the grid look perfectly
placed in IE but wrong in Firefox, and when I edit it to match
Firefox, it looks strange in IE.

Any ideas?

There are a fair few validation errors for the html via
<http://validator.w3.org/>


Paul,

First fix all validation markup errors. This is the first step to do
with your webpage. We can not go any further without fixing this
issue. Fix CSS errors if there are any. If you need help on this, then
visit:

Using Web Standards in your Web Pages
http://developer.mozilla.org/en/docs...dards_-_how_to
and
http://developer.mozilla.org/en/docs...your_Web_Pages

Where can I validate my webpages? How to validate webpages?
http://developer.mozilla.org/en/docs...te_webpages.3F

You have to understand that there is no correct or incorrect webpage
rendering when the markup code is invalid. So fix that and we will
give you more info, recommendations, useful suggestions.

I agree with Bergamot. You misuse div and br; you over-use div and br:
lack of semantic too.

{
Divitis and classitis
Related to <span> mania. Adding unnecessary div elements and class
attributes.
Why? See “<span> mania” and “lack of semantics”.
}
Web development mistakes, redux
http://www.456bereastreet.com/archiv...istakes_redux/

"
Classitis and Divitis
A common error of beginning CSS coders is to use far too many <div>
tags and class attributes (...)
"

Web Page Development: Best Practices
http://developer.apple.com/internet/...estwebdev.html

"
Superfluous elements and classes
When starting out with CSS, it’s common to make the mistake of using
unnecessary XHTML elements, superfluous classes, and extra <div>
elements. This doesn’t necessarily mean that the code will be invalid,
but it counteracts one of the reasons of separating structure from
presentation; to get simpler, cleaner markup.
"

Developing With Web Standards
Recommendations and best practices
http://www.456bereastreet.com/lab/de...dards/css/#css

Fix your validation markup errors: then we will be able to offer
additional assistance.

Why we won't help you
http://diveintomark.org/archives/200..._wont_help_you

Regards, Gérard


Reply With Quote
  #7  
Old   
dorayme
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-16-2008 , 08:02 PM



In article <4805ecda$1_4 (AT) news (DOT) bluewin.ch>,
John Hosking <John (AT) DELETE (DOT) Hosking.name.INVALID> wrote:

Quote:
mehstg1319 wrote:
On 16 Apr, 11:04, dorayme wrote:
In article
yaddayaddapointlesslylongbutabridged...oups (DOT) com>,
mehstg1319 wrote:

Here is the link:
http://homepages.feis.herts.ac.uk/~b...ix/matrix.html
Basically, the problem is that the ticks on the grid look perfectly
placed in IE but wrong in Firefox, and when I edit it to match
Firefox, it looks strange in IE.

If by "ticks" you mean the question marks I see in FF and the empty
squares I see in IE6, then I guess you're talking about their vertical
alignment with the left-hand labels. Yes?

There are a fair few validation errors for the html via

http://validator.w3.org/

But never mind this for now. Why are you not using an html table,
something that is particularly appropriate, that is known to be very
cross browser friendly in many ways?

Up the text size and see how your page goes into fits (in FF, View menu,
Text size, Larger a couple or more clicks). In your lists you are doing
things like width: 80px; What do you expect will happen when the text,
your html text ticks (which are not and cannot be pixeled successfully)
don't fit in and worse.


Use a table and you won't then even have to specify widths for the cell.
They will shrink and grow to fit. Why have you forsaken the benign magic
of tables for the sorcery of lists and floating. They don't even have
the advantage of floats by wrapping.



First of all, thanks alot for taking the time to help me. I have done
as you said

albeit only partially

and redesigned the grid to use standard tables. There
still seems to be some discrepancies between how the site looks in IE
and Firefox.

You do know that they are *always* going to be different for most
non-trivial pages, don't you? They are, after all, different browsers.


new version is uploaded here:
http://homepages.feis.herts.ac.uk/~b...le/matrix.html

Any ideas

Make the /whole/ table a table, including the text labels on the left.

Also, I would say it is time to make your code validate (dorayme's
remark notwithstanding). Any time you're bashing your head against
differences between IE and FF, remember to check your code validity. It
may not solve the problems you're having, but it almost never hurts.


Most of this I agree with, I see ticks, John sees ?s, I can't see the
left list as quite to do with the ticks, seems to be some independent
navigation? Frankly, it is not really obvious what this page is meant to
be conveying.

You certainly must have as part of the table all those things that are
relevant and that *includes the headings*. You have the headings in a
horizontal list and are doing some lining up acrobatics with the table!

Tables are designed to have headings. Use its gifts. Put Consultancy,
Bus Dev, etc in <tr><th>Consultancy</th><th>Bus
Dev</th><th>.....</th></tr> before the rows with the <td>s.

You can style the headings to appear white backgrounded.

You are fighting to get everything squeezed in. Too much juggling and
code. You will be disappointed unless you put the whole thing on a
better and sturdier scaffold.

Time to go back to basics though rather than be battering at this page.

<http://www.htmldog.com/>

But do come back when you have something simpler and validated as best
as you can.

--
dorayme


Reply With Quote
  #8  
Old   
mehstg1319
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-25-2008 , 04:29 AM



Ok. Will sort the validation errors out now.

And in answer to your <heavy sigh> comment about what is taught in
university nowadays.

I am not taking a HTML/CSS course, it is a sideproject. I have never
used HTML or CSS until now, so this is my first attempt at it.


Paul

Reply With Quote
  #9  
Old   
mehstg1319
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-25-2008 , 08:59 AM



Right, have redesigned the page from the ground up, and all shows as
valid XHTML/1.0 Transitional

I haven't added any of the javascript to the page yet as I just want
to get the page working properly!!!

One thing I am not happy with is that two of the Div's are absolute
positioned, which I do not like....
Both boxKeyPersonel and boxMoreInfo are absolute positioned, but I
cannot figure a way of getting them to sit next to boxAbout properly,
if I use inherit, the box drops down below boxAbout.


Paul

Reply With Quote
  #10  
Old   
Chris F.A. Johnson
 
Posts: n/a

Default Re: Absolute positioning between browsers - 04-25-2008 , 02:02 PM



On 2008-04-25, mehstg1319 wrote:
Quote:
Right, have redesigned the page from the ground up, and all shows as
valid XHTML/1.0 Transitional
What page is that? Please provide a URL. (Note that you are posting
to usenet, where previous posts in the thread may not be visible.)

Why are you using XHTML instead of HTML? Why transitional instead
of strict?

Quote:
I haven't added any of the javascript to the page yet as I just want
to get the page working properly!!!
Good! (99% of the JavaScript on the Web is unnecessary, and limits
the page's audience.)

Quote:
One thing I am not happy with is that two of the Div's are absolute
positioned, which I do not like....
Both boxKeyPersonel and boxMoreInfo are absolute positioned, but I
cannot figure a way of getting them to sit next to boxAbout properly,
if I use inherit, the box drops down below boxAbout.

--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.