Forum Moderators: open

Message Too Old, No Replies

1x1 span

         

adni18

1:14 pm on Oct 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How can I create a 1px by 1px span tag with a black background? Whenever I try to, the height always appears as 2.

tedster

10:10 pm on Oct 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Span tags are inline tags, not block level - makes for big trouble trying to control dimensions.

adni18

10:35 pm on Oct 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I cant do it with a DIV tag either.

tedster

11:09 pm on Oct 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What are you trying to accomplish? When one approach doesn't work, back up and re-think your needs -- maybe we can help with that.

BlobFisk

8:56 am on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've done some tests and I can't get a tag to go that small. Like tedster I thought of using a <div> tag but no joy.

I think, as tedster says, that we need to explore other options and the one I would suggest is a small image.

adni18

12:33 pm on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know I have done it before. With a span tag. I can't do it with a small image because the user decides on which color the tag's bgcolor is.