I'm making a project in Visual studio 2008.
The details of the project are:
- It is a MFC Application
- The application type is Dialog based with Use HTML Dialog enabled
- The project style is MFC standard and...
- The use of the MFC is in a shared DLL

When it creates the project, I have an HTML file called myApp.htm
which contains the HTML code of the dialog.

I want to apply an external css file to this HTML, so i add:
<link rel="stylesheet" src="myApp.css" type="text/css"/>
in the head of the document. But it doesn't work.
So I try using:
<link rel="stylesheet" src="file://myApp.css" type="text/css"/>
but it doesn't work either.
I think there must be a way to do it.
I added the css file to the project.
I have tried everything, but no luck. Can someone give me a hand?
thanks!

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.