?
Solved

What is COLGROUP in CSS 2.0

Posted on 1998-09-02
4
Medium Priority
?
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
TSchock earned 300 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

764 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