Jump to content

custom bullet list


papillonstudios

Recommended Posts

I have this custom bullet list and i have it working but i have one problem, its not centering the custom bullet vertically

 

heres my code and a screenshot of what i mean

#linkcat-2 {
list-style:none;
margin-top:80px;
margin-left:20px;
}

#linkcat-2 h2{
display:none;
}

#linkcat-2 li {
  background-image: url(images/bulletlistshows.png);
  background-position: center left;
  background-repeat: no-repeat;
  padding-left: 20px;
  list-style: none;
  font-size:10px;
  padding-bottom:20px;
}

bulletlist.jpg

 

 

Link to comment
https://forums.phpfreaks.com/topic/215450-custom-bullet-list/
Share on other sites

<li id="linkcat-2" class="linkcat"><h2>Recent Shows</h2> 
<ul class='xoxo blogroll'> 
<li><a href="http://MARATHONSHOWPART7-AUG2010" target="_blank">MARATHON SHOW PART 7 &#8211; AUG 2010</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=386.0">MARATHON SHOW PART 8 &#8211; AUG 2010</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=34.0">RED BAR RADIO (08-17-10) THE 3AM SHOW</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=359.0">RED BAR RADIO (09-07-10)</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=367.0">RED BAR RADIO (09-15-10)</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=369.0">RED BAR RADIO (09-17-10)</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=391.0">RED BAR RADIO (09-27-10)</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=394.0">RED BAR RADIO (09-29-10)</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=399.0">RED BAR RADIO (10-01-10)</a></li> 
<li><a href="http://redbarradio.com/forum/index.php?topic=404.0">RED BAR RADIO (10-05-10)</a></li> 

</ul> 
</li> 

Link to comment
https://forums.phpfreaks.com/topic/215450-custom-bullet-list/#findComment-1120603
Share on other sites

One thing which i'm thinking at would be to use line-height:100px; where 100px is the size of the elment or so. This way the text will be in the vertical middle. Try to play with the width and height property and center it also vertically with the mentioned command. Good luck!

Link to comment
https://forums.phpfreaks.com/topic/215450-custom-bullet-list/#findComment-1120628
Share on other sites

One thing which i'm thinking at would be to use line-height:100px; where 100px is the size of the elment or so. This way the text will be in the vertical middle. Try to play with the width and height property and center it also vertically with the mentioned command. Good luck!

 

 

line-height:30px; Works for me thanks man problem solved.

Link to comment
https://forums.phpfreaks.com/topic/215450-custom-bullet-list/#findComment-1120713
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.