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

Home Posts Topics Members FAQ

a delicate style problem :)

5 New Member
hi, I have a problem, so please, who knows something I'd be very happy if he helps me

so, I wanted to specify an opacity for the site logo's DIV, i did, this:

Code -start-

div.logo {
... /*Other formating css script*/
filter: alpha(opacity=6 0); /*this is for opacity in IE (Internet Explorer)*/
-moz-opacity: 0.6; /*this is for opacity in Mozilla Firefox*/
... /*Other formating css script*/
}

Code -end-

my html code looks like this:


Code -start-

<div class="logo">
<img src="logo4.jpg" >
</div>

Code -end-

in my intensions was to make the div, ONLY the DIV transparent, not actually the logo!, but

it was made transparent by itself, it seams from it's parent... how can I disable the

opacity, of the logo?

If i specify like this:

Code -start-

.logo img {

filter: alpha(opacity=1 00); /*this is for opacity in IE (Internet Explorer)*/
-moz-opacity: 1.0; /*this is for opacity in Mozilla Firefox*/

}

it makes the opacity relative to the div, but I wanna disable it at all!!

how can I do that?
Nov 28 '07 #1
10 1650
Death Slaught
1,137 Top Contributor
Sup dvdriper, Welcome! To TSDN!

If you're wanting the transparency only on this one section then use "id" not "class". Yes it inherited the styling of your "div" because "img" was nested in your "div".

Furthermore if you're only wanting the transparency on your logo, then give the logo it's own "id", then use the code to "remove" the transparency.

Incase you don't know how to use id it's really simple.

Expand|Select|Wrap|Line Numbers
  1. #id {
  2.  
  3. }
Hope it helps, Thanks, Death
Nov 28 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
You can use the CSS property 'opacity' for Mozilla since it understands it and you don't need '-moz-opacity'.
Nov 28 '07 #3
dvdriper
5 New Member
Sup dvdriper, Welcome! To TSDN!

If you're wanting the transparency only on this one section then use "id" not "class". Yes it inherited the styling of your "div" because "img" was nested in your "div".

Furthermore if you're only wanting the transparency on your logo, then give the logo it's own "id", then use the code to "remove" the transparency.

Incase you don't know how to use id it's really simple.

Expand|Select|Wrap|Line Numbers
  1. #id {
  2.  
  3. }
Hope it helps, Thanks, Death
thanks, but it doesn't work
look please to this link:
what I did wrong?
http://trr.sytes.net/tutor/index3.htm

the image must be in full opacity if so, like the original:
http://trr.sytes.net/tutor/logo4.jpg
Nov 28 '07 #4
Death Slaught
1,137 Top Contributor
It looks fine to me, what it is that's bothering you?

- Death
Nov 28 '07 #5
dvdriper
5 New Member
It looks fine to me, what it is that's bothering you?

- Death
no sry, I want it to have no opacity, at all, if it's posible, if you look carefully it has a little of opacity (60%), but I need it to be identical to the original one:
http://trr.sytes.net/tutor/logo4.jpg

is that possible?
Nov 28 '07 #6
Death Slaught
1,137 Top Contributor
As long as you give it a transparent value, it's going to have a little bit left.

If you're trying to achieve the effect of the page with the white background, why not forget of transparencies, and just put in the image?

- Death
Nov 28 '07 #7
Death Slaught
1,137 Top Contributor
Here's exactly what they had, but with your gray background color.

<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Strict//EN >

[HTML]<html>

<head>
<style type="text/css">

body {
background-color:#444;
}

</style>
</head>

<body>
<div>

<img src="logo.jpg" alt="Logo" />

</div>
</body>

</html>[/HTML]

- Death
Nov 28 '07 #8
dvdriper
5 New Member
Here's exactly what they had, but with your gray background color.

<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Strict//EN >

[HTML]<html>

<head>
<style type="text/css">

body {
background-color:#444;
}

</style>
</head>

<body>
<div>

<img src="logo.jpg" alt="Logo" />

</div>
</body>

</html>[/HTML]

- Death

I understand, but now look here:
http://trr.sytes.net/

I want to have the effect that when the mouse is other the logo, all this transparency effects to be gone and to show me the logo without transparency.

there's not a css property that disables the opacity? or something like that?

sry my bad english
Nov 29 '07 #9
dvdriper
5 New Member
sorry double post!!!!!
Nov 29 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5508
by: macgyver | last post by:
This is a strange question, and I think the answer is NO, but I am asking anyway. I am a member of a website which allows us to alter our member profiles. Using css in the middle of the profile area allows one to overide the normal formatting of the entire page and truly customize it. But there is a span-style tag which gives an ugly blue background to certain text which I want to get rid of. This is the tag: <span...
4
5476
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) { document.getElementById(nameOfDiv).style.visibility='visible'; document.getElementById(nameOfDiv).style.height='auto'; if (nameOfDiv != 'weblogs')
1
2034
by: Roy | last post by:
Hey all. All I'm trying to do is get a darn double solid bar in my datagrid footer. Doesn't seem to work. Any tips? The weird thing is all the other stylesheet attributes work. If I increase the font size it's reflected, etc... Here's my style sheet code: ..Footer { border-top-style:double; border-top-color:Black;
0
2620
by: cedoucette | last post by:
I just wrote code to support sortable columns in a datagrid. It seems to work fine; but, it doesn't look right. The problem is that I have a generic style for links and a different style for the header row - and they conflict. The sortable column apparently uses the generic style for <a> elements and the rest of the header uses "headerRow". Can anyone tell me how to get consistent styles for each column in my datagrid header?
1
9031
by: RonY | last post by:
I have a dropdown which calls SetTimePeriod method on change the selection. In the JS function, I reset the field style.display based on what the selection is. This works fine with IE but not working with Firefox browser. The firefox browser has problem to display a field after its style.display is reset. At the end of the JS function, I printed out the fields style.display value. They are set correctly. How to resovle this? My JS is : ...
6
13771
by: rongchaua | last post by:
Hi all, I want to change the style of a button. But I don't know how to do it. For example, I have already a button OK on form. I want to add these styles to this button (WS_CHILD || WS_VISIBLE || WS_CLIPSIBLINGS || WS_TABSTOP || BS_FLAT). What should I do now? All help will be appreciated. rca.
3
1918
by: Michellevt | last post by:
Hi I am working on a project (for college) and wondered if anyone can help me with my problem. In the project we are not allowed to make use of any "style" attributes but "class" attributes instead. The following is the java script that i am using and i am having trouble in using a class instead of a style tag because simply replacing the style=\"position:absolute;\" tag with class=\"posiAbs\" where in the external css ".posiAbs...
3
1954
Claus Mygind
by: Claus Mygind | last post by:
I want to move some style setting into a javaScript function so I can make them variable but I get "invalid assignment left-hand side" error? see my question at the bottom of this message. It works fine when I stream it out in my html page like this: <DIV ID="popSearch" STYLE=" position:absolute; visibility:hidden;
4
1978
by: HNPandey | last post by:
<HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-UTF8"> <TITLE></TITLE> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <STYLE TYPE="text/css"> <!--
0
8750
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9111
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8961
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...
0
7853
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6585
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
5922
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
4421
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
4679
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2439
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.