Solved

What is COLGROUP in CSS 2.0

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Outlook opens HTML email as text 4 29
Writing comments on <p></P> or paragraph 2 19
Do alert on select 6 13
send email part1 9 22
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…

792 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