473,604 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Putting a border around a certain group of cells in a table?

Is there a way to outline a group of cells in a table, similar (sorta)
to the <fieldset> tag?

Only possible with clever css borders?

Thanks,
Jamie
Jul 20 '05 #1
3 5802
On Thu, 09 Oct 2003 16:28:15 -0400, Jamie Jackson
<wa************ ***@bigfoot.com > wrote:
Is there a way to outline a group of cells in a table, similar (sorta)
to the <fieldset> tag?

Only possible with clever css borders?

Thanks,
Jamie


BTW, this only needs to work in IE5+

Jul 20 '05 #2
Jamie Jackson <wa************ ***@bigfoot.com > wrote:
Is there a way to outline a group of cells in a table, similar
(sorta) to the <fieldset> tag?
Maybe, depending on the type of grouping and desired browser coverage.
Only possible with clever css borders?


Well, isn't CSS the natural way? There some possibilities in HTML to
specify borders for groups, see
http://www.w3.org/TR/html4/struct/tables.html#h-11.3.1
but it's easier and more flexible to use CSS.

You will probably need some extra markup to specify the group.
Depending on the nature of the group, <colgroup>, <tbody> (or <thead>
or <tfoot>) might be the answer. For a more irregular group, you need
some class attributes, and you probably need class attributes anyway,
in practice.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3
On Sun, 12 Oct 2003 20:14:02 +0000 (UTC), "Jukka K. Korpela"
<jk******@cs.tu t.fi> wrote:
Jamie Jackson <wa************ ***@bigfoot.com > wrote:
Is there a way to outline a group of cells in a table, similar
(sorta) to the <fieldset> tag?


Maybe, depending on the type of grouping and desired browser coverage.
Only possible with clever css borders?


Well, isn't CSS the natural way? There some possibilities in HTML to
specify borders for groups, see
http://www.w3.org/TR/html4/struct/tables.html#h-11.3.1
but it's easier and more flexible to use CSS.

You will probably need some extra markup to specify the group.
Depending on the nature of the group, <colgroup>, <tbody> (or <thead>
or <tfoot>) might be the answer. For a more irregular group, you need
some class attributes, and you probably need class attributes anyway,
in practice.


Great, thanks for the pointers.

Jamie

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
15925
by: Mr. Clean | last post by:
Apparently Mozilla/Firefox doesn't support the bordercolor attribute of the table tag. Here's what I do that works in IE: <table border="1" cellpadding="2" cellspacing="0" width="380" bordercolor="#CB0017"> Now, if I add this to my CSS:
0
2720
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there anyway to stop this...??? <HTML> <HEAD> <title>Conform Inbox</title> <meta content="False" name="vs_snapToGrid">
7
41728
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
23
52115
by: Bob Bedford | last post by:
I've a table. The table must not have any border. The TR (every line) must have a border, but not the lines between cells. The TR.pages must have no border. so .mytable{border:0px;} ..mytable tr{border:1px solid #000000;} ..mytable th{border:0px;}
11
11342
by: Michael Mayo | last post by:
I have a simple html page that contains an image in a single table cell, surrounded by a border: <http://www.softrains.com/lc/test.html>. I would like to eliminate the space between the table border and the table contents. I have tried setting margin: 0 in CSS everywhere, as well as cellmargin/cellpadding in HTML. What is the best way to eliminate the extra space between a table border and its contents? Thanks,
16
3216
by: Barbara de Zoete | last post by:
Here's what I'm trying to do: Create a table with generic style property . Have a few table cells in the thead that 'have to' melt into eachother, so needing the style . Looking somthing like: ,------------.------------. | | header |
8
12088
by: UJ | last post by:
I have a table with multiple cells and I want to draw a box around the entire table but not around the individual cells. How do I do that? TIA - Jeff.
3
4008
by: Yobbo | last post by:
Hi All Wondered if you could let me know if I've missed something when setting up a table. If I use the following: <TABLE WIDTH=500 BORDER=1> <TR><TD>fred</TD></TR> <TR><TD>fred</TD></TR>
1
16529
by: Bart Lateur | last post by:
I'm trying to put a utton at the bottom (right) of a TD cell, irrespective of what else is in there. Usually, with other HTML block elements, we're told to use position: relative on the parent element, and position: absolute; bottom: 0px;
0
7997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8419
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8409
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6739
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5882
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3907
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3955
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1526
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.