Re: [css-d] absolute positioning within a DIV

2006-02-25 Thread Erik Harris
At 05:41 PM 2/25/2006, Erik Harris wrote:
>The work-in-progress page is here:
>
>http://www.fileh.com/kungfujoe/WebDVD/index.html
>[...]
>specify offsets with respect to the box's containing block."  Isn't a DIV a
>containing block?  More specifically, how do I make a DIV into a containing
>block?  I've absolutely positioned the "a" elements, just as the example on
>A List Apart does, but they're being positioned with respect to the

Never mind..  I managed to fix it with the div-in-a-div method (I forgot 
about that, though I'd used it before).  I still don't quite understand why 
a relatively-positioned div can't be a containing element, but I guess it's 
a design choice made by the W3C folks...


Erik Harrishttp://www.eHarrisHome.com
-AIM: KngFuJoe - Yahoo IM: kungfujoe7 - ICQ: 2610172-
Chinese-Indonesian Martial Arts Club  http://www.kungfu-silat.com

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] absolute positioning within a DIV

2006-02-25 Thread Erik Harris
I'm in the process of putting together a CSS image map (with help from 
http://www.alistapart.com/articles/imagemap), and I'm clearly doing 
something wrong.  I haven't yet gotten to the point of placing images onto 
the links (or even creating all of the images), but I've got text placeholders.

The work-in-progress page is here:

http://www.fileh.com/kungfujoe/WebDVD/index.html

(with CSS here: http://www.fileh.com/kungfujoe/WebDVD/WebDVD.css - the last 
line is for a stupid free hit counter that fileh.com automatically inserts 
into my HTML file)

My understanding from the CSS spec is that when it comes to absolutely 
positioned elements: "The box's position (and possibly size) is specified 
with the 'top', 'right', 'bottom', and 'left' properties. These properties 
specify offsets with respect to the box's containing block."  Isn't a DIV a 
containing block?  More specifically, how do I make a DIV into a containing 
block?  I've absolutely positioned the "a" elements, just as the example on 
A List Apart does, but they're being positioned with respect to the 
upper-left corner of the portal window, and not of the parent 
DIV.  Unfortunately, the example given on A List Apart forces its menu to 
the upper-left corner of the portal window (a convenient "fix" for my 
problem), but I really want to have mine centered.  I'm not quite sure what 
I'm doing wrong here.

Any help would be appreciated.  Thanks in advance

Erik Harrishttp://www.eHarrisHome.com
-AIM: KngFuJoe - Yahoo IM: kungfujoe7 - ICQ: 2610172-
Chinese-Indonesian Martial Arts Club  http://www.kungfu-silat.com

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/