473,396 Members | 1,990 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.

How to imitate a line 1 pixel thick?

<hr style="height:1px"/does not fit because although a line looks
like it has 1 pixel with but there are empty spaces above and below
line. It can be seen if place two HR elements beside.
<hr style="height:1px"/>
<hr style="height:1px"/>
I tried also <div style="height:1px;font-size:1px;background-
color:black;"></divbut a line was 2 pixel thick :(

Help, if you can.
Mykola
http://marss.co.ua

Jul 11 '07 #1
10 6947
Scripsit marss:
I try to draw a circle by means of html elements.
Why didn't you say so in your first posting? That would have saved
everyone's time. It's an exercise in futility. If you want a circle, use an
image.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jul 12 '07 #2

Jukka K. Korpela wrote:
I try to draw a circle by means of html elements.

Why didn't you say so in your first posting? That would have saved
everyone's time. It's an exercise in futility. If you want a circle, use an
image.
hum... image... What is it?

Jul 12 '07 #3

marss wrote:
Jukka K. Korpela wrote:
I try to draw a circle by means of html elements.
Why didn't you say so in your first posting? That would have saved
everyone's time. It's an exercise in futility. If you want a circle, use an
image.

hum... image... What is it?
One of those picture things.
In other words, draw an image / picture of a sircle (in an image
editing program such as photoshop), and then include / insert it in to
your page. You should probably just use it as a background image in
the CSS as it's for dederation only.
--
Regards Chad. http://freewebdesign.awardspace.biz

Jul 12 '07 #4
On 2007-07-12, marss wrote:
>
Jukka K. Korpela wrote:
I try to draw a circle by means of html elements.

Why didn't you say so in your first posting? That would have saved
everyone's time. It's an exercise in futility. If you want a circle, use an
image.

hum... image... What is it?
echo "%!PS
100 100 100 0 360 arc stroke" circle.ps
convert -trim circle.ps circle.png
--
Chris F.A. Johnson
<http://cfaj.freeshell.org/>
<http://woodbine-gerrard.com/>
Jul 12 '07 #5
Els
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
The source at

<http://members.optushome.com.au/droo...uriousity/iCab
Curiosity.html>

has the effect on iCab/Safari of

<http://members.optushome.com.au/droo...uriousity/iCab
Curiosity.png>

This is an interesting curiosity indeed. Basically, it becomes a
mess but one can see in the phenomena that the lines are wrapping
over themselves! The sentence in the source code of the first of
the two urls above can be reduced in iCab to very small sizes
indeed and stretched in browser over a very large desktop to give
the perfect 'strike thru' effect. But when the browser is reduced
to induce wrapping, you get text that wraps over itself.
Enlarging the text just makes a bigger blacker mess and brings it
on earlier.
At least it's consistent then - only got 1px of space, so let's just all
pile up :-)
Surely this one needs a place in a browser phenomena museum.
I just had to test this some more, so I downloaded iCab: it appears the
line-height of the text is taken from the height of the parent. If i set
the height of the div to 20px, only the first line disappears against
the black background, while the next lines neatly wrap below it. If I
choose a 5px height, the text starts wrapping over itself already.
Setting an explicit line-height doesn't help though...

--
Els http://locusmeus.com/
Jul 14 '07 #6
In article
<el*******************************@news.individual .net>,
Els <el*********@tiscali.nlwrote:
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
The source at

<http://members.optushome.com.au/droo...uriousity/iCab
Curiosity.html>

has the effect on iCab/Safari of

<http://members.optushome.com.au/droo...uriousity/iCab
Curiosity.png>

This is an interesting curiosity indeed. Basically, it becomes a
mess but one can see in the phenomena that the lines are wrapping
over themselves! The sentence in the source code of the first of
the two urls above can be reduced in iCab to very small sizes
indeed and stretched in browser over a very large desktop to give
the perfect 'strike thru' effect. But when the browser is reduced
to induce wrapping, you get text that wraps over itself.
Enlarging the text just makes a bigger blacker mess and brings it
on earlier.

At least it's consistent then - only got 1px of space, so let's just all
pile up :-)
Surely this one needs a place in a browser phenomena museum.

