hi everyone,
i have a somewhat complicated situation.
our new corporate site layout requires different positioning and sizing of the page's main text block depending on the page. for example, on the main page, the div will have a padding-top of 260px, but on another page, that same div tag will need to have a padding-top of 260px, along with a padding-left of 150px. basically, the height, width, and positioning of the main content div will need to be user-configurable. that way when they create a page with their content, they'll also be able to determine the size and positioning of the content within the main content div.

i figured this would be accomplished using taxonomy terms, where they choose a value from the "padding-top" taxonomy, and a value from the "padding-left" taxonomy, which i would then insert into the div's style parameters in the node itself.

does this seem like the correct way, or is there something better? are there any modules which do something similar to this? i've found that anytime i try to hack my own solution to a drupal problem, i find out later on that there's already a module that does what i want.

thanks so much!

javier.

btw our entire site layout is constructed using CSS, no tables.

Comments

Steven’s picture

Define different classes of items that you need, by purpose, not by styling. e.g. "with-small-picture" "without-picture" "with-large-picture" and insert the right class="" into the HTML based on e.g. a taxonomy.

Then, in your CSS, you add the relevant styling, and can easily change it still.

--
If you have a problem, please search before posting a question.