473,387 Members | 1,579 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,387 software developers and data experts.

Opera and refreshing

I have been struggling with a page that is based on a table structure
(because that is all I am feeling comfortable with at the moment) styled
with css.

One of the problems I run in to is Opera (Opera 7 in my case).
The weird thing is: viewing the page through Opera's eyes the first time
around is OK, but after refreshing, the page gets messed up badly.

I will look into the cause of the mess, but for now am really curious:
what does refreshing have to do with it?

Referring URL:
http://huizen.dds.nl/~ochrid/Henk/index.htm

then click on 'bibliografie' (first button in navbar).

If that is OK, refresh, or go back Home and click bibliografie again:
here the whole page gets messed up (the first 'justified' text div is seen
as one long line of text, tearing up the rest of the page as well).

Is there someone who can tell me what principle is involved here?
What should I be aware of?

Thanks for taking the time, and good Easter!
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05
60 4241
"A.Translator" <ad******************@yaBISHhoo.com> wrote:
In that case I've misunderstood you, please explain again why you used
this code:

ul { position:relative;left:-2em; }


I used it because: - I want bullets of some sort - just using bullets was
OK in Mozilla and Opera, but not in IE6: the latter browser does
something interpreting the width of the ul, and makes it look as though it
is indented ( I am using layman's words, do not know the proper
terminology).

- therefore (?) the ul became to wide for IE to contain both UL and image,
and it pushed the image down, as show in this
illustration:http://www.xs4all.nl/~hogen/test/.

- someone in this group suggest the position relative idea, with a
negative left margin.


Strange suggestion, I'd loose it. For me the image doesn't move down if
I take the ul css rule out in IE (5.5).

Another thing:

<div align="center">
<td><div><a href="#">biografie</a></div></td>
<div><p align="justify">
<div><div class="imagebox2">

None of these divs are needed.

A quick reworking of that page sans divs:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio2.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl2.htm

--
Spartanicus
Jul 20 '05 #51
On Sun, 11 Apr 2004 01:34:28 +0100, Spartanicus wrote:
"A.Translator" <ad******************@yaBISHhoo.com> wrote:
In that case I've misunderstood you, please explain again why you used
this code:

ul { position:relative;left:-2em; }


I used it because: - I want bullets of some sort - just using bullets was
OK in Mozilla and Opera, but not in IE6: the latter browser does
something interpreting the width of the ul, and makes it look as though it
is indented ( I am using layman's words, do not know the proper
terminology).

- therefore (?) the ul became to wide for IE to contain both UL and image,
and it pushed the image down, as show in this
illustration:http://www.xs4all.nl/~hogen/test/.

- someone in this group suggest the position relative idea, with a
negative left margin.


Strange suggestion, I'd loose it. For me the image doesn't move down if
I take the ul css rule out in IE (5.5).

Another thing:

<div align="center">
<td><div><a href="#">biografie</a></div></td>
<div><p align="justify">
<div><div class="imagebox2">

None of these divs are needed.

A quick reworking of that page sans divs:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio2.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl2.htm


Thank you very much!

I will recreate the page step by step following your suggestions, but I
don't understand why the image moves down here.

I thought I needed div's as containers to control the flow, but that is
obviously not true.

Thanks again.

--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #52
On Sun, 11 Apr 2004 01:34:28 +0100, Spartanicus wrote:
"A.Translator" <ad******************@yaBISHhoo.com> wrote:
In that case I've misunderstood you, please explain again why you used
this code:

ul { position:relative;left:-2em; }


I used it because: - I want bullets of some sort - just using bullets was
OK in Mozilla and Opera, but not in IE6: the latter browser does
something interpreting the width of the ul, and makes it look as though it
is indented ( I am using layman's words, do not know the proper
terminology).

- therefore (?) the ul became to wide for IE to contain both UL and image,
and it pushed the image down, as show in this
illustration:http://www.xs4all.nl/~hogen/test/.

- someone in this group suggest the position relative idea, with a
negative left margin.


Strange suggestion, I'd loose it. For me the image doesn't move down if
I take the ul css rule out in IE (5.5).

Another thing:

