Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-23-2011, 03:03 AM   PM User | #1
dniwebdesign
Regular Coder

 
dniwebdesign's Avatar
 
Join Date: Dec 2003
Location: Carrot River, Saskatchewan
Posts: 838
Thanks: 15
Thanked 9 Times in 9 Posts
dniwebdesign is an unknown quantity at this point
Two (or more) background colours in one table row?

I have a table that lists data from a database and my php decides what bg color to make the table depending on the status's of the row. (In this case "Mailed", "Paid", "Partial Paid", "Overdue", "Viewed Online"). Works just fine, however sometimes these may have duplicate status's such as Mailed and Viewed Online. Is there anyway to have the bg color two colours stripped such as a construction bar? (IE Below) Most likley using CSS of course, I'd prefer not to use images if possible. Thanks

__________________
Dawson Irvine
CEO - DNI Web Design
http://www.dniwebdesign.com
dniwebdesign is offline   Reply With Quote
Old 02-23-2011, 03:12 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,579
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
You’ll have to use an image as that’s not possible with CSS alone. However, you can just assign a certain class according to the certain state and then apply the respective image using th class selector (and you can reduce a striped image to its minimum repeatable size and make it repeat itself to fill the cell).
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-23-2011, 05:03 AM   PM User | #3
shankar.adodis
New Coder

 
Join Date: Feb 2011
Posts: 41
Thanks: 0
Thanked 4 Times in 4 Posts
shankar.adodis is an unknown quantity at this point
Hi,
Using image and not using the image depends on
you requirement just add span to split and have two colors inside the table
shankar.adodis is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:15 PM.


Advertisement
Log in to turn off these ads.