![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
Andy Dingley wrote: On 16 Feb, 18:31, maya <maya778... (AT) yahoo (DOT) com> wrote: question: float:left and float:right works, I suppose, when you have just TWO divs that need to appear side-by-side.. BUT: what about when you have much more, say, SIX little paragraphs that need to appear side by side??? ![]() Float them all leftwards - they'll work it out for themselves. Floating is usually pretty easy, it's clearing correctly afterwards that's more awkward. Read brainjar. Accept that you probably will have to add a HTML element to set the clearing behaviour on - if there aren't enough HTML elements there you can't invent a few more with CSS. You maybe can with :after { content ... } but that's contrived and not really the best approach. Just accept that adding a simple HTML element (no text content needed) _is_ acceptable. pls compare how this looks in IE and FF: http://www.francesdelrio.com/resume/test2.html it seems FF has a problem with 'float' prop... |
#32
| |||||
| |||||
|
|
Andy Dingley wrote: On 16 Feb, 18:31, maya <maya778... (AT) yahoo (DOT) com> wrote: question: float:left and float:right works, I suppose, when you have just TWO divs that need to appear side-by-side.. BUT: what about when you have much more, say, SIX little paragraphs that need to appear side by side??? ![]() Float them all leftwards - they'll work it out for themselves. Floating is usually pretty easy, it's clearing correctly afterwards that's more awkward. Read brainjar. Accept that you probably will have to add a HTML element to set the clearing behaviour on - if there aren't enough HTML elements there you can't invent a few more with CSS. You maybe can with :after { content ... } but that's contrived and not really the best approach. Just accept that adding a simple HTML element (no text content needed) _is_ acceptable. oh man, this is SO MUCH HARDER than with tables... what I hate the most about this is without tables you can't do layout GRID... |
|
I would like to know the best way to create a div-based layout like this: http://www.francesdelrio.com/resume/test4.html with only divs... (this is done w/tables, just to illustrate what I want..) |
|
I have tried examples mentioned in this thread, like for example http://glish.com/css/7.asp but as soon as I start modifying the code I get into trouble... |
|
I have ordered a book to help me out (http://www.amazon.com/HTML-Utopia-Designing-Without-Tables/dp/0975240277/ref=sr_1_1?ie=UTF8&s=books&qid=1235094397&sr=1-1) I hope it'll help me.. |
|
I have heard people say that one reason why so many people prefer table-less layouts is that divs load faster than tables, but: content buried four divs deep really loads faster a table? I find that hard to believe.. |
#33
| ||||
| ||||
|
|
On 18 Feb, 18:36, Ben C <spams... (AT) spam (DOT) eggs> wrote: On 2009-02-18, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote: On 18 Feb, 14:59, Gus Richter <gusrich... (AT) netscape (DOT) net> wrote: The problem is that you have an almost completely erroneous idea of "presentation", "content" and "semantics" as applied to HTML markup. Go on then, what are the correct ideas of those things? .... |
|
Just as Presentation should be kept out of html, it follows that Content should be kept out of css, so it would seem to be contradictory to have Generated Content and List Numbering, but I digress. ;-) That's a failure to understand _why_ CSS supports generated content, even though it's working hard to avoid turning into DSSSL. Yet again, you can't grok this stuff until you've read Haakon Lie's PhD thesis. |
|
Along comes XML |
|
Sorry, but I had to sit through this twaddle all through 2000 and wear a suit whilst doing it. If you're going to recycle buzzwords |
#34
| |||
| |||
|
|
maya wrote: Andy Dingley wrote: On 16 Feb, 18:31, maya <maya778... (AT) yahoo (DOT) com> wrote: question: float:left and float:right works, I suppose, when you have just TWO divs that need to appear side-by-side.. BUT: what about when you have much more, say, SIX little paragraphs that need to appear side by side??? ![]() Float them all leftwards - they'll work it out for themselves. Floating is usually pretty easy, it's clearing correctly afterwards that's more awkward. Read brainjar. Accept that you probably will have to add a HTML element to set the clearing behaviour on - if there aren't enough HTML elements there you can't invent a few more with CSS. You maybe can with :after { content ... } but that's contrived and not really the best approach. Just accept that adding a simple HTML element (no text content needed) _is_ acceptable. pls compare how this looks in IE and FF: http://www.francesdelrio.com/resume/test2.html it seems FF has a problem with 'float' prop... No it is IE that has a problem with floats. Containing blocks in normal flow are not supposed to expand to contain floated children. There are options to change this, one is the "clear" property.... GIYF http://www.google.com/search?hl=en&q=how+to+contain+floats&btnG=Google+S earch how to contain floats - Google Search |
#35
| |||
| |||
|
|
hmmm.. I tried all values for 'clear' property (none, left, right, both) to no avail.. again, pls look in FF.. (& compare to how it looks in IE..) http://www.francesdelrio.com/resume/test2a.html whichever values I put for 'clear' value I got the exact same result.. would appreciate some suggestions.. |
#36
| |||
| |||
|
|
hmmm.. I tried all values for 'clear' property (none, left, right, both) to no avail.. again, pls look in FF.. (& compare to how it looks in IE..) http://www.francesdelrio.com/resume/test2a.html whichever values I put for 'clear' value I got the exact same result.. would appreciate some suggestions.. it does look like placing content side-by-side is the most challenging aspect of div-based layouts (esp when you need content BENEATH the div containing the floats..) |
#37
| |||
| |||
|
|
it does look like placing content side-by-side is the most challenging aspect of div-based layouts |
#38
| |||
| |||
|
|
Gee Andy, you have a cheek! You don't think twice about la de daing it from on high with all sorts of buzz words and high falutin' sentences! |
#39
| |||
| |||
|
|
dorayme wrote: Gee Andy, you have a cheek! You don't think twice about la de daing it from on high with all sorts of buzz words and high falutin' sentences! Have you heard of this saying down under? "If you can't dazzle 'em with your brilliance, then baffle 'em with your bullshit." Author: unknown |
#40
| |||
| |||
|
|
Gazing into my crystal ball I observed Gus Richter gusrichter (AT) netscape (DOT) net> writing in news:go2vvd$obq$1 (AT) news (DOT) motzarella.org: dorayme wrote: Gee Andy, you have a cheek! You don't think twice about la de daing it from on high with all sorts of buzz words and high falutin' sentences! Have you heard of this saying down under? "If you can't dazzle 'em with your brilliance, then baffle 'em with your bullshit." Author: unknown I love that! It reminds me of Red Green: "If women don't find you handsome, they should at least find you handy." |
![]() |
| Thread Tools | |
| Display Modes | |
| |