<div align="center">
<td><div><a href="#">biografie</a></div></td>
<div><p align="justify">
<div><div class="imagebox2">

None of these divs are needed.

A quick reworking of that page sans divs:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio2.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl2.htm


Thank you very much!

I will recreate the page step by step following your suggestions, but I
don't understand why the image moves down here.

I thought I needed div's as containers to control the flow, but that is
obviously not true.

Thanks again.

--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #53
Spartanicus <me@privacy.net> wrote:
A quick reworking of that page sans divs:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio2.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl2.htm


And using a strict doctype and no table for layout:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio3.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl3.htm

--
Spartanicus
Jul 20 '05 #54
Spartanicus <me@privacy.net> wrote:
A quick reworking of that page sans divs:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio2.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl2.htm


And using a strict doctype and no table for layout:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio3.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl3.htm

--
Spartanicus
Jul 20 '05 #55
On Sun, 11 Apr 2004 11:43:44 +0100, Spartanicus wrote:
And using a strict doctype and no table for layout:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio3.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl3.htm


Your help does a lot to make me loose my fear for a table-less layout!
I will have a good look at what you have done, and may well take the
plunge.

Thank you very much for your help and encouragement.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #56
On Sun, 11 Apr 2004 11:43:44 +0100, Spartanicus wrote:
And using a strict doctype and no table for layout:

HTML: http://www.spartanicus.utvinternet.ie/test/biblio3.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl3.htm


Your help does a lot to make me loose my fear for a table-less layout!
I will have a good look at what you have done, and may well take the
plunge.

Thank you very much for your help and encouragement.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #57
"A.Translator" <ad******************@yaBISHhoo.com> wrote:
HTML: http://www.spartanicus.utvinternet.ie/test/biblio3.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl3.htm


Your help does a lot to make me loose my fear for a table-less layout!
I will have a good look at what you have done, and may well take the
plunge.


Some explanation may help as there are a few hacks in there that may
make it less than obvious as to the why:

The page is wrapped in a <div class="content"></div> because IE does not
support setting the 736px width of the page directly on the body element
(which works fine in most other UAs).

IE5.5 does not support centering the content div in a spec compliant way
(by setting the left and right margin to auto), a hack that exploits a
bug in IE5.5 to get the content div to center was added by setting the
body to "text-align:center", IE5.5 then (erroneously) centers the
content div. Spec compliant browsers and IE6 ignore this, they use the
"margin:auto" rule applied to the content div itself.

A further hack is then needed as setting "text-align:center" on the body
element is inherited by descendant elements, so "text-align:left" was
added to the content div itself to prevent that from happening.

The menu was marked up using an unordered list, this is considered the
appropriate markup for what is essentially "a list of links".

Since the menu needs to be displayed horizontally those <li> elements
have been set to "display:inline", text links like the ones you use are
by default inline, this is not wanted in this case because inline
elements cannot be assigned a width. Unfortunately due to a missing
feature in CSS2.0 there is no "inline-block" element available. We can't
use block because that would result in the buttons being displayed
vertically. Enter another hack: setting the nav links to "float:left",
floats are block level elements, hence they can be assigned a width, but
since all menu links are floated left, they are displayed horizontally.

Due to the fact that this is a hack, a drawback now pops up: the <ul>
(block level) element's height collapses to 0 since floated elements are
not "part of the flow" (CSS speak, sorry). This has a negative effect on
being able to specify a top and bottom margin on the menu <ul>, to
counter that effect the <ul> has been assigned a height of 1.3em, this
is roughly equal to the button text height and since it's specified as
em it will expand with the text if the menu text is zoomed.

--
Spartanicus
Jul 20 '05 #58
"A.Translator" <ad******************@yaBISHhoo.com> wrote:
HTML: http://www.spartanicus.utvinternet.ie/test/biblio3.htm
CSS: http://www.spartanicus.utvinternet.i.../HenkStyl3.htm


Your help does a lot to make me loose my fear for a table-less layout!
I will have a good look at what you have done, and may well take the
plunge.


Some explanation may help as there are a few hacks in there that may
make it less than obvious as to the why:

