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

Single pixel border

I have a number of pages containing tables. Most have background images
which have a single pixel border. The tables themselves do not have
borders. For various reasons, I have to create one table without an image,
so the border must be defined by the table. However, the table border does
not look exactly like the single pixel one in the images. It appears to
have some shading. I have tried various CSS elements but have not been able
to duplicate the single pixel border of the images.

Here are some examples:

Image border: http://pelamusic.com/bio.html
Table border: http://pelamusic.com/SimpleViewer

Any help will be greatly appreciated
Jul 21 '05 #1
3 11998
Bob Sanderson <sa*****@LUVSPAMsandmansoftware.com> wrote:
I have a number of pages containing tables. Most have background images
which have a single pixel border. The tables themselves do not have
borders. For various reasons, I have to create one table without an image,
so the border must be defined by the table. However, the table border does
not look exactly like the single pixel one in the images. It appears to
have some shading. I have tried various CSS elements but have not been able
to duplicate the single pixel border of the images.

Here are some examples:

Image border: http://pelamusic.com/bio.html
Table border: http://pelamusic.com/SimpleViewer


Borders expressed as an attribute to the html table element always end
up as a "shaded" border, if you don't want that then set the attribute
to "0" and specify a border using css.

--
Spartanicus
Jul 21 '05 #2
Spartanicus:
Borders expressed as an attribute to the html table element always end
up as a "shaded" border, if you don't want that then set the attribute
to "0" and specify a border using css.


.... which I find utterly stupid, BTW. Either we can use HTML border
attribute and have borders in the no-CSS rendering for easier usability,
or we can style the borders as we like and lose these useful borders in
the no-CSS rendering. We should not have to make that choice IMO.

Jul 21 '05 #3
Spartanicus <me@privacy.net> wrote:
Borders expressed as an attribute to the html table element always end
up as a "shaded" border, if you don't want that then set the attribute
to "0" and specify a border using css.


Oops, I made a boo boo.

To fully style a border expressed as an attribute to the html table
element you have to modify the styling of both the table and the
cell(s), example:

table{border:1px solid #000}
td{border:none}

<table cellspacing="0" cellpadding="0" border="1">
<tr>
<td>Foobar</td>
</tr>
</table>

--
Spartanicus
Jul 21 '05 #4

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

Similar topics

6
by: Rolf Brauser | last post by:
Hello, is it possible to draw a one pixel line around every cell in a table? with "border: 1px solid; " just the outer tableborder ist concerned ? thanks for any help rolf
7
by: TomHL | last post by:
hello, - I have a Bitmap Object named: bmp1 - I already have the numerical values of:red,blue and green colors + I have the X and Y cordinates. How do I set the pixel value via safe code on...
6
by: Kyle | last post by:
I want to do a single pix update bar instead of the big block that progress bars usually use. I can't seem to find any info on how to do this. Thanks in advance for any help, Kyle
9
by: Rob T | last post by:
This seems like a really stupid question, but here it goes........ is there a command to draw a single pixel? The closest I can get is to draw a line that is 2 pixels wide, or do create...
6
by: Hacking Bear | last post by:
Hi, I still don't quite fully understand how to handle mixing border/margin pixel width with percentage width. In the example below, I want to place side-by-side two DIV boxes inside a box....
1
by: =?Utf-8?B?Umljaw==?= | last post by:
How do I create a textbox with a single line border so when I type text in the box it will look like underlined?
2
by: =?Utf-8?B?Umljaw==?= | last post by:
How do I create a textbox with a single line border so when I type text in the box it will look like underlined?
8
by: ofiras | last post by:
Hi, I made a "Paint" program, but I couldn't find a method to paint 1 pixel using graphic state ("Graphics g = Graphics.FromHwnd(this.Handle);") How can I paint 1 pixel? I guess I can make a...
2
HaLo2FrEeEk
by: HaLo2FrEeEk | last post by:
I'm trying to create a QRCode decoder in PHP. I'm not sure if something like this has been created already, but from my searching, I don't think it has. If you don't know what QRCodes are, they're...
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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.