PDA

View Full Version : pixelpost tags in .css file?


evan
05-04-2006, 11:55 PM
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:
http://www.evanschickel.com/photoblog/design/index.htm
http://www.evanschickel.com/photoblog/design/styles.css

thanks for your help! :)

evan
05-05-2006, 06:22 AM
i think i figured it out. http://photoblog.evanschickel.com

Connie
05-05-2006, 06:58 PM
evan,

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

evan
05-05-2006, 10:00 PM
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.

raminia
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...