![]() | |
#11
| |||
| |||
|
|
On Jan 10, 5:47*pm, "Jonathan N. Little" <lws4... (AT) centralva (DOT) net wrote: NvrBst wrote: I need the "vertial-align:justify;" cell so that vertical stretching doesn't occur in the *Data1* and *Data2* cells. *I know there is no justify for vertical alignment but I stated it because that is the kind of effect I need. If I use your example (using rowspan=2) then I'd have the problem (as labled in the inital post) of *Data2* cell being stretched when *Data1* +*Data2* height is less than *Menu* Maybe what the real problem is that you are using a table for layout when you should be using something else. If you rowspan the left column cell and the right column you add data that expand the cells vertically it is "natural" table behavior for the left column rowspan'ed cell to also expand vertically Now looking into my crystal ball I see that the left cell you put the word "menu" so chances are you have a *list* of menu items. If it a list you should use a list! If you want it side by side with your data then float it left. Google "2 column css layout template" -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com Ahh, something tables can't do? *Okay *CSS approach looks like itsthe same thing as the table approach though (except using 3 DIV's instead of 3 TABLE's). *Maybe DIV has performance improvments? *I'll look into it a bit. Thanks NB- Hide quoted text - - Show quoted text - |

#12
| |||
| |||
|
|
Dearest God Almighty, greatest of all HTML authors, Please make a subscriber who has a complicated question supply a f*ing url. thank you. Whats a flying url? I reckon this is a trick question. |
#13
| |||
| |||
|
#14
| |||
| |||
|
|
On Fri, 11 Jan 2008 11:13:56 +1100, dorayme doraymeRidT... (AT) optusnet (DOT) com.au> wrote: : Dearest God Almighty, greatest of all HTML authors, Please make a : subscriber who has a complicated question supply a f*ing url. : thank you. Amen to that. Sid |
I still had to put *Data1* / *Data2* into
#15
| |||||||||
| |||||||||
|
|
LOL you all act like this is the most complicated question ever... The first post was 5 sentances with ASCII art! ASCII art is worth 1000 URL links! hehe |
|
Applying the CSS style to the asp:Menu object with the "float:left;" |
|
(Didn't know CSS has a property like this, thanks) works exactly like I wanted it ![]() |
|
I still had to put *Data1* / *Data2* into a table (*Data2* needs a background and boarder so it had to be in a table, I think). |
|
I think jona just mixed up when you were typing (the example you gave was backwards IE: if left column is rowspaned and a cell in right column gets lots of data then its not "natural" for left column to expand... its impossbles for it not too). I do find it slightly "unnatural" that when the left rowspaned column gets lots of data that I'm unable to tell which cell is to expand in the right column. I'd expect all the cells to expand equally, or by default the last cell only; but what was happening in IE7 was the 1st cell only was expanding and the last 2 just had their "auto" height. I wanted 3rd cell in the right column expanding and the first 2 to have the "auto" height :P |
|
| B1 | A1 |----+ | B2 | +----+----+ |
|
A1 | B1 | ----+ | | +---------+ B2 | +---------+ |
|
A1 | B1 | ----+ | | +----+ B2 | +----+ |
But with the CSS its the way I want it, and more elegant to boot ![]() Thank you all for you help. |
#16
| |||
| |||
|
|
On Jan 10, 7:42 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: Dearest God Almighty, greatest of all HTML authors, Please make a subscriber who has a complicated question supply a f*ing url. thank you. Whats a flying url? I reckon this is a trick question. I was just filling in the " * " |
#17
| |||
| |||
|
|
NvrBst wrote: LOL you all act like this is the most complicated question ever... The first post was 5 sentances with ASCII art! *ASCII art is worth 1000 URL links! hehe No, actually seen the source in situ is worth a 100,000 ASCII art postings. There we see what the OP actually did not what they think they did. Also we see how the server's part that may be at play. Applying the CSS style to the asp:Menu object with the "float:left;" Whatever asp:Menu object is, what we need is the output HTML that is way a URL is important. It would be like try to guess the problem of a PHP object... $myObject->menu() what is important is resultant outputted HTML (Didn't know CSS has a property like this, thanks) works exactly like I wanted it *Maybehttp://www.w3.org/TR/CSS21/propidx.htmlmight assist you. I still had to put *Data1* / *Data2* into a table (*Data2* needs a background and boarder so it had to be in a table, I think). No, not necessarily. You can style other block elements with backgrounds and borders. If the "data" is tabular in nature then use a TABLE. If paragraphs then P, is a list then UL or OL, else DIV might apply. I think jona just mixed up when you were typing (the example you gave was backwards IE: if left column is rowspaned and a cell in right column gets lots of data then its not "natural" for left column to expand... its impossbles for it not too). *I do find it slightly "unnatural" that when the left rowspaned column gets lots of data that I'm unable to tell which cell is to expand in the right column. *I'd expect all the cells to expand equally, or by default the last cell only; but what was happening in IE7 was the 1st cell only was expanding and the last 2 just had their "auto" height. *I wanted 3rd cell in the right column expanding and the first 2 to have the "auto" height :P No, if you have table tr><td rowspan="2">A1</td><td>B1</td><tr tr><td>B2</td></tr /table +----+----+ | * *| B1 | | A1 |----+ | * *| B2 | +----+----+ If you add data to B1 and|or B2 that expands the height of the table, the rowspan'ed A1 must expand to the combined height of the cells B1 + B2 even if A1 have very little content. That is how a table works. However if A1 is a floated block element then +----+----+ | A1 | B1 | |----+ * *| | * * * * | +---------+ | * B2 * *| +---------+ or +----+----+ | A1 | B1 | |----+ * *| * * * | * *| * * * +----+ * * * | B2 | * * * +----+ can be accomplish. But with the CSS its the way I want it, and more elegant to boot ![]() Thank you all for you help. True in many cases. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
|
A1 | B1 | +----+ | B2 | +----+ | +----+ |
|
A1 | B1 | | | | | | | | | +----+ | | +----+ B2 | +----+ |
#18
| |||
| |||
|
#19
| |||
| |||
|
|
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). |
|
The 3 table method, or the position absolute both work though so I'll fiddle around with those. |
#20
| |||
| |||
|
|
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! -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |