472,954 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Weird Opera float problem

I'm developing a site using CSS layout. One of the main divs contains
the content, another contains the side bar. I want the content next to
the sidebar so the content is floated left and the sidebar is floated
right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).

I can't find any reference to any bugs in Opera that would cause it to
behave like this, does anyone have any ideas?

This is the URL of the page template I'm working on:
http://www.pilipala-crafts.co.uk/pilipala/

and this is the URL of the stylesheet:
http://www.pilipala-crafts.co.uk/pilipala/style.css

Thanks

Jul 21 '05 #1
10 5390
in comp.infosystems.www.authoring.stylesheets, Andrew wrote:
I'm developing a site using CSS layout. One of the main divs contains
the content, another contains the side bar. I want the content next to
the sidebar so the content is floated left and the sidebar is floated
right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).
Interesting, this type of layout should work in Opera 6. Only float bug I
remeber is related to boxes that aren't divided by whitespace, but it
shoudl not result something like this. I don't have Opera 6 installed, so
can't say more.

Anyway Opera 6, even if it has better support for CSS2 than IE or FF, is
some old, and 6.0 is not the latest in branch either. I suspect it works
at least in Opera 7 and 8.
I can't find any reference to any bugs in Opera that would cause it to
behave like this, does anyone have any ideas?


AFAIK there is no known bug that causes this kind of effects.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
Jul 21 '05 #2
"Andrew" <an*************@gmail.com> wrote:
This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).


Opera 6 is ancient, rarely used anymore, not worth trying to debug
cosmetic issues.

--
Spartanicus
Jul 21 '05 #3
"Andrew" <an*************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I'm developing a site using CSS layout. One of the main divs contains
the content, another contains the side bar. I want the content next to
the sidebar so the content is floated left and the sidebar is floated
right. This looks fine is Firefox and IE but doesn't in Opera ( Opera 6
screenshot - http://www.browsercam.com/projects/171753/3119279.jpg ).

I can't find any reference to any bugs in Opera that would cause it to
behave like this, does anyone have any ideas?


Opera6? That's like worrying about how Internet Explorer 4 displays a page.

The page looks fine in Opera8.01, which is the latest release.
Jul 21 '05 #4
in comp.infosystems.www.authoring.stylesheets, Danny@Kendal wrote:
Opera6? That's like worrying about how Internet Explorer 4 displays a page.


No, Opera 6 and even 5 could be used on low end machines quite
reasonably, they work better than IE6 without JS in modern web. There is
currently no security problems in Opera 6 (secunia reports crash bug, but
I wouldn't consider it security problem)

Opera just has gotten more major versions, so it seems that it is old.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
Jul 21 '05 #5
So back to my original question, does anyone have any idea what's
causing this odd behaviour?

Jul 21 '05 #6
in comp.infosystems.www.authoring.stylesheets, Andrew wrote:
So back to my original question, does anyone have any idea what's
causing this odd behaviour?


Almost impossible to say without trying. Could be simple rounding error,
as you do pixel perfect with other units. Try smaller width on right
floated stuff, as it looks it is too wide.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
Jul 21 '05 #7
"Andrew" <an*************@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
So back to my original question, does anyone have any idea what's
causing this odd behaviour?


Does the following link help?

http://www.opera.com/docs/specs/opera6/

I've downloaded Opera6 and I'm trying to recreate the problem with a basic
layout but so far everything looks exactly as expected. Humph! Damned
Opera - never breaks when you want it to!
Jul 21 '05 #8
in comp.infosystems.www.authoring.stylesheets, Danny@Kendal wrote:
"Andrew" <an*************@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
So back to my original question, does anyone have any idea what's
causing this odd behaviour?
Does the following link help?

http://www.opera.com/docs/specs/opera6/


No, I know Opera 6 far better than that link...
I've downloaded Opera6 and I'm trying to recreate the problem with a basic
layout but so far everything looks exactly as expected. Humph! Damned
Opera - never breaks when you want it to!


So it is most likely rounding error. Note that 1em of width is not always
same as 1em of margin, but 1px bigger or smaller.


--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
Jul 21 '05 #9
"Andrew" <an*************@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
So back to my original question, does anyone have any idea what's
causing this odd behaviour?


Found it! (I think)

Older/some(?) versions of Opera didn't clip overflowed content properly. It
may not have been displayed but it did affect layout. The line height in
#topnav is not necessary. I downloaded a copy of your site, removed the
lineheight from the stylesheet and your page then displayed correctly.

Here is the offending code in your stylesheet.
(best viewed in monospace font)

#topnav { width: 780px;
height: 30px;
HERE----> line-height: 30px;
background: #D5E7FA url(topnav_b.gif) repeat-x;
border-right: 1px solid #FFFFFF;
border-bottom: 1px solid #74A5D7;
margin: 0;
padding: 0;
}
Jul 21 '05 #10
Fantastic, who would have thought that was the cause?!

Thanks very much for all your hard work on this, and thanks also to
everyone else who offered suggestions :)

Jul 21 '05 #11

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

Similar topics

13
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be...
4
by: louissan | last post by:
Hi all, I've met a problem with Opera and its ability to render absolutely positioned divs inside relatively positioned parent blocks, themselves contained inside a relatively positioned...
1
by: Kyle James Matthews | last post by:
Hello, I am curious if any of you have a solution to a problem I am having on this page: <http://www.digitalovertone.com/new/index2.php>. The navigation bar displays correctly on every browser...
2
by: Martin Doyle | last post by:
Ok, I'm building a JS-based limitless-sublevel dynamic menu and am making it cross browser as well - 3 packs of aspirin so far and counting ;) I'm having a weird rendering problem using Opera...
1
by: Peter Mount | last post by:
Hi When I zoom into my site (http://www.petermount.au.com) with Opera 7.54 the horizontal scrollbar doesn't show when the site image is bigger than my screen. Yet the horizontal scrollbar shows...
3
by: eternalD3 | last post by:
Hi, I have a problem to get this working on Opera 7.x+. This does not need to work on older Opera browsers There are problems on rendering the sub-level navigation. It aligns right on Firefox...
3
by: Holger (David) Wagner | last post by:
Hi all, we're currently developing an application in the .NET environment that needs to access a DLL implemented in Fortran. There is one procedure with about 17 parameters, most of them arrays....
11
by: listerofsmeg01 | last post by:
Argh! I'm going nuts trying to get a constant margin after a floated div that works cross browser. This works in IE but not Firefox: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"...
13
by: limelites | last post by:
In IE7, FF, Chrome and Safari, everything looks great but in Opera the display of the additional images in my product page looks awful. This is a site that does attract foreign visitors who do use...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
1
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.