Jump to content

Cant find class


DREAM_MACHINE

Recommended Posts

Code looks fine, but can you confirm that you have linked the css file correctly to page what contains the div element you're using?

Link to comment
Share on other sites

Try this:<!DOCTYPE html><html><head><title>mMain</title><style type="text/css">.mMain { width: 225px; height: 500px; border: 1px solid #FF6A00; background-color: #FF6A00; margin-left: 250px;}</style></head><body><div class="mMain"> </div></body></html>and see if it works.

Link to comment
Share on other sites

Pretty strange on your end. I did not experience any issues in displaying that set of codes. Try changing your class name and see what happens. In rare cases (and I do mean rare) I have had this kind of issue such as yours and I either changed the class name or delete and started a new html file. Of course it doesn't make sense but try it anyway.

Link to comment
Share on other sites

You post with HTML code indicates a DocType and so we had no clue that your original page did not have it. Glad you figured it out.
The code was given by a different person.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...