- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi guys, I am new here, so I have a big problem.
I need css switching for deferent body id.
for instance:
body id="car" -> car.ss
body id="pane" -> plane.css
Problem is I have only one header (joomla) so I need some kind of switch.
10x :D
You only need one CSS file. Then in that file you target specific things with the body id.
#car #content {
}
#planes #content {
}
etc
You didnot understand me!
Of course I know that,
I have several sub sites, under 1 site, and for each one I need to import another css file.
So, I can put it all in 1 css file and make junk of 60-100 Kb, or do something elegant and put script wich says,
if body id="car" import car.ss
if body id="plane" import plane.css
I dont need one css file in wich I am going to override 10 rules!
:(
css doesn’t have programming features. so it’s not possible to make a if statement and load a file
you could do it with php
OK, I know all this.
Thats why I need php function to do this :roll:
cool !