CSS - Using Php Or Something Else To Creat Macro Defines In Css?
I'm just getting into using CSS in webpage design, and one thing I miss from programming languages is the ability to use #defines to define things like dimensions in one place.
Like, if one wants to create a number of related classes that have the same width, but you want to play around with what that width is, it would be nice to define a variable called "WIDTH" at the top of the file, then use it in the various classes, and change it only in one place. Or have a variable called "PAGEWIDTH", another called "LEFTWIDTH", and define "RIGHTWIDTH=PAGEWIDTH-LEFTWIDTH;". And then use these macro values in all the class defs. These are just some bad examples to illustrate the concept. Anyway, I was wondering if this has been an issue of interest for anyone else, and if there is a common approach to it. I can just manually use CPP to generate the CSS from template files, but I wonder if there is a way to use php to dynamically generate the CSS at runtime, or some better approach. Thanks, Paul Similar TutorialsHi, I have a design that uses "rounded tabs", however each tab is a different size, so I cannot just use a standard-sized tab background image. Is there a way I can use a left rounded image and right rounded image with the middle a solid colour as a background instead of inline images? Thanks! How do i create the light blue menus with css. The curves on the left hand side menu and the light blue tab on the horizonatl bar. Do I need a graphics or can css do this? menu Hello, Is it possible to create a CCS stylesheet that will not only produce a printer-friendly HTML page, but create that page in the form of columns like a newsletter? What I don't want are columns like a web page, that simply read straight down to the end of the page, giving little regard to the fact that text in column one extends to the next page before continuing to subsequent columns. I want the text to read down from the left column to the right column, and then continue to each subsequent page, always reading from the left column to the right column--just like a newsletter. I know I can use PDF, but I find those file huge and combersome, and would prefer to create this in HTML & CSS if possible. I searched this board using "printer version" & columns, and when I found nothing I searched just "printer version" and found nothing. I could search just using columns, but wading through several postings about creating columns for a screen doesn't seem productive. Thanks in advance. Angie |