Originally posted by: DannyBoy
Originally posted by: aceO07
I'm just playing around with creating a layout with css.
css doesn't seem too bad with absolute sizes and positions, once it gets to percents it doesn't seem to work for me. I have a div located at top 200px and left 200px. I want that div to expand to the edge of the browser.
I do realize that what I'm trying to accomplish is pretty simple with tables, but I'd thought I'd give it a shot.
Are you wrapping your absolute element in a relatively positioned element with a width?
I actually gave up on this a couple of months ago. I'm currently using a fixed width content element and no left side fixed width panel. I wanted to spend my few focused hours on writing code to implement my ideas instead of tackling layout design puzzles. Also, after more development I haven't found the left panel wasn't as vital as I initially thought or rather I haven't found a use for it that would be global to the entire site.
Basically I want it similar to the AT forums layout. With a left side nav panel that can be hidden or shown. Looking at the AT fusetalk code, it seems like it uses uses js to handle the margin-left for the main pane and then it uses table with 100% width to handle the width of the main pane div.
To answer your question, I don't remember exactly how I was attempting this before. One attempt involved a fixed width nav panel and a fixed width main content area that was controlled by js. Hiding or showing the nav panel changed the position/width of the main content area. I believe I can have js monitor the browser size and resize elements appropriately, but that doesn't sound like the route I want to go with.
I wouldn't even mind having a solution that only worked in Firefox for now. I just want a layout that works to implement my ideas and then I can mess with it for other browsers later. Thinking about my last sentence, I should have gone with a table layout with my limited experience but I haven't.
A simple 100% width table with a row with 2 columns. 1 left column set to 200px width and 1 other main content column. Hide the left column or show it. That seems like the easiest non-css solution.
I'm open to (and appreciate) any ideas or code samples or links.
