---
title: "Only websafe colours for styling a <hr>?"  
description: "Only websafe colours for styling a <hr>?"  
author: "Anonymous User"  
published: 2013-05-09  
updated: 2013-05-09  
canonical: https://www.mindstick.com/forum/850/only-websafe-colours-for-styling-a-hr  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# Only websafe colours for styling a <hr>?

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)!\
I have a <hr> and I need it to have the [color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp) (hex [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages)) #ac8900. If I style it the old fashioned way\
<hr color="#ac8900">it [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why). But I'm expected to style everything with CSS, so I tried this in my [style sheet](https://www.mindstick.com/interview/23083/what-is-padding-in-css-cascading-style-sheet-and-how-to-use-it):\
hr{color: #ac8900;[background](https://www.mindstick.com/articles/65/how-to-change-background-color-of-tab-control-in-c-sharp)-color: #ac8900;border-color: #ac8900;height:2px;border:none;}But it doesn't work. Other, more '[basic](https://www.mindstick.com/forum/161830/what-are-the-security-risks-of-using-basic-authentication)' color work such as #000, #fff etc but not the one I need. Can you only [colors](https://answers.mindstick.com/qa/31019/should-i-paint-my-interior-with-neutral-or-bright-colors) a <hr> with css using web [safe](https://www.mindstick.com/articles/126322/how-to-keep-your-home-safe-while-traveling) colors?

## Replies

### Reply by AVADHESH PATEL

Hi Ankit!\
Your property values are invalid. you need RGB codes for the values to be valid. Try the below [style](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment).\
No need of border-color if border:none, Similarly color doesn't make sense here too.\
hr{background-color: #ac8900;height:2px;}\
I hope it helpful to you


---

Original Source: https://www.mindstick.com/forum/850/only-websafe-colours-for-styling-a-hr

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
