Designing With Transparency For Fine Design

Sitepoint Members,
I have a 3 vertical column website with a fluid center column and fixed outside columns. Outside all of the columns I have a background. When you scroll the background image is fixed and the text moves as directed. I need an artisitc idea that shows some of the background in one or more of the columns. The way my site is set up now you really don’t get the sense that the text is sliding over the background.
My site is set up like this, but this doesn’t have a background outside the columns.
http://www.dynamicdrive.com/style/layouts/item/css-liquid-layout-31-fixed-fluid-fixed/

Thanks,

Chris

You could use RGBA backgrounds for your columns. It’ll work in modern browsers, so should you use it, make sure the column content is readable without RGBA or provide a full RGB fallback for browsers that don’t understand RGBA.

Kohoutek.
That’s interesting. I didn’t know you can control opacity of a color.

Thanks,

Chris

It’s a new CSS3 feature meaning…you can’t (in older browsers).

Check out this page to see where you can use it. Since IE8 and 7 can’t use it (although thank God that more people are switching to IE9!), it should only be used to enhance a UX, meaning that the site should be fully functional w/out RGBA.

~TehYoyo

Kohoutek, TehYoyo,

If in the sample website above there’s a purple geometric background - undeneath what we can see on the site, if I wanted to put a narrow vertical window in one of the columns, say 400 pixels high by 10 pixels wide, that revealed the geometric purple design, how would that be programmed ?

Thanks,

Chris

It’d be good if you could show us exactly what you mean or want to accomplish. Do you have a test page?

Kohoutek,
How about this: How would I make the text transparent and so showing the background? Is that available for only css3? If so how would I adjust for browsers that can’t handle css3?
Right now I have .post{color:#ccccff;padding:1em 0} for the text coloring.

Thanks,

Chris

I think it’s not a good idea to make the text transparent, for you’d have to do it quite drastically for a background pattern to show through.

But if you were to do it, then I’d use opacity or RGBA, the former having partial support in legacy IE browsers.

Kohoutek,
I don’t see how that would work. Transparency works with a visible image. The background where the text is is not visible.

Are you saying I can color the text with the backgroud image? If so, I wouldn’t need transparency.

Thanks,

Chris

Transparency works for text as well. You can’t color the text with an image.

Do you have an example of some code that would do that?

Why don’t you try it out first? If it doesn’t work, we can help, but you need to give it a go yourself first.

ul {background:url(my_bg.png);} or on a list item li{background:url(my_bg.png);}

How is this gong to color text?

When you write, “Why don’t you try it out first?”

What does “it” refer to?

Chris

I don’t quite understand what you are trying to do.

You said you wanted to give text transparency, not an image.

If you want to give text transparency, then you’d use something like:

ul li {
color: rgba(255,255,255,.5);
}

I have text that is white. I don’t want it white. The background is an image. I want the image to show through the text. Is there some simple coding that will do that.

I gave you the code above… If you make the text semi-transparent, then anything that is under it, be it a solid color or a background image, will show through.

How do you provide a full RGB fallback for browsers that don’t understand RGBA?

Provide a solid color for legacy browsers via conditionals for IE or declare a color with a solid value first, and below it declare color again with RGBA, that way UA who understand RGBA will ignore the first rule and legacy browsers will ignore the second rule.

how do you declare a color with a solid value first.


color: #blah;
color: rgba(blah,blah,blah,.5);

I think it’d be good if you learned the basics of CSS, otherwise you’ll have a hard time getting anywhere. How to declare a property is something you should know before touching CSS.

I’d start with simple tasks. This site offers a brief introduction: http://www.cssbasics.com/