473,657 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to control flow of dynamic content with CSS?

Hello all. I have been given mock-ups (in static HTML) of some pages
for a site I am working on. The client would like these pages to look
exactly as they do now. The problem is that the content is dynamic, it
comes from a database.

My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea.

I'll just bet it's simple, and yet I can't find the answer ...

Many thanks!
syg
Jul 20 '05 #1
11 7209
Robert Bowen wrote:
My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea.

I'll just bet it's simple


No, it is not. There is no automatic column flow control in CSS now. Why
should it be?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #2
Johannes Koch <ko**@w3develop ment.de> wrote:
Robert Bowen wrote:
My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea. I'll just bet it's simple

No, it is not.
I wouldn't think so, either. Sounds like server side programming,
rather. With xslt I supposed you could use count and keep a recursive
counter to half of that, and then break to new <td> or whatever,
assuming you don't want to group subcategories or blocks.

There is no automatic column flow control in CSS now. Why
should it be?


Float is kind of like that. And NN used to have <multicol>. It seems
the logical thing, either for proprietary tags or some future CSS.
Styles are supposed to be about the presentation side and appearance,
after all, positioning, box models and all that? Having text processor
column support, as it were, seems very consistent with that. And I
mean if NN could support multicol, with gutter widths, as far back as
NN 3 in the mid 90s, it's not like it can't be done. CSS3 specifies
that options be applied to boxes in the case of page breaks, for ex.

Jul 20 '05 #3
Robert Bowen wrote:
I have been given mock-ups (in static HTML) of some pages for a site
I am working on. The client would like these pages to look exactly as
they do now.
So the pages must appear "exactly as they do now" in IE, Opera, Lynx
(that'll be hard), and HPR (that'll be even harder)?
The problem is that the content is dynamic, it comes from a database.
The problem is an unrealistic demand by the client. That the content is
dynamic does not affect its presentation.
how can I make my text "flow" in two columns?

I'll just bet it's simple


How much are you willing to bet? ;-) Newspaper styles columns are too
difficult to even attempt if you ask me. There is a column flow thingy
proposed for css 3, but it'll be years before that proposal is
supported, and who knows if columns will survive to the final
recommendation?

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4

"Mark Johnson" <10*******@comp userve.com> wrote in message
news:05******** *************** *********@4ax.c om...
Johannes Koch <ko**@w3develop ment.de> wrote:
Robert Bowen wrote:
My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea. I'll just bet it's simple

No, it is not.


I wouldn't think so, either. Sounds like server side programming,
rather. With xslt I supposed you could use count and keep a recursive
counter to half of that, and then break to new <td> or whatever,
assuming you don't want to group subcategories or blocks.


The server doesn't know where the lines are going to break in the client, so
it has nothing to count.

There is no automatic column flow control in CSS now. Why
should it be?
Float is kind of like that.


Not at all. There is no flow from one block to another.
And NN used to have <multicol>. It seems
the logical thing, either for proprietary tags or some future CSS.
Styles are supposed to be about the presentation side and appearance,
after all, positioning, box models and all that? Having text processor
column support, as it were, seems very consistent with that. And I
mean if NN could support multicol, with gutter widths, as far back as
NN 3 in the mid 90s, it's not like it can't be done. CSS3 specifies
that options be applied to boxes in the case of page breaks, for ex.


Jul 20 '05 #5

"Johannes Koch" <ko**@w3develop ment.de> wrote in message
news:2g******** ****@uni-berlin.de...
Robert Bowen wrote:
My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea.

I'll just bet it's simple


No, it is not. There is no automatic column flow control in CSS now. Why
should it be?


Because, while the benefits of multicolumn displays on the screen are
unclear to me, CSS3 also contains many features applicable specifically to
content displayed in paged media (e.g., printers), and there is value to the
option of printing content several columns across.

Jul 20 '05 #6
Mark Johnson 10*******@compu serve.com wrote:
Johannes Koch <ko**@w3develop ment.de> wrote:
Robert Bowen wrote:

My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea. I'll just bet it's simple

No, it is not.


I wouldn't think so, either. Sounds like server side programming,
rather. With xslt I supposed you could use count and keep a recursive
counter to half of that, and then break to new <td> or whatever,
assuming you don't want to group subcategories or blocks.

There is no automatic column flow control in CSS now. Why
should it be?


Float is kind of like that. And NN used to have <multicol>. It seems
the logical thing, either for proprietary tags or some future CSS.
Styles are supposed to be about the presentation side and appearance,
after all, positioning, box models and all that? Having text processor
column support, as it were, seems very consistent with that. And I
mean if NN could support multicol, with gutter widths, as far back as
NN 3 in the mid 90s, it's not like it can't be done. CSS3 specifies
that options be applied to boxes in the case of page breaks, for ex.


the reason it's not a smart idea is that newspaper style columns of text
don't work for screen display in the way they do on paper...the last thing
you want for screen display it to have to scroll all the way down a column
and then have to scroll back to the top and back down the next column...it
is far more effort than simply scrolling down

it could be done...it would largely be totally pointless

it's the sort of thing people often think is a cute idea after looking at
some paper layouts...it's also the sort of thing that site users complain
about when trying to use it on the web...the idea isn't new...people HAVE
come up with ways of emulating it...they tend not to bother with it for
very long

the only way such columns work is with small amounts of text...at anything
over 15 lines or so it's best avoided...at anything less it's largely
pointless

--
eric
www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
Jul 20 '05 #7
Eric Jarvis wrote:
the only way such columns work is with small amounts of text...at anything
over 15 lines or so it's best avoided...at anything less it's largely
pointless


