Ok, I've got this weird problem : the main menu bar of my website is styled with css. I had first defined it with classes and everything was fine. When I understood that id's were for unique elements in a page, so I changed all the classes of this menu, on every page, and replaced them with id's. I also changed the dot for a #, in my css file. BUT... now, it works fine on my desktop computer but not on my laptop!!
On my laptop : the menu on index.html doesn't work, but it works on all of the other pages.
On my desktop, it's the opposite!! index.html is perfect, but there is no menu on the other pages (except for the button of the active page, which is not a class nor an id but a simple image).
On the two computers, I tested on explorer, firefox and safari.
What's weird, is when I change back ids for classes, the problem is inverted : where the index was ok, it doesn't work and vice versa.
So, do you have an idea what might be the problem? I guess it's almost nothing, since everything was perfect just a few hours ago, but I can't figure out how to fix it.
Here's the address of the index : http://conser-lsj.org/
And here's the address of one of the pages (because if the index doesn't work, you won't be able to access the other pages) : http://conser-lsj.org/01-html/2Nouvelles-1Dernieres.html
Thank you for your help.
Wierdest thing : on my laptop, on firefox, if I dont put www before the adress, for the index page, the menu doesn't work, but it works on the other pages. If I do put www, index is fine, but not the other pages! AND... it's the contrary on Explorer!! Does anyone understand what's happening here???
First off, classes can be used anywhere for styling purposes, there is no need to use an ID for this.
ID's are required when manipulating the DOM using scripts. The ID is used to identify a unique element in your document.
The above may be regarded as controversial, but it works and makes it a lot easier to untangle problems associated with styling.
Now for you problem, the page that works uses ID's for the menu, the other page uses CLASS's.
Thanks for the info about ID's and CLASS's.
You said that the page that was working was the one with id's and the other pages used Class's. That's weird, because when I lookup the source of the online pages, I see only id's for all the pages...
Since you said id's aren't neccessary, I decided to change back everything to class's, and now it seems to work... I would appreciate if you could confirm that it also works on your own computer...
Thanks again for your fast and acurate help!