473,513 Members | 3,949 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mozilla padding problem & IE display problem

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!
Jul 20 '05 #1
6 8047
On 24 Jun 2004 05:02:51 GMT, Thresh <uc*@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/...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...

Jul 20 '05 #2
On Thu, 24 Jun 2004 01:29:13 -0400, Neal <ne*****@yahoo.com> wrote:
On 24 Jun 2004 05:02:51 GMT, Thresh <uc*@ftc.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.

Jul 20 '05 #3
On Thu, 24 Jun 2004 01:39:48 -0400, Neal <ne*****@yahoo.com> wrote:
http://www.w3.org/TR/html4/interact/...ml#edef-BUTTON


Wow I screwed that up. I intended
http://www.w3.org/TR/html4/index/attributes.html
Jul 20 '05 #4
>> 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.
Jul 20 '05 #5
On 24 Jun 2004 17:32:56 GMT, Thresh <uc*@ftc.gov> wrote:
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.

Well, when IE is different, it's usually because it's wrong.

Someone else might wander in and see it right off, but near as I can
figure: you're setting a border on an inline element (<a>) which is not
predictable. I can't say I see the precise error.

But that's after I cleaned up your code, even. Didn't validate it, hmm?
:-\ In this case, it didn't affect anything, but it easily can.

1) Transitional DTD should be <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> - that yields
more consistent results.

2) Empty tags only get a terminal slash in XHTML. Should NOT do this in
HTML 4.01. <img>, <meta>

3) <style> needs attribute type - in this case, type="text/css"

4) The id attribute may be used more than once on a page so long as the
value differs. You have 4 instances of id="roller" which is an error. Use
class instead of id when you want it more than once.

5) Not necessarily an error, but it's senseless to set CSS for body and
also presentation attributes. Use one or the other, and in nearly every
case CSS is better cross-browser.

After I fixed all these, it still is acting unexpectedly. Opera is
behaving strangely as well. I'm not drunk yet, so it must be some quirk I
haven't accounted for.
Jul 20 '05 #6
Thresh wrote:
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
Jul 20 '05 #7

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

Similar topics

1
2473
by: Macamba | last post by:
Hi all, I am currently developing a website for a voluntary organisation. It is my first step in website development. The dynamic menu I developed has some bugs, which I addressed in another post. In this post I want to ask you why my code behaves differently in IE, while it behaves like I expect in Mozilla and Opera. What I would like to...
1
5622
by: delerious | last post by:
Could someone please take a look at this page: http://home.comcast.net/~delerious1/index11.html The set of links on the left should not have any whitespace between them, and the set of links on the right should have one pixel of whitespace between them. That's how it looks in IE and Opera. But in Mozilla, a few of the links on the left...
5
6081
by: Robert Downes | last post by:
I'm using the following in a page that I'm testing in Mozilla: p.actionLinkBlock {border: 1px #000000 dashed; padding: 0.2cm; width: auto} But the dashed border is extending to the right-edge of the screen. I want it to only extend as far as it needs to to nicely contain the content within (a couple of links). Is width: auto the wrong...
6
5156
by: Patrick | last post by:
Hi I am fairly new to CSS and the web.I am trying to build a site more to practice my skills than for the site itself. I have been focusing on CSS and try my best to make it work in I.E 6.0, Opera 7.23, Mozilla 1.4 and N.N. 7.1. My site was doing fine until i read i was supposed to keep everything validated so i entered a strict html 4.01...
12
4996
by: Mikejacko86 | last post by:
Hello everyone! I have decided to convert over my table-based layout to pure CSS, to reduce filesize and to increase my designs flexibility. Apparently, I have run into quite a few problems. I wrote the code and tested it in IE (6), but it looks awful in Mozilla (firefox). Im quite sure my problems are basic, as there really isnt much...
7
5754
by: Marc | last post by:
Hi everyone. I am having trouble with a stylesheet in mozilla. It is part of turning a list into a menu: #menu li{ margin: 0; display: inline; vertical-align: bottom;
1
4938
by: Ryan Stewart | last post by:
If you don't want to read this post because of its length, I understand. I've spent two and a half days on this problem and have a good deal of information to relate. And this is kind of a long shot, but I'm just hoping someone here has experienced a similar problem and has a better idea of what's going on than I do. First, I've tested this...
4
4418
by: conckrish | last post by:
Hai All, In my ASP.NET application, I have created a popup window using a mouseover event for Label.I have placed all popup controls inside a div tag.This popup working well in IE,but not working in mozilla.. How to solve this div tag problem?? How to show the Popup ib Mozilla? My code look like this :
3
4923
by: Jannette | last post by:
I've got this to finally work in IE (its only taken me 2 days solid), but now mozilla isn't displaying the text on the same line as the image. I'm a newby at CSS, and I've think I've worked on trying to resolve this too long and now I'm totally lost. I've posted this up to a site: *************************Uploaded to SERVER...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.