English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

making a web page for school.

2007-09-19 03:42:48 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

You can use an


element if there is a logical seperation between the sections.

If you have two sections with logical seperation you can put them both in DIVs and set the bottom border of the top div:



Test for purple line





Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In blandit pretium sapien. Sed posuere enim id mi. In volutpat. Suspendisse tristique. Nullam blandit. Duis dui. Donec id enim at lectus rutrum gravida. Donec nibh. Vestibulum elit mi, mattis ac, vulputate vel, molestie sit amet, enim. Duis ac magna. In non dui in sapien faucibus porttitor. Nulla facilisi. Curabitur accumsan.







If you still want to use an
and want to make sure the styling is consistent across browsers, a good resource it at:

http://www.sitepoint.com/examples/hr/

though your teacher was probably simply wanting you to use a simple HR.

2007-09-19 04:20:55 · answer #1 · answered by sam_ellis 2 · 0 0

HR itself cannot be colored successfully, really, by some browsers, consistently. Your best bet is to go into css and give it a border...css would be
hr { border-top: 1px solid #606; }
or like that
(adjust the "6" and the "0" and the "6" to your liking...the red and the green and the blue, as the purple is a mix of red and blue...and this creates a 1-pixel line just to the top of the hr)

2007-09-19 04:06:45 · answer #2 · answered by fjpoblam 7 · 1 0

I'm not sure how to make it purple at the top of my head but I know how to make a horizontal line. Go to 'Insert' at the top of the page and then put your cursor on 'HTML'. Then click on 'horizontal rule' and there should be a horizontal line on your web page! :) Oh and make sure you put your cursor to where you want the line.

2007-09-19 03:52:53 · answer #3 · answered by :) 2 · 0 0


2007-09-19 03:48:54 · answer #4 · answered by Z 6 · 0 0

fedest.com, questions and answers