469,347 Members | 1,710 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,347 developers. It's quick & easy.

Mysterious top margin or padding in Opera

Hello,
<http://www.asaom.edu>
There are some curious spacing issues with the top bar (gray) and the
main navigation bar.
The most significant is how the nav bar looks in Opera v6 (win2k): the
text portion is has extra space at the top that I cannot remove. As a
result the text portion is pushed below the background bar by a few
pixels. This does not occur in Mozilla/Firefox, or IE6. (I have ordered
Opera v7.) Is this a known issue?
The secondary issue is the difference in height of the top bar, the
gray portion. In Mozilla there is an extra little space at the bottom, 2
pixels it looks like. In Opera and IE6 there is no space so the vertical
white line meets the nav bar. Which is "correct"?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #1
7 6002
jmm-list-gn <jm***************@sohnen-moe.com> wrote:
<http://www.asaom.edu> The most significant is how the nav bar looks in Opera v6 (win2k):
Opera users upgrade quicker and in greater numbers than users of other
UAs. V6 has few users already.
the text portion is has extra space at the top
Opera has a small user base, fretting over minor cosmetic issues in an
old version is pointless.
that I cannot remove.
Sure you can: ul li{margin:0;padding:0}
(I have ordered Opera v7.)
It's a free download: http://www.opera.com/download
Is this a known issue?
Default margin, padding and line-height varies amongst UAs, perfectly
normal, leave it alone when possible.
The secondary issue is the difference in height of the top bar, the
gray portion. In Mozilla there is an extra little space at the bottom, 2
pixels it looks like. In Opera and IE6 there is no space so the vertical
white line meets the nav bar. Which is "correct"?


Probably all three, different default margin, padding and line-height
again.

--
Spartanicus
Jul 20 '05 #2
Spartanicus <me@privacy.net>:

Opera users upgrade quicker and in greater numbers than users of other
UAs.
That may be true, although I'm currently a few subversions behind.
V6 has few users already.


There are good reasons to stick with Opera 6 instead of 7, resources and
speed for example. CSS conformity in none of them, though.

--
"Put it back in the horse!"
H. Allen Smith, after he drank his first American beer at a bar
Jul 20 '05 #3
Christoph Paeper <ch**************@nurfuerspam.de> wrote:
There are good reasons to stick with Opera 6 instead of 7, resources and
speed for example.


On mobile phones perhaps, but V7.5 runs fine on my low spec machine
(PII/266Mhz/64Mb ram/4500rpm HD). V6 is on balance no faster here.

--
Spartanicus
Jul 20 '05 #4
Spartanicus wrote:
The most significant is how the nav bar looks in Opera v6 (win2k):
Opera users upgrade quicker and in greater numbers than users of other
UAs. V6 has few users already.

I suspected as much.
the text portion is has extra space at the top
that I cannot remove.
Sure you can: ul li{margin:0;padding:0}

Ah..., no. Did not work.
It all looks good in Opera7. I'll leave it at that.
Is this a known issue?


Default margin, padding and line-height varies amongst UAs, perfectly
normal, leave it alone when possible.

Okay.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #5
jmm-list-gn <jm***************@sohnen-moe.com> wrote:
the text portion is has extra space at the top
that I cannot remove.


Sure you can: ul li{margin:0;padding:0}

Ah..., no. Did not work.


Sure it does: http://www.spartanicus.utvinternet.ie/test/jmm.png

--
Spartanicus
Jul 20 '05 #6
Spartanicus wrote:
the text portion is has extra space at the top
that I cannot remove.

Sure you can: ul li{margin:0;padding:0}

Ah..., no. Did not work.


Sure it does: http://www.spartanicus.utvinternet.ie/test/jmm.png

Hm, the mystery deepens. I added the above CSS to the content1.css file
and it made no difference to the appearance in Opera v6. It must be a
placement-in-the-file thing. I'll experiment tomorrow.
BTW where did you insert the code?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #7
jmm-list-gn <jm***************@sohnen-moe.com> wrote:
Ah..., no. Did not work.


Sure it does: http://www.spartanicus.utvinternet.ie/test/jmm.png

Hm, the mystery deepens. I added the above CSS to the content1.css file
and it made no difference to the appearance in Opera v6. It must be a
placement-in-the-file thing.


http://www.w3.org/TR/CSS21/cascade.html#specificity

--
Spartanicus
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Harlan Messinger | last post: by
6 posts views Thread by Haines Brown | last post: by
3 posts views Thread by Blacksmith | last post: by
7 posts views Thread by Greg Heilers | last post: by
10 posts views Thread by Alan Silver | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.