Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 50

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Templates > Template Discussions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09.04.2004, 00:45   #1 (permalink)
Mamber
 
TheGreek's Avatar
 
Join Date: Apr 2004
Location: Leicester, UK & Allihies,Ireland
Posts: 97
TheGreek is on a distinguished road
Default A Tiny victory with semi transparent backgrounds!

I have just figured a hack that I think might be useful to some one. It produces a semitransparent background using css around some text. Notice the text only fills the table cell that the image slice is in.

(I guess there maybe a way to make the background just fit the length of the text? (did I read that somewhere about divs and spans))

See an example in the slogan background orange over the header image here:
Demo site

I produced this with a semi transparent .png file and this code:
PHP Code:
.slogan {
    
font-familyTahomaVerdanaArialHelveticasans-serif;
    
font-size18px;
    
font-weightbold;
    
color#FF9900;
    
background-imageurl(/templates/yops_boxed_blue_lt/images/white-op60.png);
    
filterprogid:DXImageTransform.Microsoft.Alpha(Opacity=70); 
    } 
The 'background-image:blah' uses the png image as the background which is semi transparent but png don't display properly in M$ IE (!!!!!!!!!!!)

So the M$ filter blah makes the whole thing text and backgound semi transparent in M$ IE.


I know its a bit of a cludge but it looks okay. I guess you could make the background on a seperate layer and apply te filter to it and then write the text over with a transparent background but I think that would be too much work. So any comments folks?


TheGreek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 09.04.2004, 02:45   #2 (permalink)
Senior Mamber
 
MamboHut's Avatar
 
Join Date: Mar 2004
Location: New Jersey, USA
Posts: 143
MamboHut is on a distinguished road
Default Re: A Tiny victory with semi transparent backgrounds!

Looks good, i think one of the tempaltes by YTW had a CSS transparent background, i don't remember which one it was, check the templates demo maybe you can come up with something easier to implement.
MamboHut is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.04.2004, 02:52   #3 (permalink)
Professional Mamber
 
Join Date: Mar 2004
Posts: 802
jomaco1 is on a distinguished road
Default Re: A Tiny victory with semi transparent backgrounds!

Check out my demo site here: http://juniorfury.com/deanery/

The horizontal menu at the top of the page utilizes semitransparency...is this similar to what you want to do?
__________________
Mark

Arthur...congrats on the rebuild! Hope it stays clean.

Click HERE to view signature. (If nothing happens at first...keep clicking)
jomaco1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.04.2004, 02:56   #4 (permalink)
Senior Mamber
 
MamboHut's Avatar
 
Join Date: Mar 2004
Location: New Jersey, USA
Posts: 143
MamboHut is on a distinguished road
Default Re: A Tiny victory with semi transparent backgrounds!

Quote:
Originally Posted by jomaco1
Check out my demo site here: http://juniorfury.com/deanery/

The horizontal menu at the top of the page utilizes semitransparency...is this similar to what you want to do?
Cool, That's what i am talking about
MamboHut is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.04.2004, 03:05   #5 (permalink)
Professional Mamber
 
Join Date: Mar 2004
Posts: 802
jomaco1 is on a distinguished road
Default Re: A Tiny victory with semi transparent backgrounds!

Quote:
Originally Posted by MamboHut
Cool, That's what i am talking about
It's a butchering...I mean rendering of the akosolution template. A preview is available at http://showcase.konze.de/

I think you are right about one of the YTW templates having this feature too. I like it a lot!
__________________
Mark

Arthur...congrats on the rebuild! Hope it stays clean.

Click HERE to view signature. (If nothing happens at first...keep clicking)
jomaco1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.04.2004, 08:53   #6 (permalink)
Mamber
 
TheGreek's Avatar
 
Join Date: Apr 2004
Location: Leicester, UK & Allihies,Ireland
Posts: 97
TheGreek is on a distinguished road
Lightbulb Misunderstood, just don't let me be...

I 'think' you have missed the feature here. The text is the example you gave is on an image file. On my example the text is rendered as text. So using this method you can produce the effect dynamically from any content/menus/whatever.

ahh well, genius is often misunderstood!
TheGreek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On



All times are GMT +2. The time now is 11:37.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.