I have a set of Styles that were first created inside the style attribute on a page.
I want to move it from being on the page itself into a stylesheet.
howe
This is just a shot in the dark as (at the time of this post) you haven't provided source code.
Make sure you're linking to your stylesheet using a link
tag in the head
of the HTML document.
If you had:
You'll need to have
#someid
{
margin: 0;
padding: 3px 12px;
}
in your CSS file with:
to link to the stylesheet.
Some common newbie mistakes include:
: because it's a similar syntax to the
tag, which would make sense, but is invalid
: but link
elements use href not srclink
elements within the body: although browsers will tend to manage link
elements in the body, there are likely going to be some errors, and it's not a defined behavior