Solved

What is COLGROUP in CSS 2.0

Posted on 1998-09-02
4
269 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
Comment Utility
<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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now