Reply to Re: How to imitate a line 1 pixel thick?

Your name:

Reply:


Posted by Jukka K. Korpela on 07/11/07 10:21

Scripsit marss:

> <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.

You might be able to affect the situation by adding CSS rules for margins
etc., but the problem is that the default rendering of HR elements has not
been defined in CSS terms. Different browsers interpret HR elements
differently.

The simple way is to set a bottom or top border for some "real" element,
e.g.

<div style="border-top: solid 1px black">...</div>

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация