469,923 Members | 1,320 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,923 developers. It's quick & easy.

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 6771
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Krist | last post: by
5 posts views Thread by George | last post: by
reply views Thread by alexandre_irrthum | last post: by
3 posts views Thread by Bob Greschke | last post: by
1 post views Thread by alexandre_irrthum | last post: by
13 posts views Thread by Martijn Mulder | last post: by
16 posts views Thread by cj | last post: by
12 posts views Thread by gil | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.