My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 26: Adding CSS class to columns generated by phpwcms (picture <div> CP)
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  slackero
Type-Enhancement
Priority-Low


Sign in to add a comment
 
Reported by i...@marcus-obst.de, Jun 13, 2008
What steps will reproduce the problem?
1. set up a template in fixed width layout, for picture gallery with <div>
columns each with margin-right value to hold space between
2. setting columns in backend, at example 4 col
3. the last column will break layout, because of margin-right, depending on
picture dimension

current behaviour:
120px pic width
10px margin-right to hold space between pictures
|-510px layout total width-|
|120|10|120|10|120|10|120|10|

to get the columns fit into the layout width, system should add a class
"last" to the last column, to reset the margin-right to 0 via css

|-510px layout total width-|
|120|10|120|10|120|10|120|0|

hope I describe it well. thanks.

 
Comment 1 by slackero, Jun 13, 2008
(No comment was entered for this change.)
Owner: slackero
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low
Comment 3 by i...@marcus-obst.de, Jun 18, 2008
This "last"-class feature would be useful to most of column generating CPs/RTs, like
NAV_LIST_UL or Teaser Contentpart.
To detect the last Column in Teaser CP, maybe an ini value in Template would be
useful? (or a select menu in backend) just an idea.
Sign in to add a comment

Hosted by Google Code