I just finished creating a basic webpage called HelloWorld.html
using HTML, JavaScript, and CSS. It runs smoothly when I open it from Eclipse IDE and view it through a browser.
The functionality of the page is that it contains 5 buttons, each revealing the text "Hello World" from 5 separate <div>'s once clicked. The text remains hidden and then appears inline after the button has been activated.
However, when I attempt to manually open the HelloWorld.html
file in a browser outside of my workspace, everything displays incorrectly. None of the styles or properties declared in the external CSS file seem to be taking effect on the elements.
I know it probably sounds silly, but this issue is driving me crazy. Can anyone shed some light on why this might be happening?
PS: 1. There is no server-side scripting involved in the file. 2. The HTML, JS, and CSS are all in separate files.