By zogyboy on
hi there i have an website that i would like to place some css code on some pages in my header that cant go in an the css sheet as some pages are an bit diffent to the main theme layout.
so how would i got about adding code like this in the header off an drupal website note this is just demo code of the sort off thing i wish to be able two do i may also want to set new div ids as well or maybe classes
can this be done in drupal so in other words i want to set some css divs on page based only
<style type="text/css">
<!--
#box1{
text-align:center;
width:728px;
height:1332px;;
background-color:#FFF;
float:right;
margin-bottom:10px;
}
#box2{
text-align:center;
width:230px;
height:1332px;
float:left;
margin-right:0px;
background-color:#FFF;
margin-bottom:10px;
}
</style>
Comments
You might want to look at
http://drupal.org/project/css_injector
hi thank you i have installed
hi thank you i have installed css_injector on an test website off mine i have made an new rule and am now trying to add that rule only to a node page and i selected
Add on only the listed pages. and add below into the box
/node/31/
is that the write path as it dose not seem to be channing the css to that node i also have and module to make custom urls as well is that what is up setting it ?
thank you again for your help
Did you check?
Did you clear the drupal caches and your browser cache?
hi yes i just done it dose
hi yes i just done it dose not seem to have done anythink ?
cheers again for your help
i am trying two do an simple test off changing the font color