|
Posted by NvrBst on 01/12/08 05:44
On Jan 11, 5:31 pm, "Jonathan N. Little" <lws4...@centralva.net>
wrote:
> NvrBst wrote:
> > On Jan 11, 4:26 pm, "Jonathan N. Little" <lws4...@centralva.net>
> > wrote:
> >> NvrBst wrote:
> >>> Ahh. Problem with the min-width would be my that it creates a vertical
> >>> scroll (size of the largest width in *Data1*), when 99% of the time
> >>> *Data1* is small -> would have to set it dynamically each time the
> >>> data in *Data1* changes so that the scroll bar doesn't appear when its
> >>> not needed (more work than its worth).
> >> Why would a *vertical* scroll be created to the *width* of anything?!
> >> From what you say and the meager scraps of what you show it seems that
> >> you have no idea what you are doing...
>
> >>> The 3 table method, or the position absolute both work though so I'll
> >>> fiddle around with those.
> >> So I would say, most likely you are wrong and it *can* be done, but
> >> since you are adamantly against providing a URL to what you are *trying*
> >> to do...well good luck with that!
> > LOL Typo. Horizontal Scroll Bar. If you want to see it yourself set
> > the min-width to 200em and you'll see the scroll bar.
>
> Of course! 200em is *extremely* wide! About 400 characters! Make is
> smaller as I said in the comment in the CSS
>
> <style type="text/css">
> /* use 'em' adjust for min width without wrapping */
> body { min-width: 20em; overflow: auto; }
>
> Adjust the value to the min (minimum) needed to display without wrapping.
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com- Hide quoted text -
>
> - Show quoted text -
The extreme length is to illustrate the scroll bar, nothing more. As
stated already the *Data1* cells' content changes. Sometimes the cell
needs to be 1000 pixels wide (rarly) to fit its content and sometimes
30 pixels wide. Setting min-width to the largest the cell can be
isn't a good solution (for me), and making it so that the min-width
gets set dynamically with the cells content isn't a good approach
either (for me - time wise) since I have two "okay" methods that I can
live with :P
I would love a "better" way but I don't see how the min-width could be
it. A single 2x2 table (like the last ASCII table you drew) might be
a better solution if you could quickly pseudo code that table I'd love
to see it (I'd probably use that type of idea a lot in the future at
the very least). Or a way to stop the 2nd object from wraping down (I
don't understand completly all the CSS properties yet, like overload,
or maybe a different one that acts simular to float but different).
I thank everyone who gave me tid bits and idea's, they've all been
helpful for me :)
NB
Navigation:
[Reply to this message]
|