473,408 Members | 1,857 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,408 software developers and data experts.

How to define the HR element using CSS?

Hi,

I wonder which style sheet properties to use on specifying a HR element. Can
someone please enlighten me here?

<hr style="border: 1px solid gray">
doesn't substitute
<hr noshade size="1" color="Gray">

it's 2 pixels on IE6...

TIA,
Axel Dahmen
Jul 20 '05 #1
3 9599
> I wonder which style sheet properties to use on specifying a HR
element. Can
someone please enlighten me here?

<hr style="border: 1px solid gray">
doesn't substitute
<hr noshade size="1" color="Gray">

it's 2 pixels on IE6...


That seems reasonable as you have defined a 1px border top and bottom.
Have a play around with the 'height' with and without borders and
using foreground and background colours to see what happens. You
might want to set the foreground and background colours the same for
best cross browser support.

Jul 20 '05 #2
Thanks for your tips Graham. I'll give it a try and "fiddle" around with the
properties you've mentioned.

------------------
"Graham J" <in***************@orangebucket.co.uk> schrieb im Newsbeitrag
news:bn*************@ID-203032.news.uni-berlin.de...
I wonder which style sheet properties to use on specifying a HR

element. Can
someone please enlighten me here?

<hr style="border: 1px solid gray">
doesn't substitute
<hr noshade size="1" color="Gray">

it's 2 pixels on IE6...


That seems reasonable as you have defined a 1px border top and bottom.
Have a play around with the 'height' with and without borders and
using foreground and background colours to see what happens. You
might want to set the foreground and background colours the same for
best cross browser support.

Jul 20 '05 #3
Axel Dahmen wrote:
Hi,

I wonder which style sheet properties to use on specifying a HR element. Can
someone please enlighten me here?

<hr style="border: 1px solid gray">
doesn't substitute
<hr noshade size="1" color="Gray">

Well, you should take out the html styling (noshade etc).

Here's a few examples:

http://porjes.com/pichr.html
http://porjes.com/hrs.html
Jul 20 '05 #4

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

Similar topics

1
by: A Amitkashaw | last post by:
Hello, As a new guy to XML I'm stuck on (what I perceive as) a trickey problem. I'm defining the element as so: <!ELEMENT brains (#PCDATA)> Within this element I have to be able to use HTML...
2
by: D. Alvarado | last post by:
Hello, I have an element that I would like to validate against an XML schema in which the element can be either one of 50 values or an arbitrary number of white space characters. The values would...
97
by: s | last post by:
Can I do this: #define MYSTRING "ABC" .. .. .. char mychar = MYSTRING; .. .. ..
5
by: mhuhn.de | last post by:
I am using XML Schema for quite a while but haven't written a single line of Relax NG yet. For what I know, I cannot define static content within an XML Schema. For example, I have the following...
7
by: Roman Mashak | last post by:
Hello, All! I wonder is it possible to define an array containing strings, not single characters? What I want is array 'table' that will have N elements, and every element is a strings tailoring...
0
by: grant.trevor | last post by:
I have a need to define a regular expression within a custom configuration section. This can reside within a web.config or other .config file. Looking at the config below you can see the general...
3
by: Adrian | last post by:
I cannot find a way to define an element so that it contains sub elements in any order but only 1 of each. I have tried a sequence of but then the order matters I have tried a choice of 0 or...
1
by: JavaXMLDev | last post by:
Hi I'm new to XML schema work, but wondered how, if at all possible, can you specify a relationship between the values of an element's attributes. Essentially I want context sensitive...
23
by: anon.asdf | last post by:
Hello! In the following code-snippet, is it possible to initialize each element of arr, with STRUCT_INIT? struct mystruct { int a; char b; };
5
by: suresh | last post by:
Hi, How to define a two dimensional array where each row is of type vector<map<string,int>>? My idea is, if "x" is such a variable, x is a vector where each cell of the vector is a...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.