Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Closed Thread
display a colored bar with different lengh of color
Old 08-10-2009, 02:04 PM display a colored bar with different lengh of color
Novice Talker

Posts: 10
Trades: 0
Hi, I'm seeking help to display a colored bar with different lengh of
color. Here's my code

Code:
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <title>Colored Bars</title>
 </head>
 <body>
 
 <table>
 <tr>
 <td>Journal Title A</td>
 <td>
 <div style="background-color: white; border: solid 1px black;">
 <div style="background-color: blue; width: 100%; text-align: center; color: white;">100%</div>
 </div>
 </td>
 </tr>
 <br />
 <tr>
 <td>Journal Title B</td>
 <td>
 <div style="background-color: white; border: solid 1px black;">
 <div style="background-color: blue; width: 50%; text-align: center; color: white;">50%</div>
 </div>
 </td>
 </tr>
 <br />
 <tr>
 <td>Journal Title C</td>
 <td>
 <div style="background-color: white; border: solid 1px black;">
 <div style="background-color: blue; width: 3%; text-align: center; color: white;">3%</div>
 </div>
 </td>
 </tr>
 </table>
 </body>
 </htm>
How to make the number 100%, 50% and 3% across the whole bar (including blue/white are). The "3%" in the third bar is not showing. Bascically, I'm trying to do the same thing as the page
http://www.biosemantics.org/jane/index.php
Enter "hiv", click "find journals". You will see the third colume on the next page.

Thanks a million!!!
hpdp is offline
View Public Profile
 
 
Register now for full access!
Old 08-10-2009, 08:37 PM Re: display a colored bar with different lengh of color
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
Toss the tables and go CSS. You will be able to do what you want with little trouble.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
View Public Profile Visit TripleMoons's homepage!
 
Old 08-11-2009, 12:09 AM Re: display a colored bar with different lengh of color
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
@TripleMoons

This won't help him with the problem, since I assume the original poster is still a beginner.

@hpdp

TripleMoons is right that you need to start coding without tables. However, I'm not sure I understand what you are asking so you're going to have to give me a little more direction.
__________________
Alex
konetch is offline
View Public Profile
 
Old 08-11-2009, 12:34 AM Re: display a colored bar with different lengh of color
Ninja's Avatar
Experienced Talker

Posts: 30
Trades: 0
If you mean the actual text "3%" then style it color:black, it is there just hidden by the white background color. If you mean the actual bar then try making your div wider.
Ninja is offline
View Public Profile
 
Old 08-11-2009, 01:04 PM Re: display a colored bar with different lengh of color
Novice Talker

Posts: 10
Trades: 0
Thank you all for help!
I've made this work.

Thanks!!
hpdp is offline
View Public Profile
 
Closed Thread     « Reply to display a colored bar with different lengh of color
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23135 seconds with 12 queries