473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Opacity

I'm trying to get http://www.xmission.com/~wake/thewillowproject.html to look
better. I've tried changing the opacity back up for the div the text is in,
I've tried different combinations of positioning, I've tried about every thing I
can think of, but in Firefox I can't get it to look largely like it does but
with darker text, and it looks awful in IE, period. Is there anything obvious
I'm missing that I can fix?
May 12 '07 #1
13 3191
In article <f2**********@news.xmission.com>,
Paul Wake<wa**********@xmission.comwrote:
I'm trying to get http://www.xmission.com/~wake/thewillowproject.html to look
better. I've tried changing the opacity back up for the div the text is in,
I've tried different combinations of positioning, I've tried about every
thing I
can think of, but in Firefox I can't get it to look largely like it does but
with darker text, and it looks awful in IE, period. Is there anything
obvious
I'm missing that I can fix?
I got it to look better by substituting the line

<p><img src="willowlogo.gif" width="100%";></p>

for what you had. The image is too big and over stretches the
div#content. It does not much matter that this pic heading varies
its width and it looks better for it under browser window
changes. That's one thing.

I did not look at what all that script is doing and just cut most
of it out without affecting FF.

I would use in #opaque, opacity: 0.7 or 0.8 rather than 0.5.

But really, you should be checking via validators first and
fixing.

I doubt it is a wise thing to have that red notice for IE! e
specially as it would look fine with a white bg for the content.
Many people would surely even prefer this. It comes up in my iCab
too! So at least the wording needs changing.

I would say you are missing that you will go crazy being too
precious about stuff like opacity. Put it in if it does no harm
and let things look otherwise workmanlike in browsers not so
capable.

--
dorayme
May 12 '07 #2
Paul Wake wrote:
I'm trying to get http://www.xmission.com/~wake/thewillowproject.html
to look better.
I was halfway through reading the first paragraph when that background
image finally popped up (and I am using 10Mbps cable). This is waaaay to
large. Someone on dialup would have finished reading the page and moved
on before it finished loading.

http://www.xmission.com/~wake/willow.jpg
876.6 KB (897,639 bytes)
1,449px × 1,088px

--
-bts
-Motorcycles defy gravity; cars just suck
May 12 '07 #3
Beauregard T. Shagnasty wrote:
Paul Wake wrote:
>I'm trying to get http://www.xmission.com/~wake/thewillowproject.html
to look better.

I was halfway through reading the first paragraph when that background
image finally popped up (and I am using 10Mbps cable). This is waaaay to
large. Someone on dialup would have finished reading the page and moved
on before it finished loading.

http://www.xmission.com/~wake/willow.jpg
876.6 KB (897,639 bytes)
1,449px × 1,088px
Wow! I just thought the page had a white background!

Until something fundamentally changes with the network this concept will
remain fine for billboards but not for webpages. There are creative ways
to give the "impression" of large image wallpaper without the monster
image. Anyway as web design goes I think the background is too
overpowering and you cannot read your "message" very well. It is your
"message" that is important, right?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
May 12 '07 #4
The message is tongue-in-cheek, and the main thing I'm doing with that page is
just playing with it to experiment with background images and more particularly
with opacity.
May 12 '07 #5
Paul Wake wrote:
The message is tongue-in-cheek, and the main thing I'm doing with that page is
just playing with it to experiment with background images and more particularly
with opacity.

