Welcome to Gaia! :: I just started learning CSS coding... | Forum

Register FaceBook Login Login

 

Welcome to Gaia's forums, where millions discuss thousands of topics a day.

Lurking is creepy. Quit skulking in the shadows and join the conversation!

Advertisement

I just started learning CSS coding... 

Tags: just  started  learning  coding 
Share:
forum:43, topic:55902819
And I'm wondering if it's possible to isolate the text opacity from the section opacity. I have tried various ways of trying to circumvent it to no avail.
 
     
 
mahi poi no ka oi
And I'm wondering if it's possible to isolate the text opacity from the section opacity. I have tried various ways of trying to circumvent it to no avail.
Apply the opacity to the element containing the text, and not its parent element. Simple.
     
psychic stalker
mahi poi no ka oi
And I'm wondering if it's possible to isolate the text opacity from the section opacity. I have tried various ways of trying to circumvent it to no avail.
Apply the opacity to the element containing the text, and not its parent element. Simple.
Sorry maybe I wasn't clear enough. But I was trying to separate the text from the panel itself. Essentially what I want to do is make the panel transparent but the text on the panel solid. As I said, I don't think this is possible but I'm asking anyway just in case (cause I know almost nothing of CSS).
 
     
 
mahi poi no ka oi
psychic stalker
mahi poi no ka oi
And I'm wondering if it's possible to isolate the text opacity from the section opacity. I have tried various ways of trying to circumvent it to no avail.
Apply the opacity to the element containing the text, and not its parent element. Simple.
Sorry maybe I wasn't clear enough. But I was trying to separate the text from the panel itself. Essentially what I want to do is make the panel transparent but the text on the panel solid. As I said, I don't think this is possible but I'm asking anyway just in case (cause I know almost nothing of CSS).
I see. You could try applying an opacity of 100% to the element containing the text and less opacity to the parent element. So, a div containing a p element could have opacity 0.6 and the p element inside it could be given opacity 1.0.

I don't know if that will work, really, but it's worth a shot. TBH, I wouldn't expect it to.
     
Random PMs will be deleted and senders added to my ignore list. That includes posters in threads I participate in. If I don't know you, ignored. Period.

v4sw7+8CFHJMPRSUY$hw6/8ln5pr7FOPS$ck6ma7u8FLOw5GVm5l7DGUi20e4t3ABDEFGMNSTVb6DHMORTen7aNs0Br2p-5.62/-4.26g8ACGHMOPRTVZ hackerkey.com
http://imagegen.last.fm/lastfmblue/recenttracks/4/greyfade.gif
Yeah it didn't work. Thanks for the reply though. I'll wait for a couple more opinions before letting this thread die.
 
     
 
so it would be something like this:

#section{opacity:0.6;}
* p {opacity:1!important;}


That will make the div with the ID of section have opacity of 0.6, and ALL text have an opacity of 1

if you want only a specific section like that, use

#section p{opacity:1;}

The important is not strictly necessary, but it makes sure that the P styling overrides the #section styling.
     
Sorry to be a bother, but could you explain how that works exactly? I'm trying to actually learn CSS and what each code does and not just copy/paste some codes that have been pre-made. So what exactly is the p and * for?

EDIT: It seems that didn't really help much. I tried both codes and neither seem to make a difference. neutral
 
     
 
ok. the * is a wild card selector, so it can be any (or all) class or selector or formatting group, depending on whats around it. the P selector selects paragraphs

try using #selector * {opacity: blah blah blah instead, to make sure we get the text.

also, #selector is just a dummy selector, and you should change it to suit your HTML
     
CSquared

Well, if we're equating alcohol to n-dimensional space...



Homepage

http://img197.imageshack.us/img197/6227/zoidsig.png
Alright I just tried the following simple code

#about * {opacity:1.0}

with the #site opacity set to .4 and it didn't seem like it made any difference at all.
 
     

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit