HighDots Forums  

Mozilla padding problem & IE display problem

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


Discuss Mozilla padding problem & IE display problem in the Cascading Style Sheets forum.



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

Default Mozilla padding problem & IE display problem - 06-24-2004 , 12:02 AM






Hi all, two problems that I've been wrestling with:

1) I've got some images on a site that are links. I've got them set for 2px
of padding, and a 1px border. The color changes upon hover. This works fine
in IE v6 (amazingly), but it doesn't work correctly in Mozilla v1.7! It's
getting the left and right padding correct, but the top padding is 7px
instead of 2, and the bottom padding is 5 (instead of 2). It looks exactly
right in IE, however. Any clues here? I thought about this one for half
of the day today, and I've officially given up!

2) I've got another site I'm working on (http://tumbleweed.net) that is
using all text in the navigation area. What I want is for the default state
to have a - next to each link in the navigation area until you mouseover it -
then it changes to a +. Works great in Mozilla, but shows both - & + in IE.
If anyone would like to check out the code on that one and give me some
advice, I'd be much obliged!

thanks for any help!

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

Default Re: Mozilla padding problem & IE display problem - 06-24-2004 , 12:29 AM






On 24 Jun 2004 05:02:51 GMT, Thresh <uce (AT) ftc (DOT) gov> wrote:

Quote:
Hi all, two problems that I've been wrestling with:

1) I've got some images on a site that are links. I've got them set for
2px
of padding, and a 1px border. The color changes upon hover. This works
fine
in IE v6 (amazingly), but it doesn't work correctly in Mozilla v1.7! It's
getting the left and right padding correct, but the top padding is 7px
instead of 2, and the bottom padding is 5 (instead of 2). It looks
exactly
right in IE, however. Any clues here? I thought about this one for half
of the day today, and I've officially given up!
Without a URL of the problem, we can't get into it enought to give up.

Quote:
2) I've got another site I'm working on (http://tumbleweed.net) that is
using all text in the navigation area. What I want is for the default
state
to have a - next to each link in the navigation area until you mouseover
it -
then it changes to a +. Works great in Mozilla, but shows both - & + in
IE.
If anyone would like to check out the code on that one and give me some
advice, I'd be much obliged!

thanks for any help!
Holy shit...

Dude, you are making up markup out of thin air. I can't fix this page. No
one here can. Learn HTML and get rid of bullshit like <bullet></bullet>
and <arrow></arrow> before you try again.

If you were in an XML environment, sure, you can create elements. But you
develop a DTD to account for them. You've stated you are using HTML 4.01
Transitional, which allows all the elements in the list at
http://www.w3.org/TR/html4/interact/...ml#edef-BUTTON (except those
marked with F for Frameset) and that's all you can use. <arrow>, <button>,
they don't exist. You're in a goddamn dream world...



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

Default Re: Mozilla padding problem & IE display problem - 06-24-2004 , 12:39 AM



On Thu, 24 Jun 2004 01:29:13 -0400, Neal <neal413 (AT) yahoo (DOT) com> wrote:

Quote:
On 24 Jun 2004 05:02:51 GMT, Thresh <uce (AT) ftc (DOT) gov> wrote:
2) I've got another site I'm working on (http://tumbleweed.net) that is
using all text in the navigation area. What I want is for the default
state
to have a - next to each link in the navigation area until you
mouseover it -
then it changes to a +. Works great in Mozilla, but shows both - & + in
IE.
If anyone would like to check out the code on that one and give me some
advice, I'd be much obliged!

thanks for any help!

Holy shit...

Dude, you are making up markup out of thin air. I can't fix this page.
No one here can. Learn HTML and get rid of bullshit like
bullet></bullet> and <arrow></arrow> before you try again.

If you were in an XML environment, sure, you can create elements. But
you develop a DTD to account for them. You've stated you are using HTML
4.01 Transitional, which allows all the elements in the list at
http://www.w3.org/TR/html4/interact/...ml#edef-BUTTON (except those
marked with F for Frameset) and that's all you can use. <arrow>,
button>, they don't exist. You're in a goddamn dream world...
Ok, maybe I was a little harsh... but I'd still like to know who foisted
those bullshit elements on you. Get your money back and then some.

1) Learn the rules for the DTD you chose. The list I gave you links
directly to the specs. Study them well.

2) Check out http://validator.w3.org/ - it is your best friend. Follow its
instructions. What it tells me about your page is that you left out the
type attribute on your script tag, and those two BS elements. And a few
other problems that occur as a result. Use it.

3) If you want the link to change on hover (and i assume active as well),
use CSS. I think, if you change your <arrow> and <bullet> markup to <span
class="arrow"> and <span class=bullet"> and style .arrow instead of arrow
and .bullet instead of bullet, it might work.

I do still want to know where you got this arrow and bullet crap. I'll
have their kneecaps broken over this.



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

Default Re: Mozilla padding problem & IE display problem - 06-24-2004 , 12:45 AM



On Thu, 24 Jun 2004 01:39:48 -0400, Neal <neal413 (AT) yahoo (DOT) com> wrote:

Wow I screwed that up. I intended
http://www.w3.org/TR/html4/index/attributes.html


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

Default Re: Mozilla padding problem - 06-24-2004 , 12:32 PM



Quote:
1) I've got some images on a site that are links. I've got them set
for 2px
of padding, and a 1px border. The color changes upon hover. This
works fine
in IE v6 (amazingly), but it doesn't work correctly in Mozilla v1.7!
It's getting the left and right padding correct, but the top padding
is 7px instead of 2, and the bottom padding is 5 (instead of 2). It
looks exactly
right in IE, however.

Without a URL of the problem, we can't get into it enought to give up.
Whoops, sorry: http://tumbleweed.net/testing.html

I've stripped it to the bare minimum for testing, and it's still doing the
same thing. Works in IE but not Mozilla. I think I'm in Bizarro world or
something, cuz that's just plain backwards from normal CSS behaviour.


Reply With Quote
  #6  
Old   
Phil Evans
 
Posts: n/a

Default Re: Mozilla padding problem - 06-25-2004 , 02:45 AM



Thresh wrote:
Quote:
1) I've got some images on a site that are links. I've got them set
for 2px
of padding, and a 1px border. The color changes upon hover. This
works fine
in IE v6 (amazingly), but it doesn't work correctly in Mozilla v1.7!
It's getting the left and right padding correct, but the top padding
is 7px instead of 2, and the bottom padding is 5 (instead of 2). It
looks exactly
right in IE, however.

Without a URL of the problem, we can't get into it enought to give up.


Whoops, sorry: http://tumbleweed.net/testing.html

I've stripped it to the bare minimum for testing, and it's still doing the
same thing. Works in IE but not Mozilla. I think I'm in Bizarro world or
something, cuz that's just plain backwards from normal CSS behaviour.
Afraid I haven't got time to play properly, but I had a fiddle with the
font-size (set to 10px for the sake of argument) and that certainly
reduced the gap at the top - looks promising

P


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.