sorry my English at
The original:
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:320px;
}
modified, but does not work:
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:$mybb->settings['setting1']px;
}
how right?
Try this;
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:{$mybb->settings['setting1']}px;
}
I tried but did not
This also does not work:
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:. $mybb->settings['setting1'] .px;
}
As far as I know you can't do that with MyBB. You'll need a more complex solution.
(2011-10-19, 08:36 AM)007combatant Wrote: [ -> ]I tried but did not
This also does not work:
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:. $mybb->settings['setting1'] .px;
}
Are you adding it in global.css or in <style> tag ? If you're using it in global.css then it'll not work in any way. It might work using <style> tags, like this;
<style type="text/css">
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:{$mybb->settings['setting1']}px;
}
</style>
But you should have to use <style> tags in templates and NOT in global.css or any other stylesheet.
I know it. I do not want to do it. I would like to add as css.
Then you can't do how you're trying to do.
this not work
<style type="text/css">
#deneme{
float:left;
overflow:hidden !important;
width:200px;
height:{$mybb->settings['setting1']}px;
}
</style>
Just do what Yaldaram said, in your PHP file, add all the CSS between <style></style> tags, its very efficient way. As far as I know, like template alterations, you cannot make changes in stylesheets.