![]() | |
#51
| |||
| |||
|
|
Bonnie Granat wrote: Bonnie Granat wrote: http://www.granatedit.com/testdevelopmentalediting.html But the menu winds up being so wide as to cause the problems you all complained about before! LOL. I got rid of the graphic, but the menu will still cause the other divs to go beneath it when the window is made smaller, won't it? In your other version, the content flows under the navbar because you are using 155px for the navbar width, but 75% (of window) for the content. In smaller windows, 155px (plus borders, padding and margins) is wide enough where there is not enough horizontal space left for a floated 75% div. Thus the content flows under the navbar where there is sufficient horizontal space. Suggestion: 1. Remove all the "width:155px" rules in the stylesheet. You do not need to specifically set widths on all those different elements, just the main container (div.menu). Block elements within that container should automatically expand to 100% width. 2. div.menu: Set the sidebar container width in em units, maybe width:10em (or thereabouts). I would also set overflow:hidden to prevent WinIE from expanding the width at very small text sizes. This will only cause the right side of the graphic to get sliced off a tad. 3. div.content: Do not float or set an explicit width, just set margin-left:10em (or thereabouts) and margin-right:3% (or therabouts, if you do in fact want a right margin). The quick test I did showed margin-left:10.1em to be just about right with a 10em navbar width. You could also change the border widths from 4px to .2em. This should give better consistency with different text sizes, too. The width of the navbar will then adjust with the text size, the content area will also adjust accordingly, as well as with window size. No more shifting around. |
#52
| |||
| |||
|
#53
| |||
| |||
|
#54
| |||
| |||
|
|
The first draft is at http://www.granatedit.com/newtestdev...alediting.html. I had to increase the width in order to not have any menu items on two lines. I dislike having those long lines, though, as you well know, so I will work on something to solve that problem. I think I understand some things now that I didn't understand before, like sizing the content div and why that causes breakup of the page. What I forget (if I ever knew it) was why em is the preferred unit for this. |
#55
| |||
| |||
|
|
I might add that the page still breaks up at large type sizes.... so what's the deal with that? Any cure? |
#56
| |||
| |||
|
|
I might add that the page still breaks up at large type sizes.... so what's the deal with that? Any cure? |
#57
| |||
| |||
|
#58
| |||
| |||
|
#59
| |||
| |||
|
|
The page STILL breaks up. At the smallest type size, it breaks up at about a quarter of the window width; at the largest type size, it breaks up at about 55% of the the window width. |
|
What exactly have I gained? If not much, that's okay, because now I have understood why no width should be specified in the main content div. LOL. However, what if I want to add another content div. Then I have to make this one float: left, right? And then I make the new one just like this one. Is that correct? |
#60
| |||
| |||
|
|
OK. The solution is this: I have to redesign the menu so that I don't need that much width. If I get it down to 10em, I should be OK. |
![]() |
| Thread Tools | |
| Display Modes | |
| |