On 15/12/09 11:54, Nicky McCatty wrote:
> After the site was built, the client went 180° again, and decided they
> wanted photos. Now, I need build in the z-axis that hadn't been
> necessary.
>
> Is there an economical way, in CSS, to slide the images underneath the
> existing structure, get what is depicted in the first link?
>
> Thanks,
> Nicky
>
> http://signifydesign.com/grantsetc/r1/
> http://grantsetcetera.com/
>
> Nicky McCatty
> signify | Design
> fusing image& information
> [email protected] | www.signifydesign.com
>
Hi Nicky,
Right now, the site at signifydesign.com creates the illusion of a
semi-transparent box containing text and menus by using patched-together
images that look like that.
You want a background picture (kids in a classroom in front of computer
screens) where the light gray is and you want the dark gray box
containing the text and the menus (Grants Etcetera...) to be slightly
transparent so that it shows the picture behind it.
Is that all correct?
z-index is the related property in this case, but it's not necessary in
this case.
You're using tables for layout. That sucks. I'll spare you the
lecture, but that makes it more difficult, so I'm going to pretend
you're not :)
1. Change all of your text pictures and menu images having a
completely transparent background instead of the color they have now.
2. Set the picture of the kids as the background-image of the
"nav_banner" DIV.
3. Set your "thefold" DIV to have a fixed width and height big enough
(875px x 259px right now) to exactly fit all of the images that
are currently inside it, but don't put anything inside it. Just
put it there empty the same way that the "banner" DIV is right
now. Set its background color and opacity.
* The reason you can't put the intended contents of "thefold"
actually inside it is because they would also have the
opacity of their container. Put them in another DIV, then
wrap another DIV around the two blocks and set the position
property to relative so that it can contain absolutely
positioned elements.
* The opacity setting is part of the CSS3 specification and is
documented:
* Firefox: opacity - MDC
<https://developer.mozilla.org/en/CSS/opacity>
* Internet Explorer: Opacity Property (Alpha) - MSDN
<http://msdn.microsoft.com/en-us/library/ms532910%28VS.85%29.aspx>
* Safari: Visual Formatting Model - Safari Dev Center
<http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-VisualFormattingModel>
* W3C: CSS Color Module Level 3
<http://www.w3.org/TR/css3-color/#transparency>
4. Since the text inside of "fold_head" is really part of the
presentation rather than the content, I recommend you make that an
image using the font size you want rather than actual text.
Otherwise, people who use different font sizes in their browser
will mess up your layout. Put the same text in the alt tag of the
image to address accessibility concerns.
5. Position the "thefold", "fold_head" and "fold_nav" blocks
absolutely inside of the DIV wrapped around those blocks and the
"thefold" block.
After all this is done, you should have something like this:
|#thefold {
background-color: #333333;
opacity: 0.8;
filter: alpha(opacity=80);
position: absolute;
/* This is redundant...
This is where it'd b anyway */
top: 0;
left: 0;
}
#thefold_wrapper {
position: relative;
width: 875px;
height 259px;
}
#fold_head {
position: absolute;
top: 0;
left: 0;
}
#fold_nav {
position: absolute;
top: 50px;
left: 0;
}
<div id="thefold_wrapper">
<div id="thefold">
<div id="fold_head">
<img src="grantsetcetera.png" alt="Grants Etcetera, Inc. has raised hell
for its clients..."/>
</div>
<div id="fold_head">
<table id="navindex_tbl"><tr><td>I wish I was a DIV</td></tr></table>
</div>
</div>
</div>|
I didn't test any of this. I was just trying to give you enough info to
point you in the right direction :)
--
*Vince Aggrippino*
a.k.a. Ghodmode
www.ghodmode.com <http://www.ghodmode.com>
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/