Hello,
I have just been trying a CSS-based design that works as I expected in
FF and Opera, but has a problem with IE. If you look at my current
version at http://www.kidsinaction.org.uk/FredsBoots/Freds.html in FF or
Opera, the links in the left margin appear close together as expected.
If you look at the same page in IE, these links are quite spaced out,
with more vertical space between them than I want. Any idea why this is?
I guess that it is connected to the fact that I made the links
"display:bl ock" as I wanted the hover effect (change of colours) to
affect the full width of the margin, not just the width of the text in
the link.
Anyone any explanation of what is happening, and what I can do to fix
it. Please forgive any obvious blunders, I don't claim to be an expert
on this!!
TIA
--
Alan Silver
(anything added below this line is nothing to do with me) 15 1531
Alan Silver wrote: Hello,
I have just been trying a CSS-based design that works as I expected in FF and Opera, but has a problem with IE. If you look at my current version at http://www.kidsinaction.org.uk/FredsBoots/Freds.html in FF or Opera, the links in the left margin appear close together as expected.
If you look at the same page in IE, these links are quite spaced out, with more vertical space between them than I want. Any idea why this is?
IE works if you do this:
<ul>
<li><a href="">Workwea r</a></li><li><a
href="">Safety Boots</a></li><li><a
href="">Boilers uits</a></li><li><a
href="">Safety Jackets</a></li><li><a
href="">HiViz Vests</a></li><li><a
href="">Work Boots</a></li><li><a
href="">Jackets </a></li><li><a
href="">T-shirts</a></li><li><a
href="">Eye Protection</a></li><li><a
href="">Hard Hats</a></li>
</ul>
It sees the line feed at the end of the </li> as .. a line feed?
Bad browser, no donut.
Why are you creating new documents with a Transitional doctype? You
should be using Strict.
--
-bts
-Warning: I brake for lawn deer
In article <ml************ *****@bgtnsc05-news.ops.worldn et.att.net>,
Beauregard T. Shagnasty <a.*********@ex ample.invalid> writes
<snip> IE works if you do this:
<snip>It sees the line feed at the end of the </li> as .. a line feed? Bad browser, no donut.
Ah ha, that was it.
Life would be so dull without IE, don't you think? Imagine writing web
pages and having them look the same in all browsers right from the
start. What would we do with ourselves all day?
Anyway, removing the line feeds fixed the problem, but still leaves a
gap between these links. I have set a zero margin on both the <li> and
<a> elements, and FF and Opera do not leave any space between the links,
but IE still does. You can see this by moving your mouse from one link
to another and noting that there is a point in between where neither
link is in the hover state. In FF and Opera, you go directly from the
hover state of one link to the hover state of the next.
Any explanation?
Why are you creating new documents with a Transitional doctype? You should be using Strict.
Oops, mistake. I knocked up that test on an old machine that had an
outdated template for HTML pages. I didn't notice the doctype. Thanks
for pointing it out.
Thanks very much for the help. Any answers to the supplementary would be
gratefully received too.
--
Alan Silver
(anything added below this line is nothing to do with me)
Alan Silver wrote: In article <ml************ *****@bgtnsc05-news.ops.worldn et.att.net>, Beauregard T. Shagnasty <a.*********@ex ample.invalid> writes <snip> IE works if you do this: <snip> It sees the line feed at the end of the </li> as .. a line feed? Bad browser, no donut.
Ah ha, that was it.
Life would be so dull without IE, don't you think? Imagine writing web pages and having them look the same in all browsers right from the start. What would we do with ourselves all day?
Well, I would go for a motorcycle ride and find a good cheeseburger
somewhere down the road.
Anyway, removing the line feeds fixed the problem, but still leaves a gap between these links. I have set a zero margin on both the <li> and <a> elements, and FF and Opera do not leave any space between the links, but IE still does.
Yes, there is a wee bit of gap in IE; however, I don't think it is
detrimental to the display of the page. My opinion, of course.
You can see this by moving your mouse from one link to another and noting that there is a point in between where neither link is in the hover state. In FF and Opera, you go directly from the hover state of one link to the hover state of the next.
Why not style them to look like buttons instead? No change to anything
other than the CSS.
I would show you an example used at a site of mine, 'cept the damn
server is down today. [I will not mention the name of this affordable
server...]
Any explanation?
No, unless you've just changed the page since your post. It looks fine
to me in IE and the hover color change extends to the end of the block. Why are you creating new documents with a Transitional doctype? You should be using Strict.
Oops, mistake. I knocked up that test on an old machine that had an outdated template for HTML pages. I didn't notice the doctype. Thanks for pointing it out.
Welcome. <g>
--
-bts
-Warning: I brake for lawn deer
In article <18************ *******@bgtnsc0 4-news.ops.worldn et.att.net>,
Beauregard T. Shagnasty <a.*********@ex ample.invalid> writes
<snip> What would we do with ourselves all day?
Well, I would go for a motorcycle ride and find a good cheeseburger somewhere down the road.
I'd go and tickle some of the children. Motorbikes frighten me (too old
I guess), and children are far more fun than sitting in front of a
computer!! Each to his own I guess. Anyway, removing the line feeds fixed the problem, but still leaves a gap between these links. I have set a zero margin on both the <li> and <a> elements, and FF and Opera do not leave any space between the links, but IE still does.
Yes, there is a wee bit of gap in IE; however, I don't think it is detrimental to the display of the page. My opinion, of course.
No, not terrible, I just wondered what the reason was. However, you
confused me a bit. Here you agree there's a wee gap, but below, you say
there isn't. Not sure what you mean. You can see this by moving your mouse from one link to another and noting that there is a point in between where neither link is in the hover state. In FF and Opera, you go directly from the hover state of one link to the hover state of the next.
Why not style them to look like buttons instead? No change to anything other than the CSS.
I would show you an example used at a site of mine, 'cept the damn server is down today. [I will not mention the name of this affordable server...]
Maybe you could post the URL when the server comes back. I would be
interested in seeing it. Any explanation?
No, unless you've just changed the page since your post. It looks fine to me in IE and the hover color change extends to the end of the block.
OK, here's where you confused me. Above you said you could see the gap
between the links, here you say you can't. Are we talking about the same
thing? I was referring to the links under the word "Categories " in the
left margin of http://www.kidsinaction.org.uk/FredsBoots/Freds.html. If
you move your mouse from (say) "Workwear" to "Safety Boots," there is a
small gap in between where you don't get the hover sate of either link
in IE, but you do in FF and Opera. As you said, it's not too much of a
problem here, but I can see other designs where it would spoil the
effect. I would be interested in knowing why IE does this (assuming that
there's areason why IE does anything of course!!)
Ta ra and thanks again.
--
Alan Silver
(anything added below this line is nothing to do with me)
Alan Silver wrote: Beauregard T. Shagnasty <a.*********@ex ample.invalid> writes <snip> What would we do with ourselves all day? Well, I would go for a motorcycle ride and find a good cheeseburger somewhere down the road.
I'd go and tickle some of the children. Motorbikes frighten me (too old I guess),
Never too old. I'm a retired guy and I've been riding for 43 years.
and children are far more fun than sitting in front of a computer!! Each to his own I guess.
We enjoy it when our grandbaby (not quite two) comes to visit. <g> Yes, there is a wee bit of gap in IE; however, I don't think it is detrimental to the display of the page. My opinion, of course.
No, not terrible, I just wondered what the reason was. However, you confused me a bit. Here you agree there's a wee gap, but below, you say there isn't. Not sure what you mean.
You can see this by moving your mouse from one link to another and noting that there is a point in between where neither link is in the hover state. In FF and Opera, you go directly from the hover state of one link to the hover state of the next.
Why not style them to look like buttons instead? No change to anything other than the CSS.
I would show you an example used at a site of mine, 'cept the damn server is down today. [I will not mention the name of this affordable server...]
Maybe you could post the URL when the server comes back. I would be interested in seeing it.
I'll do that.
OK, here's where you confused me. Above you said you could see the gap between the links, here you say you can't. Are we talking about the same thing?
Most likely. What I meant was the really small space, that one actually
has to work at with the mouse pointer, isn't a big deal, or at least in
my opinion.
I was referring to the links under the word "Categories " in the left margin of
...as was I. http://www.kidsinaction.org.uk/FredsBoots/Freds.html. If you move your mouse from (say) "Workwear" to "Safety Boots," there is a small gap in between where you don't get the hover sate of either link in IE, but you do in FF and Opera. As you said, it's not too much of a problem here, but I can see other designs where it would spoil the effect. I would be interested in knowing why IE does this (assuming that there's areason why IE does anything of course!!)
Been playing with it for a bit, and I don't see what might be done to
remove the little vertical space. Maybe if someone else has been
following along...
--
-bts
-Warning: I brake for lawn deer
In article <oP************ *****@bgtnsc05-news.ops.worldn et.att.net>,
Beauregard T. Shagnasty <a.*********@ex ample.invalid> writes I'd go and tickle some of the children. Motorbikes frighten me (too old I guess), Never too old. I'm a retired guy and I've been riding for 43 years.
OK, you're older than me then!! Unless you were riding at a *very* young
age. Either way, they still scare the willies out of me!! and children are far more fun than sitting in front of a computer!! Each to his own I guess.
We enjoy it when our grandbaby (not quite two) comes to visit. <g>
We're still at the children stage, so you beat me again!!
<snip> Maybe you could post the URL when the server comes back. I would be interested in seeing it.
I'll do that.
Ta
<snip>Been playing with it for a bit, and I don't see what might be done to remove the little vertical space. Maybe if someone else has been following along...
Thanks anyway. Ta ra
--
Alan Silver
(anything added below this line is nothing to do with me)
Alan Silver wrote: http://www.kidsinaction.org.uk/FredsBoots/Freds.html in FF or Opera, the links in the left margin appear close together as expected.
If you look at the same page in IE, these links are quite spaced out, with more vertical space between them than I want.
Happens all the time. The work-around BTS gave is one way to do it.
Another is to add the zoom property to the link and/or list item rules
li {zoom: 1}
li a {zoom: 1}
Try it on one element first. If that doesn't give the desired result,
try it on the other.
If you want more info on the zoom property, search google.
Any idea why this is?
IE sucks? ;)
BTW, you have a logic error with your widths. Mixing em and % units
doesn't add up to any predictable value. Zoom text in Firefox up a
couple notches and/or make the browser window narrower and see where the
content ends up. If you use % for padding as well as widths, you get
more consistent results.
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
To further the education of mankind, Alan Silver <alan- si****@nospam.t hanx.invalid> vouchsafed: Anyway, removing the line feeds fixed the problem, but still leaves a gap between these links. I have set a zero margin on both the <li> and <a> elements, and FF and Opera do not leave any space between the links, but IE still does. You can see this by moving your mouse from one link to another and noting that there is a point in between where neither link is in the hover state. In FF and Opera, you go directly from the hover state of one link to the hover state of the next.
The gap itself might be an IE whitespace problem, but you can make the
vertical spacing the same by adding line-height:1.2 to #productlinks a {
}.
--
Neredbojias
Infinity has its limits.
In article <4b************ *@individual.ne t>, kchayka <us****@c-net.us>
writes
<snip>
Thanks to both you and BTS for the ideas. I'll play with them. Any idea why this is? IE sucks? ;)
<g> I was meaning a more technical explanation!!
BTW, you have a logic error with your widths. Mixing em and % units doesn't add up to any predictable value. Zoom text in Firefox up a couple notches and/or make the browser window narrower and see where the content ends up. If you use % for padding as well as widths, you get more consistent results.
Thanks for pointing that out, I hadn't noticed that. I'll change them
all to % as that seems safer. I was assuming ems were a better bet as
they scale with the user's choice of font size, but I can see that this
will only be useful in certain circumstances. This obviously isn't one
of them!!
Thanks again
--
Alan Silver
(anything added below this line is nothing to do with me) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: valerian dinca |
last post by:
Hi,
This is my latest article for your consideration.
If you think that this article could interest your subscribers
it is free to reprint in your ezine and/or newsletter as long as you:
1. Print the article in its entirety.
2. Print the resource box with the article in it's entirety.
Please notify me if you use the article.
|
by: Michal Mikolajczyk |
last post by:
For some reason, when I write data to a csv file using the csv module of
python 2.3 and then open it in excel, every row is double spaced. I want
the csv file to have every row filled with data not every other row. Is
there a way I can fix this. I am using csv.writerow(data) and
csv.writerows(data) functions, both write rows every other row when I open
it in excel.
Example:
1 asdflkjfa
2
3 fjsdkfjoijef
|
by: kjm |
last post by:
Hi Everyone,
I am trying to port some old MatLab code to python, and am stuck on
how to accomplish something.
I am trying to write a generalized function that will create a
linearly spaced vector, given the start and end point, and the number
of entries wanted.
In MatLab I have this function that I wrote:
|
by: alan b |
last post by:
I am still struggling with simple html codes putting <p> xxyyzz
</p>
on each line. Instead the page shows DOUBLE SPACED. I dont want that!
how do I set it into Single Spaced page?
<h4> FREE MEMBERSHIP! <a href="http://login.yahoo.com/">Click on this; You
will go to Yahoo! Site</a> </h4>
|
by: VB Programmer |
last post by:
When edit a page in page-layout, if you hit the <ENTER> button it always
seems double spaced. If I want the controls/text to be closer together do I
have to make them rows of a table and size them closer? Is this the only
way?
| |
by: rn5a |
last post by:
In a shopping cart app, assume that a user has placed 4 orders (each
order has a corresponding OrderID which will be unique). When he comes
to MyCart.aspx, by default, the details of his last order he had placed
will be displayed in a DataList. Also assume that the OrderID of the
last order is 13.
The details of the earlier orders placed by a particular user (when the
user places more than 1 order) can be viewed by clicking links. The...
|
by: Hopp Family |
last post by:
Here's the problem. I want to display a known number of images, evenly
spaced out across the width of a div. (The images are not all the same
width; the centers should be evenly spaced.) The div changes width with the
browser, so the layout needs to be fluid. If the div narrows too much, the
images should wrap; in this event, the images on each row should be evenly
spaced (the spacing can vary from row to row).
I can't figure out how to...
|
by: burtonfigg |
last post by:
I have a snippet of HTML here:
<p><a title="" href="#pc" onclick="sendEcardRequest(prev_ecard());">Previous</a> | <a title="" href="#pc" onclick="sendEcardRequest(next_ecard());">Next</a></p>
<p class="ctr"><span id="ecard_id_label"></span></p>
And javascript here (not all of it - just the relevant bit)
function sendEcardRequest(id) {
http6.open('get', 'ajax/ajax-ec.asp?cat=44&id=' + encodeURIComponent(id));
...
|
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
|
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...
| |