![]() |
'ID already defined' Problems
Does anyone know why I cant use something like:
Code:
<div id="headerfont">Hello blah</div> Quote:
Anyway round it? |
Have you checked in your CSS file that it hasn't been defined twice?
|
Yes. My CSS is completely valid.
|
IDs must be uniqe ... see W3C XHTML Documentation
Quote:
|
So what's a way round it? I need to use the ID twice.
|
You can't ;)
Why do you need this ID twice? For CSS? |
Well I want to use the ID which is used by CSS for font title - and since there are many of them I want to use it more than once (unless im missing something?)
|
Quote:
Can you post an example of the CSS you want to apply/use? |
Quote:
Code:
#headerfont { color: red; } |
@Chroder
I do know how to apply CSS to IDs - thanks ;) But I don't know what assassingod want's to achieve ... #id CSS is for central formatting a single element (you could also just do that using style=".."). If he want's CSS for many element's he would use a class. So I don't get why he needs multiple elements with the same ID, as this doesn't make sense to me? |
All times are GMT. The time now is 07:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|