Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Themes ⇒ css problem


css problem
Announce themes that you have created, or ask questions about how to create/modify a theme in 9.x. Includes the Requests sub-forum.
Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Themes

View previous topic :: View next topic  
Author Message
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Nov 14, 2011 4:33 am
Post subject: css problem

www.dizwebdesign.com/i...eme=hunter


left blocks, I have a container around the block code with special background properties color with transparent instead of using a transparent image. but for some reason all the content inside this container is showing transparent.

Any one got any ideas why or how to show the background at 50% transparent with out it affecting the content? I have not used this before so it is a new trick I guess lol. Thanks in advance for any help provided.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Nov 14, 2011 5:27 am
Post subject: Re: css problem

that's an easy one

opacity is inherited so each element (img, text, ecc ecc) should have opacity back to 1.

or set a child div with opacity 1 and background transparent ?


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Nov 14, 2011 6:02 am
Post subject: Re: css problem

Thanks I will try it and post results. Thanks

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Mon Nov 14, 2011 5:22 pm
Post subject: Re: css problem

use: rgba(0-255,0-255,0-255,0 - 0.99)

background-color:#000; (fallback color for old browsers);
background-color:rgba(0,0,0,0.8); // black background with 80% of opacity.

rgba controls the color and allows an alpha channel, opacity makes the whole element and its content "transparent".

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Nov 14, 2011 6:04 pm
Post subject: Re: css problem

I gave up on trying to do it with css for now i just using a 6px by 6px png 50% transparent. I will figure out how to do it with css eventaully but every way i have tried so far makes all content transparent to.
Code::
<div id="transback">
<div id="blockhead">
<div id="blockcontent">
</div>
</div>
</div>

That is the structure i had. the transback was the container i made the transparent background on but the 2 containers for blocks inherited it. there is some way to do it. I will ind it eventually.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Mon Nov 14, 2011 7:19 pm
Post subject: Re: css problem

.transback {background-color:rgba(0,0,0,0.5);}

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Nov 14, 2011 10:51 pm
Post subject: Re: css problem

I will give it a shot. Thanks

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Tue Nov 15, 2011 5:23 am
Post subject: Re: css problem

greenday2k wrote:
.transback {background-color:rgba(0,0,0,0.5);}

This does not work in IE Sad

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Genocide
Newbie
Newbie

Offline Offline
Joined: Oct 17, 2009
Posts: 8
Location: UK
PostPosted: Wed Nov 16, 2011 9:41 pm
Post subject: Re: css problem

.transback {
filter:alpha(opacity=50);
opacity:0.50;
}


Genocide's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Thu Nov 17, 2011 7:40 am
Post subject: Re: css problem

Thanks Gen, i have tried that as well that makes everything transparent content and all.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Nov 17, 2011 8:55 am
Post subject: Re: css problem

How did you go with InspectorClueNo's idea.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Thu Nov 17, 2011 9:06 am
Post subject: Re: css problem

Basically InspectorClueNo'd idea should work with the following classes:

.transback {opacity:0.5}
.blockhead, .blockcontent {opacity:1}

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Thu Nov 17, 2011 5:54 pm
Post subject: Re: css problem

I misunderstood what INspectorClue I will try it again. damn PEBCAC errors Smile

edit: nope still does not work all content insdie the transbg container still show up 50% transparent.

Just incase im doing some thing wrong heres the code

html
Code::
<div class="blockcontainer">
  <div class="blockhead" onclick="blockslide('{rightblock.S_BID}');" style="cursor:pointer;" title="{S_TOGGLE}">
    {rightblock.S_TITLE}
  </div>
  <div class="blockcontent" id="pe{rightblock.S_BID}" {rightblock.S_VISIBLE}>
      {rightblock.S_CONTENT}
  </div>
  </div>

css
Code::
.blockcontainer {
    background-color: #000000;
    opacity:0.5;
    alpha(opacity=50);
    -moz-opacity:0.5;
}
/* table inside the the td that holds the block title */
.blockhead {
    color: #FFF;
    font-size: 10px;
    font-weight: bold;
    height: 14px;
    width: 168px;
    padding: 3px;
    vertical-align: middle;
    border-bottom: 1px solid #000;
    opacity:1.0;
    alpha(opacity=100);
    -moz-opacity:1.0;
}
/* table that holds the content in blocks */
.blockcontent {
  width: 168px;
  padding: 3px;
  opacity:1.0;
    alpha(opacity=100);
    -moz-opacity:1.0;
}

Live View: www.dizwebdesign.com/i...eme=hunter

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Thu Nov 17, 2011 8:22 pm
Post subject: Re: css problem

add !important

opacity:1.0 !important;
alpha(opacity=100) !important;
--moz-opacity:1.0 !important;

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Fri Nov 18, 2011 7:58 pm
Post subject: Re: css problem

still no go all content is still transparent along with back ground, I dont think there is a way to do it in css.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Themes
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

อ่านต่อ...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy