How to change HEX to RGB?


#1

i replaced the normal ({color #2e69a3) with the rgb rgb(46,105,163)


https://www.codecademy.com/courses/make-a-website/lessons/closer-look-css/exercises/font-color?action=lesson_resume


when i tried to run it, it said "Did you change the h1 color to an rgb color value?"


body {
	height: 100%;
	margin: 0;
	text-align: center;
	width: 100%;
}

h1 {color:rgb(46,105,163); font-family: Palatino, 'Palatino Linotype', serif;
	font-size: 32px;
}

h2 {
	font-size: 32px;
}


.hero {
	padding: 250px 0;
	margin: 30px;
}


p {

}

.hero a {
	color: #00FFAA;
	font-size: 24px;
	text-decoration: none;
}


#2

try adding a space after color:

so would be: color: rgb(46,105,163);


#3

This topic was automatically closed after 7 days. New replies are no longer allowed.