The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Does anyone know why I cant use something like:
Code:
<div id="headerfont">Hello blah</div> Here is some filler text <div id="headerfont">hello again!</div> moore Quote:
Anyway round it? |
#2
|
||||
|
||||
![]()
Have you checked in your CSS file that it hasn't been defined twice?
|
#3
|
||||
|
||||
![]()
Yes. My CSS is completely valid.
|
#4
|
||||
|
||||
![]()
IDs must be uniqe ... see W3C XHTML Documentation
Quote:
|
#5
|
||||
|
||||
![]()
So what's a way round it? I need to use the ID twice.
|
#6
|
||||
|
||||
![]()
You can't
![]() Why do you need this ID twice? For CSS? |
#7
|
||||
|
||||
![]()
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?)
|
#8
|
||||
|
||||
![]() Quote:
Can you post an example of the CSS you want to apply/use? |
#9
|
||||
|
||||
![]() Quote:
Code:
#headerfont { color: red; } <span id="headerfont">esfdsfds</span> |
#10
|
||||
|
||||
![]()
@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? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|