You are here: Re: semitransparent div « HTML « IT news, forums, messages
Re: semitransparent div

Posted by Jonathan N. Little on 05/18/07 01:34

..rhavin grobert wrote:
> id like to have the following:
>
> <div><p>test</p></div>
>
> with the div having background #000000 and the text having color
> #ff0000, so
>
> div {background-color:#000000;}
> p {color:#ff0000;}
>
> now the problem:
>
> i want to have the div semitransparent like this...
> div {
> background-color:#000000;
> filter:alpha(opacity=77); -moz-opacity:0.77;
> opacity:0.77; -khtml-opacity:0.77;
> }
>
> but i want to have the text at opacity 100%.
>
> any ideas?
>

You can't directly on the same DIV you have to use a transparent
background image for the DIV. Note MSIE<7 PNG transparency limitations.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация