HighDots Forums  

Mysterious top margin or padding in Opera

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


Discuss Mysterious top margin or padding in Opera in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jmm-list-gn
 
Posts: n/a

Default Mysterious top margin or padding in Opera - 10-09-2004 , 09:21 PM






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)

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

Default Re: Mysterious top margin or padding in Opera - 10-10-2004 , 06:27 AM






jmm-list-gn <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote:

Quote:
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.

Quote:
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.

Quote:
that I cannot remove.
Sure you can: ul li{margin:0;padding:0}

Quote:
(I have ordered Opera v7.)
It's a free download: http://www.opera.com/download

Quote:
Is this a known issue?
Default margin, padding and line-height varies amongst UAs, perfectly
normal, leave it alone when possible.

Quote:
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


Reply With Quote
  #3  
Old   
Christoph Paeper
 
Posts: n/a

Default Re: Mysterious top margin or padding in Opera - 10-10-2004 , 07:27 AM



Spartanicus <me (AT) privacy (DOT) net>:
Quote:
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.

Quote:
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


Reply With Quote
  #4  
Old   
Spartanicus
 
Posts: n/a

Default Re: Mysterious top margin or padding in Opera - 10-10-2004 , 11:23 AM



Christoph Paeper <christoph.paeper (AT) nurfuerspam (DOT) de> wrote:

Quote:
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


Reply With Quote
  #5  
Old   
jmm-list-gn
 
Posts: n/a

Default Re: Mysterious top margin or padding in Opera - 10-10-2004 , 01:24 PM



Spartanicus wrote:
Quote:
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.
Quote:
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)


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

Default Re: Mysterious top margin or padding in Opera - 10-10-2004 , 01:57 PM



jmm-list-gn <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote:

Quote:
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


Reply With Quote
  #7  
Old   
jmm-list-gn
 
Posts: n/a

Default Re: Mysterious top margin or padding in Opera - 10-11-2004 , 02:21 AM



Spartanicus wrote:
Quote:
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)


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

Default Re: Mysterious top margin or padding in Opera - 10-11-2004 , 04:24 AM



jmm-list-gn <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote:

Quote:
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


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.