HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Getting an extra line in on calendar month view

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#102143 (In Topic #20021)
Avatar

Fan in action

I wonder how I can add an extra row in each of the boxes for the calendar when its in month view?

In another thread I learned how to add words instead of icons and that looks ace as we won`t be having more than a couple of things on a day. I only need a line or two extra and I would have the look I am aiming for.

Any ideas?
Back to the top
 
Posted
Rating:
#102151
Avatar

Well-settled

By extra row I think you mean some extra vertical space in the day cell, rather than an extra row in the actual month table. Is that right?

Then again, I just tried using Chrome's dev tools to see what would happen if I put a load of text into a cell, and it did stretch.

So maybe you really do mean another table row. I think it'd be pretty tricky, as the templates for each cell are individual calls for just that day; so to somehow get another row in would be an entirely different template (cells flow horizontally in HTML, so a cell underneath would not have adjacent code) and therefore be out-of-context in the sense you'd have no way of accessing your template variables properly.

So probably it's better to just think of this as a styling issue. Style the cell to have no padding, then put a div inside it with padding, and another div under that with a border above it. That would then align up with the border of the cell.
Semantically this approach is better, as really you are just trying to achieve something visual, not structural.
Back to the top
 
Posted
Rating:
#102159
Avatar

Fan in action

Yes that would work.

Sounds rather tricky for now. I will give that a miss for now. Thank you yet again!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: