473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help with Firefox margin issue

I can't seem to remove some extra margin/padding from my design on this
site:

http://www.kyowa-usa.com/

IE displays it properly (no space between the menus and other elements
and the outer border), but in Firefox I always end up with some space.

I have tried several box model fixes (to no avail), and I'm no longer
sure that's what's going on.

Anyone have any idea what is causing this problem?

THANKS in advance for your replies.

Aug 31 '05 #1
6 6839
mi********@gmail.com wrote:
I can't seem to remove some extra margin/padding from my design on
this site:

http://www.kyowa-usa.com/

IE displays it properly (no space between the menus and other
elements and the outer border), but in Firefox I always end up with
some space.


A pixel or two? Actually, it looks fine to me in Firefox.

You may want to fix the errors first, and see if that cures the problem.
<http://validator.w3.org/check?verbose=1&uri=http%3A//www.kyowa-usa.com/>
<http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//www.kyowa-usa.com/>

Are these new pages? Why are you using Transitional instead of Strict
doctype?

Remove the extraneous table just inside the <body>. There should be no
reason for that.

There is a lot of empty space when my browser is maximized. Let it float.

--
-bts
-This space intentionally left blank.
Aug 31 '05 #2
Hmm... I didn't realize that so many errors had crept into my code
since my last validation. I'll try fixing them, but since they're
basically all just TM characters, a couple of missing quotes, and
old-school Flash compatibilty I doubt that'll be the magic bullet.

I added that table to center the page vertically. As far as I know
there's no reliable way to do that with pure CSS when you don't know
the height of your object. I think that's why I switched from Strict to
Transitional also.

So you don't see an extra pixel or two of white space around the inside
edges in Firefox (on either end of the menu bar, for example)? Hmm that
would be great if it's just me. Still I'm mocking up a similar site
now, and I'm seeing the same issue on all four sides of the wrapper div.

Aug 31 '05 #3
Please read:
http://www.safalra.com/special/googlegroupsreply/

mi********@gmail.com wrote:
Hmm... I didn't realize that so many errors had crept into my code
since my last validation. I'll try fixing them, but since they're
basically all just TM characters, a couple of missing quotes, and
old-school Flash compatibilty I doubt that'll be the magic bullet.
One error can cause unexpected results. Best to fix them all first.
I added that table to center the page vertically. As far as I know
there's no reliable way to do that with pure CSS when you don't
know the height of your object. I think that's why I switched from
Strict to Transitional also.
Switch back to Strict. Transitional is for .. modifications to legacy
pages you don't want to totally rewrite.

Don't understand how you could center the page vertically. It is
already about "two scrolls worth" of page.

If you must have background borders around the content, just do that
with some margin to the master <div>.
So you don't see an extra pixel or two of white space around the
inside edges in Firefox (on either end of the menu bar, for
example)? Hmm that would be great if it's just me. Still I'm
mocking up a similar site now, and I'm seeing the same issue on all
four sides of the wrapper div.


Yes, I do see a couple pixels of "white" space at the ends of the menu
bar. I like it that way. <g> From my non-deeziner's eye, add even
another pixel or two.

--
-bts
-This space intentionally left blank.
Aug 31 '05 #4