Multicolumn could work. If the browser would detect window height, and
add more columns, when content would not fit. So that users would only
need to scroll right. It wouldn't cause problems, if pageup/down, and
mouse wheel, and all other means to scroll down would then work to scroll
right.

It might be sencible aproach on some text intensive thing, like ebooks,
but I doubt it would be good for webpages. But the gain against normal
scrolling down would be quite minimal.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #8
"Harlan Messinger" <h.*********@co mcast.net> wrote:
"Mark Johnson" <10*******@comp userve.com> wrote in message
news:05******* *************** **********@4ax. com...
Johannes Koch <ko**@w3develop ment.de> wrote:
>Robert Bowen wrote: >> My question -- with CSS (because with HTML tables I don't think it's
>> possible) how can I make my text "flow" in two columns? eg. If there
>> are 100 lines of content, I would like 50 to be in the 1st column, and
>> 50 in the other. If there are 200, 100 / 100. You get the idea. >> I'll just bet it's simple >No, it is not.
I wouldn't think so, either. Sounds like server side programming,
rather. With xslt I supposed you could use count and keep a recursive
counter to half of that, and then break to new <td> or whatever,
assuming you don't want to group subcategories or blocks.
The server doesn't know where the lines are going to break in the client
Yes it does. He's describing a list of items. You simply split the
half of them into table cells, divs, what have you, as the page is
created. This isn't about flowing text. You're just putting the half
one place, and the other half somewhere else.

>There is no automatic column flow control in CSS now. Why
>should it be?

Float is kind of like that. Not at all. There is no flow from one block to another.


I believe there is:
And NN used to have <multicol>. It seems
the logical thing, either for proprietary tags or some future CSS.
Styles are supposed to be about the presentation side and appearance,
after all, positioning, box models and all that? Having text processor
column support, as it were, seems very consistent with that. And I
mean if NN could support multicol, with gutter widths, as far back as
NN 3 in the mid 90s, it's not like it can't be done. CSS3 specifies
that options be applied to boxes in the case of page breaks, for ex.


For example, at a page break, a block could be left open at the border
or closed.

I'm not saying it's flowing text. But multicol was sort of that. And
it doesn't seem to violate any rule regarding 'anonymous content'.
Jul 20 '05 #9
Eric Jarvis <we*@ericjarvis .co.uk> wrote:
the reason it's not a smart idea is that newspaper style columns of text
don't work for screen display in the way they do on paper...the last thing
you want for screen display it to have to scroll all the way down a column
That's the point that's used. You have only a window on the page -
like someone nearsighted using a magnifying sheet.

it could be done...it would largely be totally pointless
It would be just perfect for indices, for example, if you don't want
to insert hard column breaks, in whatever way. But you would like the
option of keeping a sub-block together.

it's the sort of thing people often think is a cute idea after looking at
some paper layouts...it's also the sort of thing that site users complain
about when trying to use it on the web...the idea isn't new...people HAVE
come up with ways of emulating it...they tend not to bother with it for
very long


It would be too much of a workaround. Workarounds are the thing you
jettison as soon as the feature is properly implemented. There's no
substitute. This has to be system level programming.

Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
13709
by: Guy Harwood | last post by:
Hi, I have designed a textbox that inherits from the System.Windows.Forms.Textbox control. when the control is readonly the back color changes to a light blue to indicate that it is frozen. This all works well, but i would like the color to be configurable via the app.config file.
1
5402
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for that), the popup window will have also a text box and a button. when the User click on the button the value on the textbox will be send back to the textbox on My_WUC. I hope I was clear off what I want to do. I've been searching for some ideas...
1
4762
by: Leo | last post by:
I created a user control which is some text contained in a HtmlTable. I put this control into main form. I would like to have the ability to move this control around in the main form. I think one way to do this is to change the style of this control at runtime ("Left:xx px; Top:xx px"). Another way is to move the HtmlTable in the control (i.e. change the style of it). However I couldn't figure out how to let it work. At design time, I...
7
6379
by: Tom wilson | last post by:
I'm trying to create dynamic controls in ASP.Net. It's driving me nuts. I keep getting the error: Control '16' of type 'RadioButton' must be placed inside a form tag with runat=server. Dim Place1 As New PlaceHolder Controls.Add(Place1) For y = 1 To Choices.RecordCount Choices.MoveTo(y)
5
1632
by: the friendly display name | last post by:
Following problem: I have a site, that has a footer (a panel, with copyright information and so on). Above the footer is of course the content, a other panel with text. When the text of the content panel gets too long, it'll overlap with the footer. How to solve that problem? I tried to move the footer panel away, more to the bottom, if the content-panel gets too much text.. but there isn't a member in the panel
2
7680
by: dawg1998 | last post by:
I have a page that creates dynamic textboxes based on the number of fields a user chooses to fill out. This process worked great when the page was standalone. However, when I move to a Content/MasterPage setup, the MasterPage Form seems to be interfering with the ability of my code to retrieve the value in the dynamic control. Are there any ideas on why this is happening or how to work-around the problem? What is the syntax to find a...
2
2030
by: johkar | last post by:
My right column content is created dynamically by an application so it will vary in height. When the main content of the page takes up more vertical space than the rigth column, I want the content to flow under the right column (much like adding a picture and floating it right). The problem is that the only way I can figure out how to make that happen is to output the right column HTML before the main content. This takes the right...
5
1541
by: fireball | last post by:
please help newbie I need to create a lot of objects the same type (let's say: schemas) I wish to use paramerized block in loop to do so. - how to put names of my objects to such control-flow? belss you for help
0
5279
by: Eniac | last post by:
Hi, I've been working on a custom user control that needs to be modified and the validation is causing me headaches. The control used to generate a table of 4 rows x 7 columns to display all the days in the week with dates and textboxes to fill in some data. row 1: question
0
8425
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8522
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.