Solved

What is COLGROUP in CSS 2.0

Posted on 1998-09-02
4
272 Views
Last Modified: 2008-02-26
I want to flow text from column to column as I would do in a page layout program. I have been trying to understand the colgroup tag in CSS. What does this do. Points are given only if you can answer the following:
Is flow of text from column to column possible? 10 pts.
If yes, how is it done with or w/o style sheets? Provide a real example. 95 pts.
0
Comment
Question by:dpeavy
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
TSchock earned 100 total points
ID: 1837302
<colgroup> isn't a CSS2.0 Tag, it is a HTML 4.0 Tag
With colgroup you can define how many columns are in a table

<table border>
     <colgroup>
        <col width=80>
        <col width=100>
        <col width=320>
     </colgroup>
    <tr>
      <td>1. Zeile, 1. Spalte</td>
      <td>1. Zeile, 2. Spalte</td>
      <td>1. Zeile, 3. Spalte</td>
    </tr>
        <!-- usw. andere Zeilen der Tabelle -->
</table>
0
 
LVL 1

Expert Comment

by:TSchock
ID: 1837303
it is not possible to flow a text from column to column. 'cause of this there's no real example ;-))

Full points s.v.p ;-))
0
 

Author Comment

by:dpeavy
ID: 1837304
OK. But I'm not quite clear on why I would use colgroup? What is the purpose of doing what you provided over the traditional table as follows:
<table>
<tr>
<td>Cell 1</td>
<td>Cell 1</td>
<td>Cell 3</td>
</tr>
</table>
0
 
LVL 1

Expert Comment

by:TSchock
ID: 1837305
some browser have to read the whole table to determine the number of columns and then they will show the table. With colgroup you can define the number of columns and the browser will show the table without determining the number of columns ( it will be quicker and the the browser will show also parts of the table if the table is not loaded in full length )
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question