![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| ||||
| ||||
|
|
This, then, makes it seem that the bullet container is relative to the end of the text inside the main container "bodyMain", and not relative to the upper-left of the gray box (bodyMain). |
|
Doesn't Top = 10 mean the element is 10 px down from whatever; kind of like a margin? |
|
Doesn't this then make it relative to the bottom of the bulleted container and not the top-left? |
|
Thanks Murray, very helpful. The thread below brings me to another question regarding relative positioning. I have put images inside containers to help position them in text, but have had trouble understanding where that "upper-left" position is. On the following page (http://homepage.mac.com/nshoffner/EEC/Services/Substation.htm) the gray box with "Substation Design and Construction Management" at the top is a "Relative" positioned div (called "bodyMain"). Inside the gray box, the bold title is h3 styled, the first paragraph is a inline <p> styled and the bulleted list ("listContainer") is in a Relative div which positions at Top = 10px (all are px) Left = 8. This, then, makes it seem that the bullet container is relative to the end of the text inside the main container "bodyMain", and not relative to the upper-left of the gray box (bodyMain). Doesn't Top = 10 mean the element is 10 px down from whatever; kind of like a margin? I had trouble positioning the two images also, so I put them into Relative div's, right under the div for the bulleted list. To get the pictures to position where they are in the page you see, the position is, get this, top = -100 left = 250 (or right = -250)! Doesn't this then make it relative to the bottom of the bulleted container and not the top-left? BTY, the picture I am talking (the top one) of is in a container class called "pickInLineRight" Thanks In other words, the absolute position of the layer is not positioned relative to the upper-left of the browser window, but relative to the bottom-left of the first "relative" element (or maybe it is in relation to the upper-left of the element...can't remember). Yes - upper left. |
#32
| |||
| |||
|
#33
| |||
| |||
|
|
It's still a little dim, but it is certainly turned on now! Thanks, a lot! |
#34
| |||
| |||
|
#35
| |||
| |||
|
|
Question. How do you have a sidebar fill down (background color) for the whole browser height, no matter what the height is. I have the color repeat-y, but, as you know it only goes as far as the box dictates. |
|
Murray, Great info! Question. How do you have a sidebar fill down (background color) for the whole browser height, no matter what the height is. I have the color repeat-y, but, as you know it only goes as far as the box dictates. Also, I tried to make my side bar TOC relative with an auto height and a large padding (I also tried to just make the height a large amount (3000px). Both of these to eliminate the need for a scroll bar in the grey area to the right (as it has an auto height too and is positioned relative to the sidebar). But then, since it and the other elements are relative to the Bottom of the TOC, I couldnt get it to work. I just went back to an absolute positioning for the sidebar to get it to work. |
![]() |
| Thread Tools | |
| Display Modes | |
| |