Hello,
Here I am again with another "why does IE do that" question!!
Please have a look at http://www.kidsinaction.org.uk/fd/homepage.html
and see if you can work out why IE adds a one pixel white space on the
left and right side of the links with the light-green backgrounds. It
doesn't do it on the header links, which have darker green backgrounds.
FF and Opera don't add the pixel at all, which is what I would expect as
I set left and right margins to zero for all relevant elements.
Any suggestions? TIA
--
Alan Silver
(anything added below this line is nothing to do with me) 28 1922
On Wed, 26 Apr 2006 19:50:24 +0100, Alan Silver
<al*********@no spam.thanx.inva lid> wrote: Here I am again with another "why does IE do that" question!!
because it sucks.
Please have a look at http://www.kidsinaction.org.uk/fd/homepage.html and see if you can work out why IE adds a one pixel white space on the left and right side of the links with the light-green backgrounds. It doesn't do it on the header links, which have darker green backgrounds.
Just for kick, what happens if you fill in the href links?
Ken
On Wed, 26 Apr 2006 15:46:20 -0400, Ken Loomis
<no************ **@address.com> wrote: On Wed, 26 Apr 2006 19:50:24 +0100, Alan Silver Please have a look at http://www.kidsinaction.org.uk/fd/homepage.html and see if you can work out why IE adds a one pixel white space on the left and right side of the links with the light-green backgrounds. It doesn't do it on the header links, which have darker green backgrounds.
Just for kicks, what happens if you fill in the href links?
Well, I tried that and it didn't help.
It's the background color of your page being inherited by your ul.
If you put
background: rgb(136, 192, 184);
in your ul it will look good until someone hovers on the li. Maybe you
can live with that. There's probably a better solution. (like telling
your users not to use IE)
Ken
Alan Silver wrote: Please have a look at http://www.kidsinaction.org.uk/fd/homepage.html and see if you can work out why IE adds a one pixel white space on the left and right side of the links with the light-green backgrounds.
Any suggestions?
Same as I suggested before: add the zoom property
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Alan Silver wrote: Hello,
Here I am again with another "why does IE do that" question!!
Please have a look at http://www.kidsinaction.org.uk/fd/homepage.html and see if you can work out why IE adds a one pixel white space on the left and right side of the links with the light-green backgrounds. It doesn't do it on the header links, which have darker green backgrounds.
FF and Opera don't add the pixel at all, which is what I would expect as I set left and right margins to zero for all relevant elements.
Any suggestions? TIA
Must be because the link boxes are having "pack width" as opposed to
"max width". By setting width:100% for LI elements eliminates the gaps.
btw if you decided to force W3C on IE, then play by the rules ;-) In
CSS1Compat mode there are not default measurement units, so IE has all
rights to ignore margin:0 declaration. It doesn't do it of a good of
its heart :-) but margin: 0px 0px would be more appropriate.
VK wrote: In CSS1Compat mode there are not default measurement units, so IE has all rights to ignore margin:0 declaration.
Why?
It doesn't do it of a good of its heart :-) but margin: 0px 0px would be more appropriate.
<http://www.w3.org/TR/REC-CSS1#length-units>:
After a '0' number, the unit identifier is optional.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Johannes Koch wrote: VK wrote:
In CSS1Compat mode there are not default measurement units, so IE has all rights to ignore margin:0 declaration. Why?
Because they decided so and currently it's build into UA.
<http://www.w3.org/TR/REC-CSS1#length-units>: After a '0' number, the unit identifier is optional.
Are you planning to develope for IE by W3C papers? :-0
A daring intention bur very unpractical :-)
Before to switch IE into CSS1Compat mode, anyone has to learn and
memorize the famous "CSS Enhancements in Internet Explorer 6" article
at
<http://msdn.microsoft. com/library/en-us/dnie60/html/cssenhancements .asp>
Is it W3C-compliant or not, but this is exactly what IE does in
CSS1Compat mode, whether you like it or not. The only other option is
to leave it in the original BackCompat mode. IE doesn't have (and
doubtfully ever will) some third W3CUpToTheLastP oint mode ;-)
In the particular "Stricter Style Sheet Parsing" section states:
<quote>
Values without unit type identifiers and values with white space
between the number and the unit type identifier are ignored.
Note: There is one exception to this rule. The line-height explicitly
accepts unitless numbers and treats them in a manner similar to a
percentage setting. For example, "line-height: 2" is similar to
"line-height: 200%," differing only in how the number inherits.
</quote>
As you can see, zero values are not in the list. And indeed margin:0
makes IE in CSS1Compat mode upset. To check that out, simply open the
OP's link in IE 6, File > Save As > Web page complete. You will get the
normalized version of the page: not what is served from the server, but
what IE sees internally. Compare the treatment for paddings and for
margin:0 in the normalized version.
VK wrote: Johannes Koch wrote:
VK wrote:
In CSS1Compat mode there are not default measurement units, so IE has all rights to ignore margin:0 declaration.
Why?
Because they decided so and currently it's build into UA.
Sorry, I thought you meant IE is right (per some spec) to ignore "margin:0".
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
To further the education of mankind, Johannes Koch <ko**@w3develop ment.de>
vouchsafed: <http://www.w3.org/TR/REC-CSS1#length-units>: After a '0' number, the unit identifier is optional.
Interestingly, at least in css2, line-height:0; triggers an error message
in the validator.
--
Neredbojias
Infinity has its limits.
Johannes Koch wrote: Sorry, I thought you meant IE is right (per some spec) to ignore "margin:0".
IE is awfully wrong I guess :-)
But from all glitches this is really one of smallest. Are we short on
keystrokes? To type margin: 0px 0px; instead of margin:0; doesn't take
hell of a lot (besides margin:0 is an optional shortcut, not the only
one allowed syntax).
Overall it is a common misunderstandin g I guess to think of CSS1Compat
mode in IE as of a "W3C compliant" mode. Like "place an appropriate DTD
and it becomes another Firefox or Opera" :-) In fact all changes from
BackCompat mode to CSS1Compat mode are fairly spelled in the mentioned
article. You don't get any less - but nothing more. And a really
significant one is the switch into W3C box model: within some limits,
see
<http://groups.google.c om/group/comp.infosystem s.www.authoring .stylesheets/browse_frm/thread/7bec5fd9a15c3eb c/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: StopBsod |
last post by:
Hello group,
I use XSLT to output a unix shell script based on the content of an XML
file :
The XSLT :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template name="haut" match="/rhythmdb">
|
by: Stephen Poley |
last post by:
People in these groups, and on web-pages, not infrequently suggest that
it is worthwhile cutting down on white-space and comments in HTML and
CSS in order to reduce loading times. I and others have more than once
doubted this, given the data-compression in the HTTP protocol. Having
seen it suggested again a couple of times in the last few days, I
decided it was time for a test on the effect of white-space.
I took one of my pages:...
|
by: Kor |
last post by:
Hi,
Does anybody understand why the technique described in
http://www.macromedia.com/devnet/server_archive/articles/css_positioning_dynamic_repositioning.html
doesnt work in Netscape 6/7 and Mozilla? I tried it out but to no
avail. I am certainly not a (javascript) programmer / DOM expert but
it seems to me it should work (see for example
http://www.quirksmode.org/dom/w3c_html.html )
|
by: Prince |
last post by:
I have some <RequiredFieldValidator> on my page and
everything works fine except that there are lots of white
spaces between the web server controls that are being
validated. I've set the Display properties for all the
controls to "Dynamic" and still I can't get rid of the
white spaces between controls. It's as if there are
bunch of <br> tags separating the controls.
For example,the "HTML" look similar to this.
|
by: Harlan Messinger |
last post by:
What rules deal with attribute values with trailing spaces, or tags or
attribute values with embedded newlines? Examples below: the HREF with
embedded newline, the SRC with trailing spaces, and IMG tag spread over
multiple lines.
<a href="myself.html
">
<img src="/images/picture.gif " width="80"
height="65"
alt="What, me worry?"></a>
| |
by: Johny |
last post by:
I use PIL to write some text to a picture.The text must be seen wery
clearly.
I write the text to different pictures but to the same position. As
pictures maybe different, colour, in the position where I write the
text, is also different.
Is there a way how to set the font colour so that it will be seen very
clearly in the picture?
For example, if the picture is bright ( for example yellow), the font
colour should be dark( e.g. black)...
|
by: Agix |
last post by:
Hi there,
Please check out : http://clarifysolutions.co.uk/certenroll/
The source is included below. This page is a test, so I can play about
with paddings, margins and layouts using divs as semantically
meaningless containers for bunch's of other elements - like everyone
keeps telling me to make my code standards compliant.
This request is not because I want a fix, but because I want to
|
by: tharden3 |
last post by:
How do I remove white space around an icon? I have been using some helpful icon pics from google images to spice up a website that I'm making. In many instances though, the icon is not square, but irregularly shaped, leaving white space to make a square around the icon. In one case, I was using a 16 x 16 gif image of a movie reel (a round object) but I could not get rid of the white space around the object. How can I do this?
|
by: ofiras |
last post by:
In bitmap, how can I find the nearest pixel (pixel
1) to a specific pixel (pixel 2) that has different color from pixel
2? Or how can I find a pixel in a specific distance from pixel 2 (like
a circle that pixel 2 is his center, and I'm looking for a pixel that
has different color that pixel 2)?
(I'm trying to do a voronoi diagram maker, so I need to search for the
nearest colored pixel in my bitmap for every pixel that is not colored...
|
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...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |