473,395 Members | 1,797 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,395 software developers and data experts.

CSS - Table Gridlines

I know if I do CSS border (like 1px black solid), can get a border around
the outside of an HTML table.

But, is there anyway to do this, so that all the gridlines that would
normally be visible if Border=1 in the table tag would be shown also?
** Posted from http://www.teranews.com **
Nov 3 '08 #1
2 6652
On 2008-11-03, Seth Watson <wh****@yahoo.comwrote:
I know if I do CSS border (like 1px black solid), can get a border around
the outside of an HTML table.

But, is there anyway to do this, so that all the gridlines that would
normally be visible if Border=1 in the table tag would be shown also?
You put borders on td, and choose between border-collapse: collapse and
border-collapse: separate.
Nov 3 '08 #2
Ben C wrote:
>But, is there anyway to do this, so that all the gridlines that would
normally be visible if Border=1 in the table tag would be shown also?

You put borders on td, and choose between border-collapse: collapse
and border-collapse: separate.
And you put borders on th and caption as well. And in future, you ask CSS
questions in c.i.w.a.stylesheets.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Nov 3 '08 #3

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

Similar topics

3
by: Billy Jacobs | last post by:
I have a datagrid which I am using as a report in a web application. When I go to print the page from Internet Explorer, the gridlines on the first page print but on subsequent pages the gridlines...
1
by: Andla Rand | last post by:
Hi, I'm expecting to get an extra column named 'state' displayed in the datagrid but it doesnt add one. Can you please help me find out the problem with the source code. SqlConnection...
2
by: Hardy Wang | last post by:
Hi, I have a PlaceHolder control, I need to dynamic render a HTML table to add to this place holder. One requirement of this table is, I need style like below <table style="margin-left: 5;"> ...
2
by: TomislaW | last post by:
How to set Border=1 for asp:table control. I need border on all cells.
0
by: Luis Esteban Valencia | last post by:
Hello I wrote a program with code behind in C# to add row into table dynamically and the program worked very well in .Net Framework 1.1. When I run this program in .Net Framework 2.0 beta...
2
by: Matt | last post by:
I can not get the horizontal gridlines to show up on a Gridview. I have changed the selection to both and horizontal with no sign of them. Also, when I set the Gridlines property to Vertical or...
2
by: Mike P | last post by:
I set Gridlines="None" and I still get gridlines in my GridView. Is there anything else that you need to do to totally remove gridlines? *** Sent via Developersdex...
0
by: loga123 | last post by:
Hi All, I am very new to .net and trying to develop a small application. I am using asp .net 2.0. I have a table control (server) in my code that has header row like this. <asp:Table...
3
by: mylog | last post by:
hi, I have a problem regarding the retrieval of data from a table. Here's is what I am doing. I have a created a table and from added the rows and columns and also data dynamically from the code...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.