Warren Post wrote:[color=blue]
> On Thu, 20 May 2004 13:56:00 -0600, Els wrote:
>[color=green][color=darkred]
>>>What you want is better and easier
>>>achievable using float instead of position:absolute.[/color][/color]
>
> I agree with your immediate point, but one of my objectives is to have the
> page content (div.content) up front in the HTML and tuck the site
> navigation stuff (div.navbar) at the end of the HTML, and yet still be
> able to place div.navbar wherever I want it on the displayed page. I can
> do this with position:absolute. If I use float, however, I have to place
> div.navbar before div.content in the HTML. Of course, I'd love for someone
> to prove me wrong.[/color]
Makes two of us.
I found the only way to use floats and have the navigation
after the content, is to know the width of the content. But
that defies the purpose of the floats, i.e. having flexible
widths.
[color=blue]
> As an aside for those who are wondering why I want content before site
> navigation in the HTML, take a look at the page with style sheets turned
> off. Jukka Korpela (who got me thinking about this issue in the first
> place) has a fine essay on the subject on his website.
>[color=green][color=darkred]
>>>Have a look at this construction on my site:[/color]
>>
>>
http://locusmeus.com/html-css/simple.html[/color]
>
> Yes, I see how you use float to position the navigation links on the left
> without requiring absolute positioning (at the cost of having the navlinks
> appear before content in the HTML). What I do not see is a solution to my
> original problem, and in fact in my browsers your page has the same issue
> that mine does: at high zoom levels or narrow viewport widths, the right
> margin grows larger and larger, and text spills into the margin and
> becomes illegible.[/color]
That's only on that page, because I used pre to show the css
of the page. Any other page on my site doesn't show that
problem.
Also, you say the right margin grows larger and larger.. I
don't see that. In which browser do you see that?
[color=blue]
> What seems to be happening in both our cases is that text (in my case,
> p.header, in your case, <pre>) is spilling over the edge of the viewport
> and off the right margin of the viewer space. Why the right margin does
> not adjust for this I do not know, but a workaround I've just come across
> is to specify overflow:hidden for p.header. My page's overflowing text
> isn't critical and can be truncated.[/color]
Huh? You mean you have text on your page, that you'd rather
see inaccessible than overflowing into the margin?
[color=blue]
> So thank you for your comments; they were what got my mind unstuck and
> helped me to find the workaround.[/color]
Cool ;-)
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -