473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

make style on grids of table

sam
Hi,

I want to use style on the grids of table.
Currently it use default style of the html table, in which the grid size
appeared very thick.

How can I change the "thick" style of the default table to "slim"?

Thanks
Sam
Jul 23 '05 #1
1 2573
sam <sa*****@authtec.com> wrote:
I want to use style on the grids of table.
Then your question might belong to c.i.w.a.stylesheets rather than here.
But please explain what you mean by "the grids" here.
Currently it use default style of the html table, in which the grid size
appeared very thick.
I suppose "grid" refers here to borders around table cells. By default,
common browsers draw _no_ borders, so you must have done something to
create some borders. As usual, posting the URL would make it possible to
help better and faster.

If you use a border attribute in <table> with a positive value, say
border="5", then there's that wide (in pixels) a border around the table as
a whole and some borders around the cells as well. (The latter is actually
caused by the fact that nonzero border value implies rules="all".)

The properties of the borders around cells depend on the browser and cannot
be suggested in HTML. They are typically narrow (one pixel) and grey.
You can suggest their color, width, and type in CSS, e.g.
<style type="text/css"> table, th, td { border: red 2px solid; } </style>
How can I change the "thick" style of the default table to "slim"?


So I don't really see what you mean by "thick" here, since the typical
browser default is as thin as you can get. Maybe you mean the _spacing_
between the cell borders? That's typically a few pixels by default and can
be affected in HTML using a cellspacing attribute in the <table> tag.
If you use <table cellspacing="0">, the spacing vanishes and the borders
are joined (CSS equivalent: border-collapse: collapse), so that if you have
set e.g. the border width to 2px (using the CSS code above), there will be
a 2px (not 4px) border between cells.

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

Jul 23 '05 #2

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

Similar topics

0
by: Federico Moschini [328594] | last post by:
I have to make difference between2 data from a table in SQL. The page is made with Frontpage, and it extracts QtaGiaCons and Quantita from table "oclrighe". I have to make Quantita -...
2
by: jaydog | last post by:
Hello... I'm new to XSL, and I've written a XSLT file that converts a XML file to HTML format. When viewed in a browser, it appears exactly as I would like. However, if I want to look at the...
2
by: zwylle | last post by:
Hi all, to avoid a nervous breakdown I finally decided to seek help :D I have a table defined with plain color background and in some cells I show pictures to frame my site. The problem I...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
6
by: Tim Cartwright | last post by:
I am trying to figure out how to change the gridview caption style, but I can not figure out how. I added table caption { background-color: #5D7B9D; color: White; font-size: 16pt; } to my...
16
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
4
by: ashkaan57 | last post by:
Hi, I am working on an asp.net application that has a grid. When rendered, grids are translated into tables. I am having some problems applying styles to the this table. When I do a "View Source",...
8
by: Rick | last post by:
VS 2005 I' m setting up a parent/child datagridviews in a form. I am doing a lot of this by hand coding in order to get the feel of things. I want a change in the parent table to trigger a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...

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.