View Full Version : pixelpost tags in .css file?
can i use the pixelpost tags, e.g. <IMAGE_WIDTH>, inside of my .css file? if not, how do i have the page width be the same as the image width?
here's what i'm using as a mock-up right now:
thanks for your help! :)
i think i figured it out. http://photoblog.evanschickel.com
05-05-2006, 06:58 PM
it would be great help for all of us if you could inform it how you did it
it would also be very helpful if you add this the WIKI, please
once i polish up the template, i'll post how i did it on the wiki.
basically what i did was create a div called "main." i set all the attributes of it (font, background color, etc.) in the style-sheet EXCEPT for the width. then, in the template, i put this:
<div id="main" style="width:<IMAGE_WIDTH>px">
then, any div's you put inside of it will assume the width of this div. i think that makes sens.
05-05-2006, 10:23 PM
I did this by adding new style defenitions inside the html file of the template rather than the css file. PP tags in the html file are converted to proper values.
maybe extending PP tags to css will be the next move for dev team...
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.