Jump to content

[SOLVED] CSS Problems with progress bar.


stelthius

Recommended Posts

Hello everyone,

 

Im making a progress bar for a pm system to show the amount of pms a user has it works in IE6 & IE 7 but not in firefox, can anyone see were im going wrong ?

 

I have also attached a screenshot of both IE working and firefox not working.

 

pm_bar.jpg

 

<div style="width: 250px; border-style: solid; border-width: 1px; border-color: #000000;">
<span style="width: <?php echo $total_used; ?>%; background-image: url(progress.png);"><?php echo $total_used; ?>%</span>

 

 

Regards Rick.

Link to comment
https://forums.phpfreaks.com/topic/147835-solved-css-problems-with-progress-bar/
Share on other sites

Solved using the following :D

 

 

<div style="width: 250px; border-style: solid; border-width: 1px; border-color: #000000;">
<div style="min-width: <?php echo $total_used; ?>%; width: <?php echo $total_used; ?>%; background-image: url(progress.png);"><?php echo $total_used; ?>%</div>

 

 

Doesnt take much once you have had a break :D

 

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.