This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Stylesheets > June 2004 > Mozilla padding problem & IE display problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mozilla padding problem & IE display problem
|
|
| Thresh 2004-06-24, 4:15 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!
| |
|
| On 24 Jun 2004 05:02:51 GMT, Thresh <uce@ftc.gov> wrote:
> 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.
> 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...tml#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...
| |
|
| On Thu, 24 Jun 2004 01:29:13 -0400, Neal <neal413@yahoo.com> wrote:
> On 24 Jun 2004 05:02:51 GMT, Thresh <uce@ftc.gov> wrote:
>
> 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...tml#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.
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|