Using page content in stylesheets
Posted: Tue Jun 10, 2008 10:06 pm
Can I use page content in a stylesheet
Say for backgroung images the css reads
.teamlist {
background-image:url("uploads/images/test.jpg");
float:left;
width:469px;
height:202px;
padding:0px 0px 0px 0px;
border-right: 2px solid #fff;
}
I would like it to read
.teamlist {
background-image:url("{content block="imagestring"}");
float:left;
width:469px;
height:202px;
padding:0px 0px 0px 0px;
border-right: 2px solid #fff;
}
Or a variable I could have a user change in the page view.
Is there a way?
Thanks
Dan
Say for backgroung images the css reads
.teamlist {
background-image:url("uploads/images/test.jpg");
float:left;
width:469px;
height:202px;
padding:0px 0px 0px 0px;
border-right: 2px solid #fff;
}
I would like it to read
.teamlist {
background-image:url("{content block="imagestring"}");
float:left;
width:469px;
height:202px;
padding:0px 0px 0px 0px;
border-right: 2px solid #fff;
}
Or a variable I could have a user change in the page view.
Is there a way?
Thanks
Dan