I just had to test this some more, so I downloaded iCab: it appears the
line-height of the text is taken from the height of the parent. If i set
the height of the div to 20px, only the first line disappears against
the black background, while the next lines neatly wrap below it. If I
choose a 5px height, the text starts wrapping over itself already.
Setting an explicit line-height doesn't help though...
Yes, I was messing with line-height after Ben mentioned the
factor. I described in reply what I saw. I think it mirrors what
you are saying above.

--
dorayme
Jul 14 '07 #7
Els
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
Yes, I was messing with line-height after Ben mentioned the
factor. I described in reply what I saw. I think it mirrors what
you are saying above.
The problem there is, that I can't see any of the posts I read yesterday
anymore. Like, I can't see any post by any Ben, nor your reply to it :-(

Since I see you're using the same newsreader as I am, how does that work
for you? Is there a setting I missed that lets you see posts you read
yesterday too?

--
Els http://locusmeus.com/
Jul 14 '07 #8
In article
<el*******************************@news.individual .net>,
Els <el*********@tiscali.nlwrote:
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
Yes, I was messing with line-height after Ben mentioned the
factor. I described in reply what I saw. I think it mirrors what
you are saying above.

The problem there is, that I can't see any of the posts I read yesterday
anymore. Like, I can't see any post by any Ben, nor your reply to it :-(

Since I see you're using the same newsreader as I am, how does that work
for you? Is there a setting I missed that lets you see posts you read
yesterday too?
You can try Special/Open All References if you have a current
post open. This sometimes gets all the thread, sometimes just
some of the thread. You can always "Command -" (the
hyphen/underscore key) after clicking on the group in the
myGroups window, this brings up search box for subjects, authors
etc. One other trick, you can "Option Return" and choose a number
of threads, it will then get you the last that number.

And, of course, there is always the ever reliable Google. Imagine
the world without Google. At least good for getting the name of
threads and authors so you can use the above methods I mention in
the MT newsreader to reply or whatever...

I should also add that I may have overly hastily assumed that you
would be reading comp.infosystems.www.authoring.stylesheets. Ben
might have posted there, I have now forgotten. Forgetting is
something that MT-NewsWatcher is very good at doing. <g>

You moved to Macs, Els?

--
dorayme
Jul 14 '07 #9
Els
In article
<do**********************************@news-vip.optusnet.com.au>,
dorayme <do************@optusnet.com.auwrote:
The problem there is, that I can't see any of the posts I read yesterday
anymore. Like, I can't see any post by any Ben, nor your reply to it :-(

Since I see you're using the same newsreader as I am, how does that work
for you? Is there a setting I missed that lets you see posts you read
yesterday too?
None of the methods you're describing were familiar to me, so I tried
them one by one:
You can try Special/Open All References if you have a current
post open. This sometimes gets all the thread, sometimes just
some of the thread.
That literally opens all the posts that were referenced in the current
post - as in all their own separate window on top of each other, without
seeing the actual thread :S
You can always "Command -" (the
hyphen/underscore key) after clicking on the group in the
myGroups window, this brings up search box for subjects, authors
etc.
That one is useful, thanks - as long as the subject didn't change of
course - at least it does show me the thread in a thread window, not a
bunch of open message windows :-)
One other trick, you can "Option Return" and choose a number
of threads, it will then get you the last that number.
No 'threads' here, just posts. Works too though, although it doesn't
show which I already had read, it just fetches the posts again, without
any memory of whether I read them before. Same goes for the search box
method btw.
And, of course, there is always the ever reliable Google. Imagine
the world without Google. At least good for getting the name of
threads and authors so you can use the above methods I mention in
the MT newsreader to reply or whatever...
Yup - except I wanted to use a newsreader *instead* of Google <g>
I should also add that I may have overly hastily assumed that you
would be reading comp.infosystems.www.authoring.stylesheets. Ben
might have posted there, I have now forgotten.
I think so - I'm reading alt.www.webmaster only atm, so if he forgot to
set a follow-up and just snipped the other groups, that explains why
there's no Ben in this thread I'm seeing :-)
Forgetting is
something that MT-NewsWatcher is very good at doing. <g>
So I notice! I so wish there was a 40Tude Dialog for Mac :\
You moved to Macs, Els?
No, still use XP for the bulk (like work), just added a Mac so I can
check sites on Mac browsers, and made it a Book so I can do stuff away
from my desk. Stuff like reading Usenet ... ;-)

