There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Every other line different color??


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
r3drock3t88's Avatar
Computer Specs
Senior Member with 231 posts.
 
Join Date: Jan 2007
Experience: Advanced
06-Jun-2007, 05:58 PM #1
Every other line different color??
Hey all,

Would anyone by chance know the best way to have every other row a different color in a box? For example...

------------------------------------------------------
this row would be light red in the background
------------------------------------------------------
This row would be light blue in the background
------------------------------------------------------
and so on...

I would assume some simple CSS code would suffice? But I am not so sure how to implement that into my content box. Thank you in advance for the help

**EDIT

I added...
#center_dif p{
background:#CCCCCC;
}
and that did the trick, but is there anyway to change the opacity (or transparency, same thing) of the colored background?
__________________
If you're interested in learning how I make 100% FREE & LEGIT money each month through surveys, check out my personal website below!

Storhino's Personal Blog - Make Money Online!

I wrote an article on how I do it and a picture of my check will be up ASAP... so check it out, it's 100% FREE to participate, and I promise you will receive a personal check when your first months over! .

r3drock3t88

Last edited by r3drock3t88 : 06-Jun-2007 06:17 PM.
dudeking's Avatar
Computer Specs
Senior Member with 345 posts.
 
Join Date: Feb 2007
Location: UK, Midlands
Experience: I'm Pro...
06-Jun-2007, 06:18 PM #2
.red{
background-color:red;
}
.blue{
background-color:blue;
}

Something as basic as that?

Just give the first <tr> tag the red class then the second blue and so on....
r3drock3t88's Avatar
Computer Specs
Senior Member with 231 posts.
 
Join Date: Jan 2007
Experience: Advanced
06-Jun-2007, 07:01 PM #3
Hey DudeKing,

Thanks for the response, I managed to figure that part out, but now I am wondering if it is possible to change the opacity of the colored backgrounds? Is it even possible in CSS while also being compatible with IE? Or should I just simply create a 50% opacity level blue background and do
.blue{
background-color:url("images/background");
}

Would that be my best bet?
__________________
If you're interested in learning how I make 100% FREE & LEGIT money each month through surveys, check out my personal website below!

Storhino's Personal Blog - Make Money Online!

I wrote an article on how I do it and a picture of my check will be up ASAP... so check it out, it's 100% FREE to participate, and I promise you will receive a personal check when your first months over! .

r3drock3t88
harmor's Avatar
Senior Member with 117 posts.
 
Join Date: Mar 2007
Experience: Intermediate
06-Jun-2007, 09:29 PM #4
HTML Code:
.classname {
	opacity: .5;
	filter: alpha(opacity=50);
}
This should work in FF and IE
dudeking's Avatar
Computer Specs
Senior Member with 345 posts.
 
Join Date: Feb 2007
Location: UK, Midlands
Experience: I'm Pro...
07-Jun-2007, 03:40 PM #5
an image would be more compatible
Reply


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

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 On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:51 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.