Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS If body id call css

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27973
    nesh_bros
    Member

    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

    #70801
    TheDoc
    Member

    You only need one CSS file. Then in that file you target specific things with the body id.

    #car #content {

    }

    #planes #content {

    }

    etc

    #70812
    nesh_bros
    Member

    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!
    :(

    #70816
    Deques
    Member

    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

    #70819
    nesh_bros
    Member

    OK, I know all this.

    Thats why I need php function to do this :roll:

    #70827
    nesh_bros
    Member

    cool !

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.