473,796 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS Padding(Margin? ) Issues in Firefox

A veteran of early html, I've modified my blog template and made it
look rather clean (albeit rather plain) when viewed with IE.

Ironically, I'm a big Firefox fan, but when viewed in FF, my blog
leaves a lot to be desired.

The blog (which is at http://lazycomic.blospot.com/ ) is a basic two
column style, with the right column being the one that's giving me the
problems.

In IE, it has nice padding around the text in the right column and
decent spacing between it and the left (main) column. It also sits
rather nicely in the middle of the window.

PROBLEM #1 In FireFox, the text in the right column is slammed right
into the left edge of the column. The bulleted items even go into the
main column. (I've noticed the FF users continue to read my blog -- and
I appreciate it -- but it looks rather dreadful.)

PROBLEM #2 In IE, the color (#f5f5f5) for the right column follows
neatly until it's done, while it FireFox it seems to end abruptly.

I'm sure there are a ton of poor syntax issues with my blog template,
but any help on correcting these two problems would be a great step in
the right direction.

Oct 22 '06
11 6877

J.O. Aho wrote:
Why not make two CSS files, one for Gecko based browsers and one for MSIE,
1. because it's a bad idea.

2. because it's pointless. IE isn't _that_ bad. If you can hit the
standard then not only is FF happy, but even IE will get nearly
everything right, so long as you use a suitable doctype to get it into
standards-based rendering mode. One stylesheet will fit all.

The only issues I know of where you can't do this are for the default
treatment of lists (just set everything (margin & padding) explicitly
for both). Also IE still have some font-sizing issues.
a little bit of javascript that selects the right CSS based on the user-agent
string.
That's _MUCH_ worse.

Oct 24 '06 #11

Followup-to set: alt.html
Here's the *correct* URL: http://lazycomic.blogspot.com/
1-
You've got 284 validation markup errors
http://validator.w3.org/check?uri=ht....blogspot.com/

Your problem could be related to those, you know.. Without fixing those
first, it's counter-productive to try to figure out what could be the
problem.

Using Web Standards in Your Web Pages
The benefits for valid markup code
http://www.mozilla.org/docs/web-deve...itsvalidmarkup

Mozilla Web author FAQ
http://www.mozilla.org/docs/web-developer/faq.html

Why we won't help you
http://diveintomark.org/archives/200..._wont_help_you
2-
Some of your CSS declarations imply a font-size of 10px. Now, that's
very small for people (over 40 years old) who may have set a minimum
font-size of over 12px for webpages in Firefox. Have you checked your
layout with such minimum setting?

3-
You have many errors in your css declarations: here's a few:

Invalid number : float center is not a float value : center
# Line: 96 Context : #rightcontent

Invalid number : margin only 0 can be a length. You must put an unit
after your number : 10 10 10 10
# Line: 100 Context : #rightcontent

Invalid number : padding only 0 can be a length. You must put an unit
after your number : 10 10 10 0
4-
You have all kinds of CSS, javascript and a deep and wide DOM tree: this
is exactly the type of code that requires strict validation, combining
and compressing declarations and reduction of DOM tree.

5-
Font-size should never be defined with px. This is well known:

W3C Quality Assurance tip for webmaster:
Care With Font Size: Forget <font>, use CSS
"Do not specify the font-size in pt, or other absolute length units for
screen stylesheets. They render inconsistently across platforms and
can't be resized by the User Agent (e.g browser).
Use relative length units such as percent or (better) em"
http://www.w3.org/QA/Tips/font-size#css

Followup-to set: alt.html

Gérard
--
remove blah to email me
Oct 28 '06 #12

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

Similar topics

12
3512
by: Andrew Thompson | last post by:
I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE> at http://www.physci.org/test/chem/, or rather, the table itself is.. http://www.physci.org/test/chem/ptoe.html It contains valid HTML and CSS (checked 'moments' ago). Am testing in IE 6 on XP. My questions..
2
2301
by: Lukasz Grabun | last post by:
There's a page http://www.dwarfscorner.com It looks as nice as I could design it; I like it, I think. There's just one thing I can't get along with: the vertical allignment of h2 in grey and white sections. The former is noticably lower than the latter! And I can't figure out why it is this way. The grey section is floated - does it influence the standard padding/margin in any way? Corresponding CSS style file can be found here
18
2967
by: Toronto Web Designer | last post by:
I'm having trouble with the padding and margin properties. IE tends to be happier with the padding and Netscape with the margin property. So I tried this: <link href="netscape-styles.css" rel="stylesheet" type="text/css"> <style type="text/css"> @import url(ie-styles.css); </style>
2
6756
by: StarQuake | last post by:
At this site: http://forwarding.robas.com You can see in IE there is cell padding in 'Berkman Bedrijven' and with Firefox there isn't. I don't want any cell padding. Anyone? -- -----------------------------------------
1
5587
by: RA | last post by:
Hi When I create a table and aligned it to the left, how can I have some padding added from the left so that the user will see the table border on the left? I don't want to use the vs style builder. Thanks
2
4362
by: Syl | last post by:
Hi - I have createed a two column page with a form that displays in each column. The right side column is not displaying properly - it seems as though the *left* colmun is mkaing the right column be un-aligned. here's a link.... http://www.dannyn.com/havealook.html
3
6506
by: Daz | last post by:
Hi everyone. I have just been making a JavaScript chat applet, which should open in a new child window. It does all of this fine, and works within Firefox beatifully. However, IE thinks it's necessary to stop my iFrames from spaning the entire length and width of the Window, and add about 7-8mm of padding/margin to the inside of the Window. I can't figure out, whether it's adding it to the inside of the window, or the outside of the...
0
1570
by: as702ecs | last post by:
hi guys, bit of a strange one. when using the holly hack to address the well-documented "expanding box" problem in ie6, i encounter an undesired side-affect - all my unordered list items exhibit a phantom 4px pad (right & bottom only). i've attached some sample code to illustrate (in this case with images although it applies to text also). any clues? :( <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10168
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4114
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
2
3730
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.