Well in real life it would not be practical.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
May 12 '07 #6
I never did figure out how to bring the text up to full opacity over a more
transparent background (I tried z-index divs, etc. to no avail), but by upping
the opacity the text shows better than it was. The other big problem was with
IE: the "filter: alpha(opacity=75);" wasn't working at all--there was just a
white background. Adding "height: 100%;" to the div fixed that and got opacity
working (although it threw off top and bottom padding in IE, but I figure that
IE users can't be choosy). I understand that some people don't like opacity,
but I'm guessing that opacity is one of the next big things a lot of people
latch onto, if it ever becomes a workable standard.
May 13 '07 #7
On 2007-05-13, Paul Wake <wa**********@xmission.comwrote:
I never did figure out how to bring the text up to full opacity over a more
transparent background (I tried z-index divs, etc. to no avail), but by upping
the opacity the text shows better than it was.
You can do it like this:

1. Remove background-color and opacity from your selector for #opaque.
2. Add to the selector for #opaque "position: relative; z-index: 0"
3. Create a new selector:

#curtain
{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: white;
opacity: 0.35;
z-index: -1;
}
I've reduced the opacity to 0.35 to make the effect more obvious.

4. In the content, just after where you open <div id="opaque"add:

<div id="curtain"></div>

This way the semi-opaque "curtain" is inserted behind the text, but the
text is not painted onto the curtain (which would make it 0.35 opacity
together with it), but into its <pwith default transparent background
and fully opaque foreground stacked on top of the curtain.

#opaque (not a good name by the way) is position: relative so it becomes
the containing block for the curtain, which uses top, bottom, left and
right of 0 to locate it inside its containing block.

z-index is necessary because absolutely positioned descendents are
usually stacked above normal flow descendents. Note also that we have to
make #opaque z-index: 0 so that it establishes the stacking context for
#curtain. This means #curtain goes behind other things _within #opaque_.
Otherwise z-index: -1 could put it behind things higher in the document
with the result you might not see it at all.
May 13 '07 #8
Thanks! That works better. I'd read elsewhere that it was impossible to do,
but you did it!
May 14 '07 #9
Paul Wake wrote:
Thanks! That works better. I'd read elsewhere that it was
impossible to do, but you did it!
Doesn't work in IE 6 :(
May 16 '07 #10
Ben C wrote:
On 2007-05-13, Paul Wake <wa**********@xmission.comwrote:
>I never did figure out how to bring the text up to full opacity over
a more transparent background (I tried z-index divs, etc. to no
avail), but by upping the opacity the text shows better than it was.

You can do it like this:

1. Remove background-color and opacity from your selector for #opaque.
2. Add to the selector for #opaque "position: relative; z-index: 0"
3. Create a new selector:

#curtain
{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: white;
opacity: 0.35;
z-index: -1;
}
I've reduced the opacity to 0.35 to make the effect more obvious.

4. In the content, just after where you open <div id="opaque"add:

<div id="curtain"></div>

This way the semi-opaque "curtain" is inserted behind the text, but
the text is not painted onto the curtain (which would make it 0.35
opacity together with it), but into its <pwith default transparent
background and fully opaque foreground stacked on top of the curtain.

#opaque (not a good name by the way) is position: relative so it
becomes the containing block for the curtain, which uses top, bottom,
left and right of 0 to locate it inside its containing block.

z-index is necessary because absolutely positioned descendents are
usually stacked above normal flow descendents. Note also that we have
to make #opaque z-index: 0 so that it establishes the stacking
context for #curtain. This means #curtain goes behind other things
_within #opaque_. Otherwise z-index: -1 could put it behind things
higher in the document with the result you might not see it at all.
Doesn't work in IE6:
http://www.nrkn.com/3ColEqual/test.html
May 16 '07 #11
In article <f2**********@aioe.org>, Nik Coughlin says...
>
Paul Wake wrote:
>Thanks! That works better. I'd read elsewhere that it was
impossible to do, but you did it!

Doesn't work in IE 6 :(

Bummer. Does in IE7 (Win), though, mostly.

One other question: is there a good way to center the opaque text area
vertically?

http://www.xmission.com/~wake/thewillowproject.html
May 16 '07 #12
On 2007-05-16, Nik Coughlin <nr******@gmail.comwrote:
Paul Wake wrote:
>Thanks! That works better. I'd read elsewhere that it was
impossible to do, but you did it!

Doesn't work in IE 6 :(
I'm a genius, not a magician.
May 16 '07 #13
On 2007-05-16, Paul Wake <wa**********@xmission.comwrote:
In article <f2**********@aioe.org>, Nik Coughlin says...
>>
Paul Wake wrote:
>>Thanks! That works better. I'd read elsewhere that it was
impossible to do, but you did it!

Doesn't work in IE 6 :(


Bummer. Does in IE7 (Win), though, mostly.

One other question: is there a good way to center the opaque text area
vertically?

http://www.xmission.com/~wake/thewillowproject.html
If you don't mind setting a height on it it's quite easy. Use

position: absolute;
height: 60%;
margin-top: auto;
margin-bottom: auto;
top: 0;
bottom: 0;

on #content

But when the viewport gets small, the text will still overflow its
container.

See http://www.student.oulu.fi/~laurirai/www/css/middle/ for some
alternatives.

But really to do this you need display: table-cell or display:
inline-block, neither of which work properly in IE, and inline-block
also doesn't work in Firefox.
May 16 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dean Edwards | last post by:
I am attempting to change the opacity of an image. I can modify opacity ok: function flip(pic, opacity){ pic.style.filter = 'alpha(opacity='+opacity+')'; } But I'm not familiar with...
0
by: kaeli | last post by:
All, The following is an example of what I'm trying to do: I have a box set to be partially transparent. I want the text in the box to NOT be partially transparent. This works in IE, but NN7 has...
3
by: Marek Mänd | last post by:
This posting will express my concern about the future of css3 forthcoming recommendation. I think for long time now, that the current implementation of CSS attribute opacity is less than usable...
6
by: Robert A. Boudra | last post by:
As you will probably guess, I'm just starting out with VB.net although I'm a long time VB developer. I was playing around with the Opacity property of a form and have found that I can set the...
1
by: mhoeneveld | last post by:
I am writing a small script to fade the opacity of an image/object. The script itself works fine only I do have some unwanted behaviour. I do use a tablecell object and the mouseover/mouseout to...
2
by: reidarT | last post by:
I want a windows form to act like the one in Outlook when you get a new message and it is visible for about a couple of seconds and then the opacity decreases and the form dissapears in the end I...
16
by: Darko | last post by:
Hi, I'm trying to get and set an element's opacity, but I'm stuck with, what a hell of surprise, Internet Explorer. As for getting the element's opacity, I have the following (not working) lines...
15
by: Sunny | last post by:
Hi, I can change the lement opacity in IE using. abc.style.filter = 'alpha(opacity=' + 10 + ')'; But this dont work in firefox, In firefox it throws error. How I can change the opacity of an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.