473,770 Members | 4,553 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Having problems with bullet lists in IE7

2 New Member
The bullet lists on my web site (www.hawkinshear ing.com) are messed up in IE7 (works fine in IE6, IE5, and Safari). In IE7, the list does not indent and the bullet images do not show up. Any suggestions? Here is the CSS for the site:

Expand|Select|Wrap|Line Numbers
  1. #content ul, #content ol
  2. {
  3.     margin-left: -40px !important;
  4.     text-align: left;
  5.     margin: 0px auto;
  6.     margin-top: 8px;
  7.     margin-bottom: 6px;
  8.     padding: 0px auto;
  9.     list-style:none;
  10. }
  11. #content ul li
  12. {
  13.     font-size:9pt;
  14.     padding-left: 6px;
  15.     background-image: url(../images/li_dot.gif);
  16.     background-repeat: no-repeat;
  17.     background-position: left center;
  18.     color: #5872A0;
  19. }
  20.  
Dec 30 '06 #1
3 17282
snowdonkey
37 New Member
Howdy. In your CSS
Expand|Select|Wrap|Line Numbers
  1. margin-left: -40px !important
and
Expand|Select|Wrap|Line Numbers
  1. margin: 0px auto;
are being interpreted differently by IE7 than other browsers. IE7 is showing your image bullets but they are just out of view.

We can comment the above declarations out and use relative positioning instead of negative margins to move the list to the left, and this was agreeable to IE7 and others. Here was my example, with just your list and its CSS:

[HTML]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitl ed Document</title>
<style>
ul
{
position: relative;
right: 40px;
/*margin-left: -40px !important;*/
text-align: left;
/*margin: 0px auto;*/
margin-top: 8px;
margin-bottom: 6px;
padding: 0px auto;
list-style:none;
}

ul li
{
font-size:9pt;
padding-left: 6px;
background-image: url(dot.gif);
background-repeat: no-repeat;
background-position: left center;
color: #5872A0;
}
</style>
</head>

<body>
<h3>Welcome To Hawkins Hearing Center</h3>
<p>Our mission at Hawkins Hearing Center is to help you enjoy the sounds of life. We have the solution for almost any situation:</p>
<ul>
<li>People who have begun having difficulty following conversations</li>
<li>Musicians who need to hear their instruments and the rest of the band better without damaging their hearing</li>
<li>Swimmers who need to protect their ears from water</li>
<li>Music lovers who want to hear their mp3 players better</li>
<li>Cell phone users who want custom fit earpieces for their phones</li>
<li>Concert-goers who want to enjoy the music without distortion while still protecting their hearing</li>
</ul>
<p>Call today for more information or to schedule an appointment. At Hawkins Hearing Center, we always provide sound advice about your hearing.</p>
</body>
</html>
[/HTML]

I'm not sure how removing the the two lines above will affect your overall design but it shouldn't be much.
Dec 30 '06 #2
audiogal
2 New Member
Thanks for your help. My goal is to have the list indent to the right like a traditional bullet list

I tried playing around with the padding in CSS, but it doesn't seem to make any difference, I can't get the text to move to the right.

Thanks again for any help you can offer
Dec 31 '06 #3
snowdonkey
37 New Member
You don't need to change the padding, you can just change the "right" property of the ul element.

So right now it reads "right: 40px;". You can make this value 0px and it'll be indented as it would normally. (or just delete it)
Dec 31 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1921
by: Nikolaos Giannopoulos | last post by:
I am trying to get bullet images in paragraphs and lists to align properly - so far Moz 1.3 and Opera 6.05 handle both of these cases fine (NOTE: IE5 as expected does not render a bullet in the 1st case): http://solmar.ca/temp8/test4.html http://solmar.ca/temp8/test5.html which looks like this (taken with Moz 1.3): http://solmar.ca/temp8/img/moz13_bullet.gif
2
5920
by: puzzled | last post by:
I am trying to use css to control the indentation within items in a list. I would like something that looks like this: Text of a paragraph goes here, leading to the following list: * list item 1 * list item 2 * and so on
3
4096
by: Dante | last post by:
Is it possible in lists for the bullet to have a different color than the text? If so how?
7
6846
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through Google search. So here is my problem: I want to use CSS to apply images as bullet styles. However, I want to be able to apply VARIOUS, MULTIPLE styles in the same document. For example, let's assume I have a set of categorized hyperlinks on a...
13
49888
by: Matt | last post by:
I would like to set the "list-style-type" to be a hyphen (-). How can I accomplish this in a style sheet. I tried list-style-type: hyphen; and list-style-type: dash; but neither worked. I also tried adding this to the style sheet (with the list-style-type set to none in the UL element). LI:Before { content: "- "; }
5
1343
by: Bikhod | last post by:
Hi Refering to my sample below, can anyone please tell me why my list is not appearing correctly on my VS.NET generated web site? The summary and remarks are fine, but the HTML is showing the list as Invariants of a stack: <list type="bullet"> <item>Count must be positive</item> <item>Count can not exceed capacity</item> <item>Empty if no elements</item> </list>
3
2156
by: Jordan S | last post by:
I have been using the old HTML unordered list in order to have bullet-point lists. But they don't look good because there is no white space between each list item. <UL> <LI>List Item Here etc... How can I get a bullet-point list but also have white space between each item, control indentation of the list, etc?
4
1209
by: TheEv | last post by:
I was wondering if anyone knew of the standard way to style Lists. Whenever I style them, especially when I use my own bullet image, They show up very different in each browser. The bullet in either up or down, or further left or right, depending on the browser. Is there any way to ensure my lists will look neat on all browsers?
3
3505
by: vunet | last post by:
When I use image as a bullet within LI element I have different image positioning results in Firefox and IE6. IE6 puts the image on top and far from left LI's border. Firefox puts it nicely in the middle and very close to left border. How do I control bullet image positioning? Please advise a nice hack. Thanks
0
9602
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
9439
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,...
0
10237
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
10071
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...
0
9882
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...
0
8905
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5326
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...
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2832
bsmnconsultancy
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...

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.