473,657 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3224
In article <f2**********@n ews.xmission.co m>,
Paul Wake<wa******** **@xmission.com wrote:
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=7 5);" 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**********@x mission.comwrot e:
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

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

Similar topics

1
4774
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 javascript. How can I read the existing opacity value?
0
3910
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 the text still at 75% opacity. Can anyone tell me what I'm doing wrong? TIA. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
3
10217
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 in practical real life situations. The soon forthcoming CSS3 recommendation does not serve the public interests in this area not at all. The problem relies in the definition what opacity is, how it is to applied to page elements. In past 5...
6
3715
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 property at design time or in code just fine, but as soon as I move the form to a new location on the screen, it becomes completely opaque. If I then try to set the opacity property again, I get an error message. Any idea what's going wrong? Bob
1
2630
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 activate the script. In the same cell are some links listed and when you move the cursor over the links the image starts to flicker. This is because of the getElementById that identifies each link as an object. Anyone knows how I can solve...
2
2343
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 have tried with Dim p As Integer Dim Vent As Integer For p = 100 To 0 Step -1 Me.Opacity = p For Vent = 1 To 100000
16
2952
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 of code: if ( targetObject.filters && targetObject.filters.length 0 ) opacity = targetObject.filters.item("DXImageTransform.Microsoft.Alpha").Opacity;
15
3710
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 element in Firefox.
0
8845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8522
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8622
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.