The page is wrapped in a <div class="content"></div> because IE does not
support setting the 736px width of the page directly on the body element
(which works fine in most other UAs).

IE5.5 does not support centering the content div in a spec compliant way
(by setting the left and right margin to auto), a hack that exploits a
bug in IE5.5 to get the content div to center was added by setting the
body to "text-align:center", IE5.5 then (erroneously) centers the
content div. Spec compliant browsers and IE6 ignore this, they use the
"margin:auto" rule applied to the content div itself.

A further hack is then needed as setting "text-align:center" on the body
element is inherited by descendant elements, so "text-align:left" was
added to the content div itself to prevent that from happening.

The menu was marked up using an unordered list, this is considered the
appropriate markup for what is essentially "a list of links".

Since the menu needs to be displayed horizontally those <li> elements
have been set to "display:inline", text links like the ones you use are
by default inline, this is not wanted in this case because inline
elements cannot be assigned a width. Unfortunately due to a missing
feature in CSS2.0 there is no "inline-block" element available. We can't
use block because that would result in the buttons being displayed
vertically. Enter another hack: setting the nav links to "float:left",
floats are block level elements, hence they can be assigned a width, but
since all menu links are floated left, they are displayed horizontally.

Due to the fact that this is a hack, a drawback now pops up: the <ul>
(block level) element's height collapses to 0 since floated elements are
not "part of the flow" (CSS speak, sorry). This has a negative effect on
being able to specify a top and bottom margin on the menu <ul>, to
counter that effect the <ul> has been assigned a height of 1.3em, this
is roughly equal to the button text height and since it's specified as
em it will expand with the text if the menu text is zoomed.

--
Spartanicus
Jul 20 '05 #59
On Sun, 11 Apr 2004 15:58:08 +0100, Spartanicus wrote:
Some explanation may help as there are a few hacks in there that may
make it less than obvious as to the why:


That certainly helped! Just when it seemed so easy...
I have printed out your explanation and will keep it at hand as my very own
custom made css-course.

I had started out trying to use just css (without tables), but ran into too
many complications. Your hacks teach me a lot about what can crop up and
what to do about it.

I am in your debt.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #60
On Sun, 11 Apr 2004 15:58:08 +0100, Spartanicus wrote:
Some explanation may help as there are a few hacks in there that may
make it less than obvious as to the why:


That certainly helped! Just when it seemed so easy...
I have printed out your explanation and will keep it at hand as my very own
custom made css-course.

I had started out trying to use just css (without tables), but ran into too
many complications. Your hacks teach me a lot about what can crop up and
what to do about it.

I am in your debt.
--
Groet, Adriana.
[throw rubbish out if you want to reach me by e-mail]
Jul 20 '05 #61

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

Similar topics

5
by: Jensen Bredal | last post by:
Hello, I need to display self refreshing information on a web page written with asp.net. I would image that the info would be displayed either as part of a user control or a web control. How can...
1
by: spolsky | last post by:
hi, i have the following pages. when form submitted with the field1 value is "ok" then the iframe must be loaded with the text "Page loaded...". This works fine with IE 6 and FireFox(1.5) but...
0
by: sean.hpr | last post by:
Hi all- I am a vb2005 newb so apologies in advance. Essentially I am having some problems with data refreshing on some of my forms. Background: I have created a project containing a few...
13
by: honey99 | last post by:
Hi! I have to fix a problem in JSP.Actually,i have a JSP page say Ex1.jsp.In this Ex1.jsp i have an anchor tag which links into another JSP page i.e when i click on the link another pop-up window...
1
by: Steve S | last post by:
Hey guys, I'm stuck with using a GridBagSizer (wxPython) in a GUI Dialog and am having a frustrating time with refreshing it properly. Essentially, I've got to refresh the contents of the...
6
by: shankari07 | last post by:
hi guys, I have a form in html which has the city drop down. when clicking the drop down a javascript is called and a file(test.txt) is created and the city is written into the file. Through php...
0
acoder
by: acoder | last post by:
Problem onload and onunload events do not fire when going back, forward or refreshing the page Browser Opera Example Any code using onload or onunload, e.g. window.onload = init; where...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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,...

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.