473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How do multi columns like newspaper?

I have an ASPX page that I'm creating. It'll have alot of text. I want the
text to be 2 columns, like a newspaper. If the user resizes the browser the
columns should adjust accordingly.

What is the best way to handle this?

In addition, I may want to constrain the vertical height of the columns. Is
there a way to do this too?

Thanks in advance!
Nov 19 '05 #1
4 1930
You will most likely have to use the datalist asp.net web server control.
You can set the number of colums to display the data that is bound to it

"VB Programmer" wrote:
I have an ASPX page that I'm creating. It'll have alot of text. I want the
text to be 2 columns, like a newspaper. If the user resizes the browser the
columns should adjust accordingly.

What is the best way to handle this?

In addition, I may want to constrain the vertical height of the columns. Is
there a way to do this too?

Thanks in advance!

Nov 19 '05 #2
Or use the <asp:Table> control to create an HTML table...

If you put an <asp:Panel> control or a <div> in the columns you can set the
size and force scroll bars to appear:
<div style="width:300;height:70;overflow:scroll;border: 1 solid
black;padding:2">

Here's an example using a Datagrid control:
http://www.daveandal.net/books/6744/...litemgrid.aspx

"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
I have an ASPX page that I'm creating. It'll have alot of text. I want the text to be 2 columns, like a newspaper. If the user resizes the browser the columns should adjust accordingly.

What is the best way to handle this?

In addition, I may want to constrain the vertical height of the columns. Is there a way to do this too?

Thanks in advance!

Nov 19 '05 #3
Use the HTML table control.
Set the Height and width for each column and row.
Then use either;
1] Label control
2] Textbox control. In this case turn on luti-line and you can turn off
borders.

Should do exactly what you need.
Can also use picture or picture btn controls to add photos to your newspaper
..:)

Deasun

"VB Programmer" wrote:
I have an ASPX page that I'm creating. It'll have alot of text. I want the
text to be 2 columns, like a newspaper. If the user resizes the browser the
columns should adjust accordingly.

What is the best way to handle this?

In addition, I may want to constrain the vertical height of the columns. Is
there a way to do this too?

Thanks in advance!

Nov 19 '05 #4
I'm wondering if the original question was more along the lines of "how
do I flow the text of a single article across columns like in a
newspaper?". That's a much more difficult than putting individual
articles in separate table columns. I can't think of a way to do it
(maybe with some javascript that rewrites the text when you resize the
window).

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #5

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

Similar topics

115
by: J | last post by:
I've run CSSCheck on my style sheets and I always get a warning similar to this: "font: bold 9pt/100% sans-serif Warning: Absolute length units should not generally be used on the Web ..." ...
5
by: Dave | last post by:
Is there a way to divide a datagrid into "newspaper" style columns so that column 1 would have rows 1-10, column two would have rows 11-20 etc? Thanks, Dave.
4
by: dll_wrk | last post by:
Hi all, I have a simple report with 3 columns, but I need to write those columns to the bottom of the page on the left half and then continue to write them on the right half of the page from top...
2
by: Mufasa | last post by:
I have a list of items that I'd like to have wrap like columns in a newspaper. So that as I add items, it would be in two columns and things would wrap appropriately. So if there were 11 items, it...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.