Re: full height columns



On 2007-10-22, Jeff <dont_bug_me@xxxxxx> wrote:
Nearly identical post in alt.www.webmaster, where it is languishing.

I did see it but couldn't really understand what you were asking.

I'd like a column that flows the full height of a page, even if you
scroll down.

If I did this:

<div style="width: 100px;height=100%;background-color: red">
side bar
</div>
<div style="float: left; background-color: #fff">
main content, enough to have vertical scroll bars on the browser
</div>

This puts the main content after the sidebar, which is what I don't
get-- surely the sidebar is supposed to be at the side?

I'd have problems after I scrolled down with content wrapping around.

What do I need to do? Seems like I should know this, but... I'm
drawing a blank.

Probably put the sidebar inside a container that contains both it and
the main content. The container's height will grow to fit the content.
Then you just have to make the sidebar fill its container, which can be
done with absolute positioning (position: relative on the container,
position: absolute; top: 0; bottom: 0 on the sidebar).

Height: 100% of an auto-height container is no good-- it will be
ignored. But you can locate a positioned box to the top and bottom edges
of an auto-height container.

What's the support level of inline-block these days?

Supported in Opera, Konqueror/Safari. OKish in IE7 I heard so long as
you set widths on the inline-blocks. Completely and utterly broken in
Firefox.
.



Relevant Pages

  • Re: Leopard seems not quite ready...
    ... can be added to the sidebar by dragging them there. ... Emptied trash and everything. ... my Firefox and my complete M$ Office Apps that were in the "search For" ... So you didn't remove items from the Search For side bar. ...
    (comp.sys.mac.system)
  • Re: background-position: -- how to use it?
    ... > calculated percentage from the left edge of its container. ... You have a container of unknown (from the perspective of some CGI code) width 'X' ... All of the preceding discussion is taking place within a table cell. ... This will become the bar. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: full height columns
    ... enough to have vertical scroll bars on the browser ... This puts the main content after the sidebar, ... Then you just have to make the sidebar fill its container, ... Are you talking about positioning relative both coolumns? ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: background-position: -- how to use it?
    ... > calculated percentage from the left edge of its container. ... You have a container of unknown (from the perspective of some CGI code) width 'X' ... All of the preceding discussion is taking place within a table cell. ... This will become the bar. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Right sidebar on desktop
    ... There is *NO PROPERTIES* when I right-click on this bar in Home Premium. ... The RAM eating Gadget bar was on the right and was already removed. ... There is *NO Close Sidebar* when clicking on this narrow bar. ... Windows Desktop Experience ...
    (microsoft.public.windows.vista.general)