473,406 Members | 2,378 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,406 software developers and data experts.

How to insert an horizontal rule without using HR

Hello

I want to insert an horizontal rule into my HTML page, but
without using <HR> or <HR size=1>, as I consider it oldfashioned.

Does anybody know a good way?

Thank you very much.
Jul 20 '05 #1
6 21209
fr**********@europe.com (Francesco Moi) wrote:
I want to insert an horizontal rule into my HTML page, but
without using <HR> or <HR size=1>, as I consider it oldfashioned.


What is a horizontal rule, in terms of document structure markup? The
question is similar to asking 'how do I use Arial font in HTML without
using <font>?'.

We cannot tell what would be the appropriate markup without knowing what
you wish to describe. And the presentational side is external to HTML,
_especially_ if you have ruled out <hr>. Well, theres <img> of course. :-)

In CSS, you can create various lines by setting border properties for
elements. But if a line actually indicates a major division of content,
then <hr> actually comes closest to structural markup for it.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2


Francesco Moi wrote:
Hello

I want to insert an horizontal rule into my HTML page, but
without using <HR> or <HR size=1>, as I consider it oldfashioned.

Does anybody know a good way?


Well, HTML is oldfashioned if you ask the W3C XHTML is the new fashion
where you would use
<hr />

If you don't want to use hr then maybe
<p style="border: 1px inset"></p>
has the same presentation

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3

"Francesco Moi" <fr**********@europe.com> wrote in message
news:5b**************************@posting.google.c om...
Hello

I want to insert an horizontal rule into my HTML page, but
without using <HR> or <HR size=1>, as I consider it oldfashioned.

Does anybody know a good way?

Thank you very much.


the <hr> element has a structural purpose.
That said, you should use it when it will suit that purpose.
If it does not meet with your aesthetic vision, then you can use CSS to
change its visual presentation.
--
Karl Core

Charles Sweeney says my sig is fine as it is.
Jul 20 '05 #4
In article <5b**************************@posting.google.com > in
comp.infosystems.www.authoring.html, Francesco Moi
<fr**********@europe.com> wrote:
I want to insert an horizontal rule into my HTML page, but
without using <HR> or <HR size=1>, as I consider it oldfashioned.


And I'd like to fly to Cleveland, but without using an airplane or
helicopter

What specific requirement do you have that makes <hr> not the right
tool for a horizontal rule?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5
Thank you, Martin, for your answer.

I've just searched in Google, and I've found something like yours:

<p style="border-style:solid;border-width:1px;border-color:#eeeeee"></p>

Regards.

Martin Honnen <Ma***********@t-online.de> wrote in message news:<3F**************@t-online.de>...
Francesco Moi wrote:
Hello

I want to insert an horizontal rule into my HTML page, but
without using <HR> or <HR size=1>, as I consider it oldfashioned.

Does anybody know a good way?


Well, HTML is oldfashioned if you ask the W3C XHTML is the new fashion
where you would use
<hr />

If you don't want to use hr then maybe
<p style="border: 1px inset"></p>
has the same presentation

Jul 20 '05 #6
fr**********@europe.com (Francesco Moi) wrote in
news:5b**************************@posting.google.c om:
Thank you, Martin, for your answer.

I've just searched in Google, and I've found something like yours:

<p
style="border-style:solid;border-width:1px;border-color:#eeeeee"></p>
I have a better idea. Use <hr>. It is not old-fashioned. You are
wrong.

Also, if you are going to do something as ludicrous as what I see above,
you might as well use

<p style="border: 1px solid #EEE"></p>

considering that it does and means the same thing with half the code.

Better yet, how about

<hr style="border: 1px solid #EEE"></hr>
Martin Honnen <Ma***********@t-online.de> wrote in message
news:<3F**************@t-online.de>...
Francesco Moi wrote:
> Hello
>
> I want to insert an horizontal rule into my HTML page, but
> without using <HR> or <HR size=1>, as I consider it oldfashioned.
>
> Does anybody know a good way?


Well, HTML is oldfashioned if you ask the W3C XHTML is the new
fashion where you would use
<hr />

If you don't want to use hr then maybe
<p style="border: 1px inset"></p>
has the same presentation


Jul 20 '05 #7

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

Similar topics

1
by: Aamir | last post by:
I need to minimize the line gap horizontal rule <hr> causes with the top and bottom text. I want them all squeeze together. Can it be done ? thanks IA Aamir
3
by: Christian Zenner | last post by:
Hi, how can I make a horizontal rule (<hr>) 1px thin? Border: 1px; doesn't work. Anybody has an idea? Thanks, Chris
2
by: Griff | last post by:
What I'm trying to achieve is to have a title followed by a horizontal rule on the same line. For example: Living on Mars ---------------- Living on Mars would be at best impractical for the...
5
by: reddy | last post by:
I am trying to insert a node into an XMLFile. using XMLTextwriter. My Question is Is it possible to do without using XMLDocument. Because its loading all the the file into memory. I just want to...
10
by: lothar | last post by:
for the horizontal rule element, the w3c HTML 4.01 specification http://www.w3.org/TR/html4/cover.html states that the align, noshade, size and width attributes are deprecated. it gives an...
3
by: phpmel | last post by:
Hi Guys, Can a horizontal rule be visible and not visible within the <td> tag of a row on a table? <tr> <td colspan="4" style="height: 20px; text-align: left" valign="middle"> ...
3
by: phpmel | last post by:
Hi Guys, Can a horizontal rule be visible and not visible within the <td> tag of a row on a table? <tr> <td colspan="4" style="height: 20px; text-align: left" valign="middle"> ...
4
by: tess1243 | last post by:
Is it possible to insert a Horizontal Rule using CSS? Please let me know if my idea of inserting HR using CSS is wrong. Thanks.
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
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
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.