473,775 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do i get dotted table borders?

Hi everyone,

well i know the CSS-Entity "border-style:dotted", but it doesn't work for
me - i need 1 Pixel dotted borders, but "border-style:dotted" creates (on my
IE 6, at least) dashed borders (2 Pixels wide).

Is there anything to take care of too or is it simply not possible to do
this with CSS/HTML?

Thanks for your tips,
Christian
Jul 20 '05 #1
3 18279
On Mon, 23 Feb 2004 16:04:48 +0100, Christian Knoflach <ch*******@kno. at>
wrote:
well i know the CSS-Entity "border-style:dotted", but it doesn't work for
me - i need 1 Pixel dotted borders, but "border-style:dotted" creates
(on my IE 6, at least) dashed borders (2 Pixels wide).

Is there anything to take care of too or is it simply not possible to do
this with CSS/HTML?


This has nothing to do with HTML or CSS. Your problem is with IE.
Specifying:

table {
border-style: dotted;
border-width: 1px;
}

works perfectly in Opera, Netscape, and Mozilla. However, as you say, IE
renders it with dashes, unless you use larger widths.

As for workarounds at 1px, I'm not sure.

Mike

--
Michael Winter
M.******@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2

"Christian Knoflach" <ch*******@kno. at> wrote in message
news:40******** *************** @newsreader02.h ighway.telekom. at...
Hi everyone,

well i know the CSS-Entity "border-style:dotted", but it doesn't work for
me - i need 1 Pixel dotted borders, but "border-style:dotted" creates (on my IE 6, at least) dashed borders (2 Pixels wide).

Is there anything to take care of too or is it simply not possible to do
this with CSS/HTML?


Welcome to the frustrations of IE.
Somehow M$ is a member of W3C, but doesn't comply with its standards.
--

Karl Groves
http://www.karlcore.com

Jul 20 '05 #3
Karl Core wrote:
"Christian Knoflach" <ch*******@kno. at> wrote in message
news:40******** *************** @newsreader02.h ighway.telekom. at...
Hi everyone,

well i know the CSS-Entity "border-style:dotted", but it doesn't
work for me - i need 1 Pixel dotted borders, but
"border-style:dotted" creates (on my IE 6, at least) dashed borders
(2 Pixels wide).
3 pixels wide on my PC. (I just put a screen capture into Photoshop).

Also note that different browsers leave different numbers of pixels between
the dots. Forefox leaves 1, Opera leaves 2, and IE 6 leaves 3. (IE 5 is
continuous - but see below).
Is there anything to take care of too or is it simply not possible
to do this with CSS/HTML?


Welcome to the frustrations of IE.
Somehow M$ is a member of W3C, but doesn't comply with its standards.


The standards actually don't say it must be 1 x 1. In fact, they even say:
"Conforming HTML user agents may interpret 'dotted', 'dashed', 'double',
'groove', 'ridge', 'inset', and 'outset' to be 'solid'."

Hm!

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #4

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

Similar topics

4
5511
by: David Ross | last post by:
In my <http://www.rossde.com/inflation.html>, I have a small table in the middle of the page. This page is composed without a DOCTYPE statement at the beginning. The table borders appear to my browser (Mozilla) as raised with a slight shadow to the right and below. The borders are specified with the "border" attribute in the <table> tag: <table border cellpadding=2 width="100%"> and not via a style sheet. If I add a DOCTYPE...
4
1973
by: NeverLift | last post by:
I've searched around and don't find the following incident discussed specifically. First, a comment from an experience programmer new to JavaScript: While I am new to javascript, I've programmed in a dozen other languages for decades, and now have been working in javascript intensively for several weeks. My first comment -- which has nothing to do with this problen -- is on how its richness makes it so difficult to provide adequate...
7
2762
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such stuff? In any case, here is the issue in brief: I want to keep the page invisible while my onload script decides how to format it, setting colors, downloads images, etc. The style "visibility:hidden" in the body tag almost does it -- except...
0
1963
by: landon.chelf | last post by:
I'm working with a RichTextBox control and am loading the following rtf into it. {\rtf1\ansi\deff0 {\fonttbl {\f0\fswiss Arial;} } \deflang1033\plain\fs20 {\pard \trowd\cellx2500\cellx3000\cellx3500\cellx4000
9
2930
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that I'd try and find out how to add borders for browers like Firefox which don't support them. Not sure if I've explained the above well but my borders display in IE but not in Firefox.
0
1599
by: LStewart | last post by:
Hi Guys, I am having some trouble with some tables. What I want to do is make it so that the table prints out on paper with the table borders. The borders are there on the web page in the browser but when you print onto paper, if the table goes over one page, it only prints borders on the first page. Can anyone help me please? I'd really appreciate it, I'm a student on industrial placement. Cheers, Laura
5
3044
by: sitko | last post by:
Hi, I'm done a little HTML here and there over the years...but nothing professionally. Now I'm working on a project which calls for some simple HTML. Here is my markup, for the life of me I can't figure out why the chart borders aren't showing up. <html><body> <table border=”1”> <tr> <td>Measurement locations</td><td>Description</td><td>elapsed time, </td><td>Data: Dock A (AFF) </td><td>Model: min. T_mix</td><td>Model: ...
1
2365
by: tess1243 | last post by:
How to hide all the table borders using CSS? Borders are coming from the html code. I want to remove the borders using CSS. Is that Possible ??
0
10267
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...
1
10046
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8939
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
7463
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
6717
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
5358
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...
1
4014
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.