I am building my first web site using an entirely CSS based layout.
Index [and several other] page[s] take the format: Banner,Left/centre/right columns, footer.
However, some pages do not need a three column layout and I want to remove the extreme right column from those pages only. With the right column removed from the HTML of those pages, I am now left with a centre column which does not extend to the right side of the page because the position of the right hand edge of the centre column is determined by padding.
Brief code as follows:
background-color : transparent;
padding : 140px 220px 35px 160px;
border : 1px solid black;
My question is this: Is there a way to control the right padding using a "conditional" statement, something like - IF PRESENT "right" THEN padding-right:160 ELSE padding-right:0
Or do I have to use a different style sheet for those pages?