Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > another div question!

Reply
Thread Tools

another div question!

 
 
King of Red Lions
Guest
Posts: n/a
 
      10-17-2004
Okay, different question from last time about the 'transparent dic' lol!
Is it possible to make a div transparent so you can see the image
behind it and colour the background of it so it makes a kind of tinted
effect? I'm guessing no and that I should fire up PSP. Many thanks in
advance!
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      10-17-2004
In alt.html King of Red Lions said:

> Is it possible to make a div transparent so you can see the image
> behind it and colour the background of it so it makes a kind of tinted
> effect?


alpha images

demo (not supported by IE)
http://www.mozilla.org/start/1.0/demos/eagle-sun.html

fix for IE
http://www.koivi.com/ie-png-transparency/


--


v o i c e s
 
Reply With Quote
 
 
 
 
Roy Schestowitz
Guest
Posts: n/a
 
      10-17-2004
King of Red Lions wrote:

> Okay, different question from last time about the 'transparent dic' lol!
> Is it possible to make a div transparent so you can see the image
> behind it and colour the background of it so it makes a kind of tinted
> effect? I'm guessing no and that I should fire up PSP. Many thanks in
> advance!


See a post titled 'PNG graphics transparency' from the 12th of this month in
alt.html.

--
Roy Schestowitz
http://schestowitz.com
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      10-17-2004
King of Red Lions wrote:

> Is it possible to make a div transparent so you can see the image
> behind it and colour the background of it so it makes a kind of tinted
> effect?


brucie's answer was good, but it's probably overkill if you "only" want a
tinted effect.

If you want a tinted effect then you should be able to create a
checker-board effect GIF file:

CTCTCTCTCTCT
TCTCTCTCTCTC
CTCTCTCTCTCT
TCTCTCTCTCTC
CTCTCTCTCTCT
TCTCTCTCTCTC

where the T pixels are transparent and the C pixels are your colour.

Then set that GIF to be the background image.

See examples 2 and 3 on this page:
http://examples.tobyinkster.co.uk/translucency/example

Though also read example 1.

For a practical demonstration of the effect, visit my site (URL in sig) in
a decent browser (e.g. Opera or Mozilla) and choose one of these style
sheets from the drop down menu: Purple Flower, Red Flower, Saturn, Wheat.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
King of Red Lions
Guest
Posts: n/a
 
      10-17-2004
brucie wrote:
> In alt.html King of Red Lions said:
>
>
>> Is it possible to make a div transparent so you can see the image
>>behind it and colour the background of it so it makes a kind of tinted
>>effect?

>
>
> alpha images
>
> demo (not supported by IE)
> http://www.mozilla.org/start/1.0/demos/eagle-sun.html
>
> fix for IE
> http://www.koivi.com/ie-png-transparency/
>
>


That's not really what I'm looking for, what I was hoping to acheieve is
something like they have done at ...

http://www.koivi.com/ie-png-transparency/

.... the way the back of the divs or whatever they are are see through
but slightly tinted. How is this done? Many thanks in advance!
 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      10-17-2004
In alt.html King of Red Lions said:

> ... the way the back of the divs or whatever they are are see through
> but slightly tinted. How is this done?


they fake it. two images, one faded out and one normal.

stick normal image at the back. stick faded image in whatever is
overlapping the back image. use css to align the overlapping image with
the back image so it now looks like a single image.

--


v o i c e s
 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      10-17-2004
In alt.html King of Red Lions said:

> How would one go about positioning a background image?


i know it sounds crazy but perhaps:

background-position
http://www.w3.org/TR/REC-CSS2/colors...round-position

--


v o i c e s
 
Reply With Quote
 
King of Red Lions
Guest
Posts: n/a
 
      10-17-2004
brucie wrote:
> In alt.html King of Red Lions said:
>
>
>>... the way the back of the divs or whatever they are are see through
>>but slightly tinted. How is this done?

>
>
> they fake it. two images, one faded out and one normal.
>
> stick normal image at the back. stick faded image in whatever is
> overlapping the back image. use css to align the overlapping image with
> the back image so it now looks like a single image.
>


How would one go about positioning a background image?
 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      10-17-2004
In alt.html King of Red Lions said:

>> stick normal image at the back. stick faded image in whatever is
>> overlapping the back image. use css to align the overlapping image with
>> the back image so it now looks like a single image.


> How would one go about positioning a background image?


quick and dirty demo:
http://moreshit.usenetshit.info/back...nt-thingy.****

--


v o i c e s
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      10-18-2004
brucie wrote:

> quick and dirty demo:
>

http://moreshit.usenetshit.info/back...nt-thingy.****

Is that your backyard brucie?

I can see the fence but I fail to notice any trail bikes caught up in the
razor wire. Did you finally deter them?

--
Cheers
Richard.


 
Reply With Quote
 
 
 
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Place div beneath another div CaptCaveman1 HTML 2 02-06-2011 04:16 AM
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
CSS question: div cover another div on AJAX dunnil HTML 1 02-05-2006 08:59 AM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM



Advertisments