TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-12-2007, 04:08 PM   #1 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 349
Thanks: 24
Haris is on a distinguished road
Default Bullets not rendering

Bullets are not rendering in IE6. I'm really pissed now and need help.

Code:
#sidebar .sidebar-list {
    position: relative;
    left: 33px;
    margin-top: 10px;
    list-style-image: url('images/bullet.gif');
}

#sidebar .sidebar-list li{
    margin-top: 15px;
}

#sidebar .sidebar-list a {
    font-size: 11px;
    font-family: Lucida Grande, Arial;
    color: #ffffff;
}
#sidebar .sidebar-list li p.date{
    font-weight: bold;
    font-size: 9px;
    color: #676767;
}
HTML Code:
               <div class="sidebar-item">
                    <h2>ARCHIVED NEWS</h2>
                    <ul class="sidebar-list">
                        	<li><a href='http://mharis.net/portfolio/sammy/lost4/wp/?m=200709' title='September 2007'>September 2007</a></li>
                    </ul>
                 <br /> <!-- Clears float -->

                </div>
            </div>
Haris is offline  
Reply With Quote
Old 09-12-2007, 04:26 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 714
Thanks: 2
Salathe is on a distinguished road
Default

Rather than using the list-style-image property, you can set some (left) padding on the li elements and apply the bullet image as a background. With this technique you could have right-aligned bullets, if you wished. :)

Code:
#sidebar .sidebar-list {
    position: relative;
    left: 33px;
    margin-top: 10px;
    list-style: none;
}

#sidebar .sidebar-list li{
    margin-top: 15px;
    padding-left: 20px;
    background: transparent url(images/bullet.gif) no-repeat 0 0;
}
__________________
Salathe is offline  
Reply With Quote
Old 09-12-2007, 06:48 PM   #3 (permalink)
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 349
Thanks: 24
Haris is on a distinguished road
Default

Thanks Salathe.
Haris is offline  
Reply With Quote
Old 09-13-2007, 01:41 AM   #4 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 1,587
Thanks: 72
Wildhoney is on a distinguished road
Default

Those bullet points set as the background are definitely the way to go. I've noticed when using custom bullet points that Internet Explorer has a tendency to place them higher up than Mozilla Firefox do, and I'm not a fan of IE hacks. This even occurs after resetting the global margins and paddings to zero.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 09-14-2007, 02:54 PM   #5 (permalink)
The Contributor
 
Shaun's Avatar
 
Join Date: Sep 2007
Posts: 41
Thanks: 0
Shaun is on a distinguished road
Default

I try and keep away from the using the list-icon property apart from telling it not to use it. Using a background is way my flexible, in the way of position the list icon.

Code:
#sidebar .sidebar-list a {
    font-size: 11px;
    font-family: Lucida Grande, Arial;
    color: #ffffff;
}
Just another note, any property that is defined and has a space in it should have double quotes around it like

Code:
#sidebar .sidebar-list a {
    font-size: 11px;
    font-family: "Lucida Grande", Arial;
    color: #ffffff;
}
If i recall correctly, it wont validate as valid CSS without the quotes around it
Send a message via MSN to Shaun Send a message via Skype™ to Shaun
Shaun is offline  
Reply With Quote
Old 09-27-2007, 04:05 PM   #6 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 1,587
Thanks: 72
Wildhoney is on a distinguished road
Default

Quite true. Every single property in CSS that contains a space must be encapsulated with quotes. Usually you'll just find that with font names.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:44 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0