473,699 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

color of horizontal line

Hi,
ist it possible to change the Color of a horizontal <hl> line?
i tried with background-color and color but it didn't work?
what attribut changes the color?
Jul 21 '05 #1
6 26069
Wilhelm Kutting wrote:
Hi,
ist it possible to change the Color of a horizontal <hl> line?
Did you mean <hr>?
i tried with background-color and color but it didn't work?
what attribut changes the color?


Try border-color.
Jul 21 '05 #2
Once upon a time *Wilhelm Kutting* wrote:
Hi,
ist it possible to change the Color of a horizontal <hl> line?
i tried with background-color and color but it didn't work?
what attribut changes the color?


This is an example that I use

hr {height:1px; border-style:solid; border-width:1px 0 0 0;
border-color:#74A8C0;}

Play with the values to make look as you prefer

--
/Arne
http://web.telia.com/~u97802964/

If you owe the bank a million, you have a problem.
If you owe the bank ten million, the bank has a problem! (Unknown)
Jul 21 '05 #3
Hi,
ist it possible to change the Color of a horizontal <hl> line?
i tried with background-color and color but it didn't work?
what attribut changes the color?


I would try to avoid <hr>s (I a assume you meant them). Usually <hr>s
are used to optically seperate conent. This can be accomplished by using
a border-bottom.

Chris
Jul 21 '05 #4
Chris Leipold wrote:
Hi,
ist it possible to change the Color of a horizontal <hl> line?
i tried with background-color and color but it didn't work?
what attribut changes the color?


I would try to avoid <hr>s (I a assume you meant them). Usually <hr>s
are used to optically seperate conent. This can be accomplished by using
a border-bottom.


Actually I think it's better to leave the the HRs *in* and use CSS to
disguise them if necessary. That way you get much better results in text and
audio browsers.

Wrap the HRs inside DIV elements like this:

<DIV class="hr"><HR> </DIV>

and put this in your CSS file:

HR {
display: none;
}

DIV.hr {
margin: 2.0em 0;
height: 0.4em;
background-color: #fc9;
clear: both;
}

Here's an article you might find useful:
<http://diveintoaccessibility.org/day..._rules_or_faki
ng_them_properl y.html>

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 21 '05 #5
>>Hi,
ist it possible to change the Color of a horizontal <hl> line?
i tried with background-color and color but it didn't work?
what attribut changes the color?


I would try to avoid <hr>s (I a assume you meant them). Usually <hr>s
are used to optically seperate conent. This can be accomplished by using
a border-bottom.


Actually I think it's better to leave the the HRs *in* and use CSS to
disguise them if necessary. That way you get much better results in text and
audio browsers.


IMO this depends if the hr has only represental functions or if it is
content.
And the argument that NS4 displays a correct hr is poor. NS4-users must
be punished. ;-)

CL
Jul 21 '05 #6
Works well in IE and Moz...

HR {
background-color: #006699; /* mozilla */
border: 0px; /* fixes mozilla height */
clear: left;
color: #006699; /* ie */
float: left;
height: 1px;
margin: 4px 0px 4px 0px;
width: 99%;
}

Jul 21 '05 #7

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

Similar topics

2
3314
by: Dan V. | last post by:
Why is there a large space before the background image (horizontal orange line under top NAV horizontal CSS list buttons) in Internet Expolorer 6 only? http://www.officeactivate.com/fish Thanks,
1
6692
by: Marco Liedekerken | last post by:
Hi, I want a Horizontal scrollbar to appear in my Panel control when I add new controls to it (when the width is getting too big). The Vertical scrollbar is easy (adding overflow: auto to the style attribute of the panel element). Now when I dynamicly add controls to the Panel control the controls are getting places at the next line (I did not add a <br>) instead of at the same line (the horizontal scrollbar should appear now). I...
4
2954
by: Sakharam Phapale | last post by:
Hi All, I have installed VS .NET 2002 on my machine. I have checked both Vertical scrollbar and Horizontal Scrollbar options, in Tools -> Options-> Text Editor-> General-> Vertical Scrollbar Horizontal Scrollbar
2
104854
by: musicmouse | last post by:
Happy new year to you all, I have a problem with the css settings for the horizontal scrollbar of a textarea. When I look at my textarea's in Internet Explorer (I use 5.5) I see only a vertical scrollbar when the area contains a too long text. IE wil just break off the text at the limit if a single word is too long and put the next character on the next line. For me this is the desired bahaviour (those horizontal scrollbars take too...
2
4226
by: Eduard | last post by:
I have a ASP.Net datagrid wrap in the following div: <DIV id="divPart2" style="OVERFLOW: hidden">. Another div controls the horizontal scrolling: <DIV id="scroll1" style="OVERFLOW: scroll; WIDTH: 800px; LINE-HEIGHT: 0px; HEIGHT: 17px" onscroll="javascript: document.getElementById('divPart2').scrollLeft = this.scrollLeft;"> scrolls the datagrid horizontally. When the horizontal scroll box is dragged or any of the scrollbar arrows is
2
5251
by: Martin Schneider | last post by:
Hi! Thanks for your ideas for the following problem: The text field has only a vertical scroll bar, but no horizontal one. When typing across the right boundary of the field the text is continued in the next line. I'd like a horizontal scrollbar to appear instead. Is there any other control doing this?
2
5242
by: Csaba Gabor | last post by:
I have a table that sizes to take up most of the page's width. The (mostly empty) rightmost cell of a particular row starts off as wide as it can, but it might be that it gets something that exceeds its initial width, such as a long web address. In this case, I would like the horizontal overflow to be active. However, it seems that if I affix the style overflow-x:auto, then IE6 will cover the bottom line (of the text) with the...
2
2415
by: pbd22 | last post by:
Hi. I am trying to make a horizontal list that counts (downward) and a horizontal list that illustrates the time. Both list should be formatted the same (except for the nomenclature). I seem to be successful with the y axis but, in my horizontal list (time), I can't seem to get it to scroll successfully. Below is the link, thanks:
2
1777
by: laredotornado | last post by:
Hi, Maybe I should break down and use tables, but I wanted to query the experts first. Below, I would like the words "First name" and "Last Name" to appear on the same horizontal and I would like the text fields to appear on the same horizontal. But I would like the words to appear above the text fields. The below creates four different lines: <div>
0
8618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8885
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7752
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.