How To: Semi-Transparency
Sep. 15th, 2010 12:31 pmTheme: All
How To: Set the Opacity of an Element (Make a color on your journal appear slightly transparent)
I've often wonder how you would accomplish this look:

Option 1: As it turns out there is a simple way to do this.
Black:
This is based on the RGB color scale so (0, 0, 0) is black. When you add the 0.6 you are adding the transparency. 0.9 is rather dark but 0.1 is super light almost completely transparent.
White:
Red:
To find or customize a color for transparency you can check programs like PhotoShop or Paint Shop and when you have the color for painting they usually give you the numbers for RGB or you can use this RGB Color Chart.
Option 2: Another other option is this:
The unfortunate part about using this code for the header links is it will also make the text semi-transparent.
Option 3: Using an image background that was created to have an opacity or semi-transparency already built into it. This only works some of the time as some browsers don't support it. The image should be a png. To do this you would want this coding:
Below are a black and white semi-transparent image. You can't fully tell here for the white one but it does work.

Option 4: You want complete transparency of an item like the background to the sidebar. Note: The above sidebar is set to transparent but the actual components are not. So under the sidebar coding it we are using the below code:
For the components "sbarbody" and "sbarbody2" the background color is set to white.
I hope this helps you in your semi-transparent endeavors.
How To: Set the Opacity of an Element (Make a color on your journal appear slightly transparent)
I've often wonder how you would accomplish this look:
Option 1: As it turns out there is a simple way to do this.
Black:
This is based on the RGB color scale so (0, 0, 0) is black. When you add the 0.6 you are adding the transparency. 0.9 is rather dark but 0.1 is super light almost completely transparent.
White:
Red:
To find or customize a color for transparency you can check programs like PhotoShop or Paint Shop and when you have the color for painting they usually give you the numbers for RGB or you can use this RGB Color Chart.
Option 2: Another other option is this:
The unfortunate part about using this code for the header links is it will also make the text semi-transparent.
Option 3: Using an image background that was created to have an opacity or semi-transparency already built into it. This only works some of the time as some browsers don't support it. The image should be a png. To do this you would want this coding:
Below are a black and white semi-transparent image. You can't fully tell here for the white one but it does work.

Option 4: You want complete transparency of an item like the background to the sidebar. Note: The above sidebar is set to transparent but the actual components are not. So under the sidebar coding it we are using the below code:
For the components "sbarbody" and "sbarbody2" the background color is set to white.
I hope this helps you in your semi-transparent endeavors.



layout_lounge
(no subject)
Date: 2011-10-27 05:09 pm (UTC)I'm actually thinking some of this transparency isn't what you want... what you want is this...
background-color: transparent !important;
This will remove a background color. Let me know if you need help. I do work on layouts for people on occasion and I just can't stand it when people aren't getting what they want out of LJ. ;-)
(no subject)
Date: 2011-10-27 05:15 pm (UTC)I did some more reading on the whole custom CSS thing and tried a few things, but it seems like I can't get any of the edited codes to work in the "custom css" box. So this means I'll have to export the entire style sheet and upload it somewhere? At least that's what I understood from what I read about other editing. Oddly enough it does work with the header code and no external style sheet.
The comm is
So first question: do I really have to upload the entire stylesheet somewhere?
And if yes, do I need to adjust all of the classes in it or can I just include those that need changing and LJ will automatically use the rest from the default LJ style?
Thanks for your offer to help already. MUCH appreciated :)
(no subject)
Date: 2011-10-27 06:01 pm (UTC)I am not sure. It is possible your settings are off somewhere...
Are you looking to do something like this...
http://workshop-rees.livejournal.com/
The sidebar is at the top. I can put it on the side.
(no subject)
Date: 2011-10-27 06:10 pm (UTC)When I was trying things earlier I just added the code for the specific class into that box, but nothing changed.
This (http://i43.tinypic.com/2w5sm7r.jpg) is what my settings look like.
Oh btw, THAT pasted code does work. The image is just empty right now. But this one works.
(no subject)
Date: 2011-10-27 07:04 pm (UTC)So I'm going to upload the coding to that comm
You are going to want those questions to be Yes, No, No. Then you can copy and paste the code from the comm to your custom stylesheet box and it should work.
(no subject)
Date: 2011-10-27 07:07 pm (UTC)if I do have problems adjusting something I want, can I get back to you? I did find a good overview/tutorial thing, so that should help, but I might get stuck here and there. Like I said, I'm pretty much a total noob.
Also what about the header code that I already have in my box? Will something like this be in the new code as well or can I just add this bit somewhere?
(no subject)
Date: 2011-10-27 07:44 pm (UTC)It is incorporated.
(no subject)
Date: 2011-10-27 07:06 pm (UTC)(no subject)
Date: 2011-10-27 07:08 pm (UTC)