| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Jan 2004
Posts: 365
|
css transparency
I have a problem. http://www.hypelondon.co.uk/amos/portfolio1.html the black transparency over the main image is int eh table behind the table witht eh content in however the content is also having the fade applied to it and it shouldnt, this si a rookie error but I am tired and I cant see the error, can anyone help. cheers me |
|
|
|
|
|
#2 (permalink) |
|
Sir digby chicken caesar
Join Date: Sep 2004
Posts: 4,835
|
code is a total mess, can't see any overriding opacity setting for the copy class? this opacity is for IE only, wheres the code for firefox/every other browser in the world? <meta name="description" content="A-Bike"> <meta name="keywords" content="Sir Clive Sinclair, Folding Bike, A bike, A-bike, Collapsible bike, Commuter transport"> <meta name="author" content="www.a-bike.co.uk"> ??? whats going on. |
|
|
|
#5 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
The code is a mess because it's been written for IE-only and it uses all the worst, out-of-date practices. No DOCTYPE, tables for layout, inline images, JavaScript in the HTML, presentation mixed in with the content, etc. Quote:
|
|
|
|
|
#9 (permalink) |
|
Sir digby chicken caesar
Join Date: Sep 2004
Posts: 4,835
|
as for your original problem I'll repeat myself in case you missed it: can't see any overriding opacity setting for the copy class. *edit* although now that I think about it, I seem to dimly recall that child items inherit the parent attributes for opacity even with an overriding style, so you might want to position the text in another way. This will be tricky as you are using table cells. |
|
|
|
#12 (permalink) |
|
Senior Member
Join Date: Jan 2004
Posts: 365
|
I am sorry to drudge up this post again but still need help http://www.hypelondon.co.uk/amos/portfolio1.html this is the css for the shade #content_shade { background-color: #000000; filter:alpha(opacity=20); opacity: 0.2; -moz-opacity:0.2; color: white } and this is the css for the copy .copy { font-family: Helvetica; font-size: xx-small; color: #FFFFFF; text-decoration: none; text-transform: lowercase; text-align: justify; opacity:100%; opacity: 1; -moz-opacity:1; } but the copy is still 20% transparent on top of the black shade |
|
|
|
#14 (permalink) |
|
Rough Creep Arse™
|
grafiks, I've been having a similar problem. Opacity doesn't validate with css2 anyway (it seems). What I've done is made a semi-transparent PNG file and stuck that in the background. Check out www.kozmo.co.uk for an example - doesn't yet work in IE6 BUT IT WILL! Best solution I've found so far. |
|
|
|
#15 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
You can get the PNG transparency to work in IE6 with that filter nonsense (fed from an IE-only stylesheet, of course). It works in IE7. PNG transparency works in every other modern browser. The same cannot be said for the above code. |
|
![]() |