0

My assignment is to create a class in java and add tags through comments to make it look just like this http://docs.oracle.com/javase/7/docs/api/. My problem is though that the CSS doesn't stay with the html file. It comes out without the CSS. I've tried doing

<style>href="http://docs.oracle.com/javase/7/docs/api/stylesheet.css"</style> 

but I can't get the CSS to stick. What am I doing wrong?

2 Answers 2

1

This is the way you link css files in html

<link href="http://docs.oracle.com/javase/7/docs/api/stylesheet.css" rel="stylesheet" type="text/css">
Sign up to request clarification or add additional context in comments.

2 Comments

Even this isn't working. is there something specific I'm suppose to insert this?
Maybe your link is wrong. But this is the right way linking css files
0

Did you add the lines as ususer2812693 mentioned. Just check whether, the css is file loaded into the browser using firebug. And also the css classes and ID s are correct with html elements' classes and ID s. Or else, first try to download the css file which you refer and, try to call it locally from your html page.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.