Solved

What is COLGROUP in CSS 2.0

Posted on 1998-09-02
4
271 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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 …

896 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

15 Experts available now in Live!

Get 1:1 Help Now