Beauregard T. Shagnasty wrote:
Please read:
http://www.safalra.com/special/googlegroupsreply/
Thanks for the tip!
One error can cause unexpected results. Best to fix them all first.
True. I'll fix them and see. Although I believe these errors are all
specific to the home page, and this issue exists on all pages (and in
another similar design I'm working on now).
Switch back to Strict. Transitional is for .. modifications to legacy
pages you don't want to totally rewrite.
I think that it does not validate as Strict, but it's been a while and
I don't remember for sure.
Don't understand how you could center the page vertically. It is
already about "two scrolls worth" of page.
Depends on your monitor... On larger monitors this table causes the
entire page to center vertically as well as horizontally. I like that
effect enough to use a table to get it.
If you must have background borders around the content, just do that
with some margin to the master <div>.


That's how I'm doing it, but it's not working as I want on Firefox.

Could it have to do with display:table? Without that Firefox does not
wrap the div around the content, so I had to add it (and a second inner
wrapper div). But perhaps I need to declare a border-collapse or other
property for this div when it's defined that way?
So you don't see an extra pixel or two of white space around the
inside edges in Firefox (on either end of the menu bar, for
example)? Hmm that would be great if it's just me. Still I'm
mocking up a similar site now, and I'm seeing the same issue on all
four sides of the wrapper div.


Yes, I do see a couple pixels of "white" space at the ends of the menu
bar. I like it that way. <g> From my non-deeziner's eye, add even
another pixel or two.


It's funny, but everyone else says the same thing to me and wonders why
I'm obsessing over something that looks different but fine. I've lived
with it this way for a while now, but now that I'm doing a new design
with the same problem I want to figure it out once and for all. Call me
obsessive (it's true).

Thanks for your comments, btw.

Aug 31 '05 #5
mi********@gmail.com wrote:
Beauregard T. Shagnasty wrote:
Please read: http://www.safalra.com/special/googlegroupsreply/
Thanks for the tip!


You're welcome; I see it works.
One error can cause unexpected results. Best to fix them all
first.


True. I'll fix them and see. Although I believe these errors are
all specific to the home page, and this issue exists on all pages
(and in another similar design I'm working on now).


"This issue" isn't much of an issue, to me. <g>
Switch back to Strict. Transitional is for .. modifications to
legacy pages you don't want to totally rewrite.


I think that it does not validate as Strict, but it's been a while
and I don't remember for sure.


Then write it so it will validate with Strict. Shouldn't be difficult
at all.
Don't understand how you could center the page vertically. It is
already about "two scrolls worth" of page.


Depends on your monitor... On larger monitors this table causes the
entire page to center vertically as well as horizontally. I like
that effect enough to use a table to get it.


When I look at the page with a max 1024x768 resolution, and browser
maximized, the most-bottom thing I see is the link to "Hakko U.S.A.
Vice President". You must either have a very large monitor, or you
have no toolbars or tabs at the top of your browser window.

Besides, everyone I know expects the page to begin at the top of the
browser viewport, not in the middle.
If you must have background borders around the content, just do
that with some margin to the master <div>.


That's how I'm doing it, but it's not working as I want on Firefox.

Could it have to do with display:table? Without that Firefox does
not wrap the div around the content, so I had to add it (and a
second inner wrapper div). But perhaps I need to declare a
border-collapse or other property for this div when it's defined
that way?


Sorry, I've never needed to do that.
So you don't see an extra pixel or two of white space around
the inside edges in Firefox (on either end of the menu bar, for
example)? Hmm that would be great if it's just me. Still I'm
mocking up a similar site now, and I'm seeing the same issue on
all four sides of the wrapper div.


Yes, I do see a couple pixels of "white" space at the ends of the
menu bar. I like it that way. <g> From my non-deeziner's eye,
add even another pixel or two.


It's funny, but everyone else says the same thing to me and wonders
why I'm obsessing over something that looks different but fine.


Well, there is your answer! As I said above, it looks just fine the
way it is. 'Tis a good-looking site. The only thing I don't really
care for is the fact that it is fixed-width and requires horizontal
scrolling at anything less than about 750px.
http://home.rochester.rr.com/bshagna...marginset.html

Remember too, that none of your real visitors are going to look at the
pages in more than one browser. Only us authors compare across
multiple browsers. I doubt if anyone will ever contact you and say,
"Hey! There's a two-pixel white space next to the menu!! I'm not going
to buy your products!!!"
I've lived with it this way for a while now, but now that I'm doing
a new design with the same problem I want to figure it out once and
for all. Call me obsessive (it's true).
Ok, you're obsessive!
Thanks for your comments, btw.


Welcome.

--
-bts
-This space intentionally left blank.
Aug 31 '05 #6
One error can cause unexpected results. Best to fix them all
first.
True. I'll fix them and see. Although I believe these errors are
all specific to the home page, and this issue exists on all pages
(and in another similar design I'm working on now).


This page validates fine, but also has the extra-pixel issue:
http://www.kyowa-usa.com/corporate.html
Then write it so it will validate with Strict. Shouldn't be difficult
at all.


And now I see why I switched from Strict to Transitional:
http://validator.w3.org/check?uri=ht...rict&verbose=1

Knowing you're being obsessive doesn't always help you to stop doing
it, but I appreciate your comments anyway.

Aug 31 '05 #7

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

Similar topics

4
by: Viken Karaguesian | last post by:
Hello all, I'm have an annoyance I can't seem to solve. I'm working on a website that has a sidebar floating to the right. In the sidebar is an unordered list. In IE and in Opera, the list shows...
4
by: dsimmons | last post by:
On my website http://seasidequilters.blogspot.com/ I'm having a problem that someone thinks might be associated with Firefox browsers. I'm hoping to find someone in this forum that might be...
4
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable...
10
by: Alan Silver | last post by:
Hello, In my (seemingly) endless quest to understand CSS, I have yet another problem. Please look at http://www.kidsinaction.org.uk/ph/x.html in Opera, where you will see it how I expected. If...
2
by: Jessica M | last post by:
I am having the following problem http://jessica.ourprofile.net/ are being rendered differently on Firefox and IE6 (PC). I have outline the div culprits in red to help with debugging....
3
by: autospanker | last post by:
Ladies and Gentleman, I have been having this problem that has been driving me insane. I have a website that when viewed in Firefox first, the content in the body area is pushed down. Then when...
3
by: GaryDean | last post by:
If you go to my website, www.deanblakely.com, in I.E. you will see that it displays fine but if you browse it in FireFox 1.7 you will see stuff on the Master Page that is not alligning right. I...
1
by: innivive | last post by:
I am having a problem with having margins display correctly in IE7, Firefox and Safari. I am not sure if it is the "double margin error" or something else. Any help would be appreciated. The file...
14
by: issentia | last post by:
I'm working on this site: http://www.essenceofsoy.com/redesign/index2.html and I'm having a few problems with getting the layout exactly right. 1) When the menu items are rolled over, they...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.