--
Els http://locusmeus.com/
Jul 14 '07 #10
In article
<el*******************************@news.individual .net>,
Els <el*********@tiscali.nlwrote:
None of the methods you're describing were familiar to me, so I tried
them one by one:
Special/Open All References

That literally opens all the posts
True, but it is quick and sometimes gets you to see something
like the OP which is often lost sight of.
>
"Option Return"

No 'threads' here, just posts. Works too though, although it doesn't
show which I already had read, it just fetches the posts again, without
any memory of whether I read them before. Same goes for the search box
method btw.
When I do either of these I get threads. Take the 'Command -'
(search), enter a name of a subject or bits of it... a window
will come up with a number to the left (the number of posts that
have been found with that name) and the name of the newsgroup.
Click on that number/ng text and another window comes up with a
listing of the threads. There might be a few with the words you
entered (eg. if you enter just "css" or you will likely get
lots). In this second window is the thread listings with a little
toggle arrow next to each enabling you to see the individual post
authors etc, you can then click on individual items to bring out
the actual post.

No, MT remembers not what you have read when you bring them all
up again.

There is also time rules that I am hazy on: it fetches only posts
from a certain date... I should read the manual again sometime.

The author of this free software put a tremendous effort in, he
has not the time or resources to keep developing it (though he
made a whole bunch of improvements about a year or two back).
I should also add that I may have overly hastily assumed that you
would be reading comp.infosystems.www.authoring.stylesheets. Ben
might have posted there, I have now forgotten.
I think so - I'm reading alt.www.webmaster only atm, so if he forgot to
set a follow-up and just snipped the other groups, that explains why
there's no Ben in this thread I'm seeing :-)
Did not you and ... who was it? Mark? JL? once recommend a group
for me? I may have gone and got lost and plumped for
comp.infosystems.www.authoring.stylesheets? I better take a look
at alt.www.webmaster. Will you warn them I am coming or will I
just burst in there unannounced? I like to move into a new group
and get as many people offside as possible. This tests their
mettle and I find out who is worth talking to seriously and who I
can mercilessly have fun with. I also like to visit new
killfiles. Each group has a style of killfile different to each
other group as well as individual differences within the groups.
It is cruel, I know. But it is in the Martian manual I was given
when I came to earth.

--
dorayme
Jul 14 '07 #11

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

Similar topics

1
by: Krist | last post by:
Hi All, Our customer has just decided to choose as development standard. The application is HR application with report. While many like Web client, Java application/thick client is still...
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
5
by: George | last post by:
I cannot understand how to fix my code so that it will work. It needs to draw a series of lines in different colors and save it to a ppm file. Could someone tell me what I have done wrong. Thanks a...
0
by: alexandre_irrthum | last post by:
Hi there, I am puzzled by the comportment of the line function from the ImageDraw module with regard to the way it draws or does not draw the last pixel of a line. Below I test this function...
3
by: Bob Greschke | last post by:
I've resorted to actually drawing all of the characters of the alphabet on a graph to avoid having to drag around font files. It's mostly just uppercase characters, so it's not too bad. But I...
1
by: alexandre_irrthum | last post by:
Hi there, Sorry to repost this, but I didn't get any answer one month ago. In essence, it seems that the ImageDraw line function draws lines one pixel shorter in some circumstances. This could...
13
by: Martijn Mulder | last post by:
I try to define a line with the length of 1 unit (1 pixel) that is, in fact, just a point on the screen. But when I draw it with a wide pen with the appropriate StartCap and EndCap (Round), it will...
16
by: cj | last post by:
Back in VB4 there was a line tool in my toolbox that allowed me to put a decorative line on the form somewhere. Does VB.net 2003 offer this? It's not in the toolbox and I can't find it in the list...
12
by: gil | last post by:
I would like to display a Union Collective Agreement in HTML format and keep it as true as possible to the pdf version. The document uses Article Numbers such as 1.01, 1.02 which are not...
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...
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: 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:
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
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...
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...

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.